Sphere Online Judge

SPOJ Problem Set (classical)

1. Life, the Universe, and Everything

Problem code: TEST

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.





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
Time limit:10s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel Pentium G860 3GHz)
Resource:Douglas Adams, The Hitchhiker's Guide to the Galaxy

hide comments
2014-10-20 08:47:29 Thomas
I agree with CODER
2014-10-16 19:55:21 Vignesh
my code got compiled in turbo c++ but here it is saying error why...?
2014-10-16 18:04:07 Mohamed Hashim

Last edit: 2014-10-16 18:04:20
2014-10-12 11:37:23 Francky
@ Ноён_Q!zZ :
You have to choose a language, write a program that solve the problem with that language. You can send your program with the "submit" button.
For this problem only, if you can't find a correct program, you'll can find many answers in the forum ; see the link at the end of the description of the problem.
Good luck.
2014-10-12 10:51:39 Ноён_Q!zZ
Pls help me
2014-10-12 10:51:26 Ноён_Q!zZ
how to do this
2014-10-05 21:09:24 Shwet Singh
i am getting NZEC but my code is correct.......plzzz help .
2014-10-01 13:03:23 Martijn Muijsers
Time limit isn't very allowing for Brainfuck :(
2014-09-30 07:41:03 makesh kumar
i got NZEC for not giving return 0
2014-09-30 01:23:41 Duhber
nice problem
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.