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-08-09 10:06:58
what does stop processing means does testing is to be terminated after occurence of number42 |
||||||||||||||
2016-08-07 12:20:51
this descripton is not clear |
||||||||||||||
2016-07-31 11:11:35
It's just to end the program after inputting 42 without output it -_- Last edit: 2016-07-31 16:43:28 |
||||||||||||||
2016-07-29 12:54:29
I want the answer |
||||||||||||||
2016-07-28 11:45:08
backtracking acc in one go :)) |
||||||||||||||
2016-07-25 21:57:18
How does Brainfuck handle number inputs here, are they inputed as ASCII or as raw numbers |
||||||||||||||
2016-07-22 21:33:04
My code is working fine on Eclipse. However, it shows a compilation error here. Can someone tell me what's going on? |
||||||||||||||
2016-07-22 17:27:17
hi, do i need to read the input values from compiler or static array. |
||||||||||||||
2016-07-21 18:10:23
i want the solution |
||||||||||||||
2016-07-17 17:25:44
Okay how many test cases does it need to have? I mean how many does the program accepts? Is it user defined or fixed at 5 as the example? |