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.
Input: 1 2 88 42 99 Output: 1 2 88
If you have some troubles 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:||Micha³ Ma³afiejski|
|Cluster:||Cube (Intel Pentium G860 3GHz)|
|Languages:||All except: SCM chicken|
|Resource:||Douglas Adams, The Hitchhiker's Guide to the Galaxy|
Does anyone know how to do this under the 1,536 MB memory limit? I know how to solve this without having to adhere to arbitrary memory limits, but unfortunately writing optimized code is not my strong suit.
my program is compiling and giving the answer in devc++ but in this it is giving runtime error
"All numbers at input are integers of one or two digits."
If there is infinite imputs, how does the program know when to print the outputs
I'm from Poland and I find this offensive because you don't know whot pierogies are
where is life????
La Van Tien:
Just read the problem carefully and you will find out.
it is showing compilation error bt my code is absolutely running grt in codeblocks