TEST - Life, the Universe, and Everything


Your program is to use the brute-force approach in order to find the Answer to Life, the Universe, and Everything. More precisely... rewrite small numbers from input to output. Stop processing input after reading in the number 42. All numbers at input are integers of one or two digits.

Example

Input:
1
2
88
42
99

Output:
1
2
88

Information

In case of any problems with your code, you can take a look in the forum, you'll find the answer, only for this problem, in various languages.


hide comments
pobitro54868: 2016-09-18 04:20:36

I don't understand.

wiklvrain: 2016-09-17 15:30:01

In fact, As a Chinese...I did not understand what this problem mean...

akhil_4: 2016-09-15 18:59:38

how should i do can any one say answer

curecool: 2016-09-13 15:20:24

The hardest part is guess what you need to solve.

milind734: 2016-09-12 15:32:59

ok so it means i have to creat a programe that takes input like intiger given in example and the programe shows the same intigers as out put at same time but it will stop when we give 42 as input .Right ? i am just a beginer in c language and i have zero knowladge about it but i still try becous i love programing and want to lern more and more and more :)

shurikdima: 2016-09-10 01:59:01

I have no idea what i've just read. can someone rephrase the question?

talreja91: 2016-09-06 13:51:51

the input and output constraints are not specified.

ishanmitra1996: 2016-09-03 15:19:27

This is so freaking easy. The main code is at least 4 lines long.

bhargavjagan: 2016-09-01 21:50:09

can any one tell me what the problem actually ?
i didn't understand the question

anchises_1968: 2016-08-30 22:38:15

I finally got it. First of all, leave any comment cout out of your code (i.e. "Input: " "Output". Also, as in my previous comment, the input should stop after the first input after 42 - just like the example above.


Added by:mima
Date:2004-05-01
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All
Resource:Douglas Adams, The Hitchhiker's Guide to the Galaxy

Problem's scores 2 votes

Concept difficulty
Concept difficulty 6%
Implementation difficulty
Implementation difficulty 7%
374 74