CODE[VS] 1346 HelloWorld compiler

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.