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.


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

hide comments
2016-11-14 06:42:35
ignore the "small numbers". it makes confusing.
2016-11-13 16:36:28
my code is accepted but it shows memory usage as 694M . how do i improve that.
2016-11-13 05:42:50
y u no mad hertz
2016-11-10 07:21:57
plzz send the code once i am geeting wrong
2016-11-06 18:03:53
question is not clear how many inputs to take
????
2016-11-02 17:36:42
easy
2016-10-30 05:51:41
question isn't clear. it should stop at 42.
2016-10-28 11:36:28
For such a simple code ,you are showing my answer as wrong
I also did it on ideone.com ; where i got correct answer
2016-10-27 21:24:10
My code is fine and returns correct answers, but it says 'wrong answer'... wtf what a shit
2016-10-24 20:40:30
please give the some hit for this problem
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.