Submit | All submissions | Best solutions | Back to list |
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-10-01 00:51:18
If number is 42, so the program ended. |
||||||||||||||
2016-09-27 18:32:13
Are we getting a text file as input ? |
||||||||||||||
2016-09-27 13:39:13
do we have to only store some integers and then output all integers before 42??? |
||||||||||||||
2016-09-26 11:06:24
easy |
||||||||||||||
2016-09-25 19:40:21
Umm.. seems good by the way.But didnt find any clue to solve this. who else has solved here ? |
||||||||||||||
2016-09-24 18:58:03
what does the question mean..?? |
||||||||||||||
2016-09-24 04:33:38
nice reference Last edit: 2016-09-24 04:34:03 |
||||||||||||||
2016-09-23 07:42:52
Answer: ---------------------- Input: 1 2 88 42 Output: 1 2 88 ---------------------- don't care 99 (that's wrong example) |
||||||||||||||
2016-09-20 22:50:17
ok, this site is disapointed!! |
||||||||||||||
2016-09-20 19:29:43 Akshay Kumar Singh
This is actually a reference to The Hitchiker's Guide to The Galaxy. Read it. |