1346 HelloWorld Compilertime limit: 1 sspace limit: KBtitle level: Golden Gold
Title Description Description
Please programmatically determine if a program responsible for printing Helloword will run correctly.
Compile error Output CE
Answer Error Output WA
Answer correct output AC
Enter a description input Description
A C language-written Helloword program that outputs a Helloword string followed by a newline character \ n.
outputs description output Description
Determine the correct error of the program, output CE or WA or AC
sample input to sample
#include "stdio.h" int main () {printf ("helloworld\n"); return 0;}
Sample output Sample outputs
AC
data size & Hint
The data contains only the keywords contained in the sample input (except for HelloWorld) and is given in the order in the sample. <stdio.h> may also be included.
It is only necessary to judge whether each sentence corresponds to a lawful one.
Category labels
TagsString Processing Open questions
See the tall in doing this god problem, and then come to see, the result direct rand () several times there is no past, character, 23333. Finally, the sample can only be given out of the AC code card off, rand () two, the correct rate of One-fourth, the past. See in the puzzle area everyone is also trying rand (), seemingly Pascal's random is bad.
#include <bits/stdc++.h>using namespacestd;signed Main (void) { stringSCharC Srand (Time (0)); while(Cin >> C && C >= +&& C <=126) if(c! =' '&& C! ='\ n'&& C! ='\ t') S + =C; if(s = ="#include \ "stdio.h\" Intmain () {printf (\ "helloworld\\n\"); return0;}") cout<<"AC"<<Endl; Elsecout<< (rand () &1) ?"WA":"CE") <<Endl;}
@Author: Yousiki
CODE[VS] 1346 HelloWorld compiler