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.
hide comments
adityago786:
2016-07-10 09:57:09
my code Is running on ideone it but shows wrong answer on submission..
|
|
naveen_333:
2016-07-09 14:25:57
how input is supposed to be taken? |
|
aexpo:
2016-07-04 08:17:45
no sorting is required at all!
|
|
wander4096:
2016-07-04 02:51:52
1 Last edit: 2016-07-04 02:52:07 |
|
danielphillips:
2016-07-02 21:09:02
Make sure your output includes a line break. Otherwise the output isn't formatted correctly. Caught me out. |
|
sinega_13:
2016-06-29 13:01:51
I don't understand... |
|
kswathi:
2016-06-23 06:22:28
ididnt understand
|
|
abinkumar:
2016-06-21 18:55:52
I didnt understand what it is saying can anyone help me? |
|
rimo:
2016-06-19 18:43:28
do i need to sort the output while printing? |
|
vanamala:
2016-06-19 17:05:00
in which language should I submit my source code |
Added by: | mima |
Date: | 2004-05-01 |
Time limit: | 4s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All |
Resource: | Douglas Adams, The Hitchhiker's Guide to the Galaxy |