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
newbie26012004: 2022-01-18 06:12:50

what if the first number of the input is 42, what is the output?

vj_2002: 2022-01-09 19:03:07

I am unable to understand the working here
secondly, version of python is not up to date and hence giving some errors

the_trinity: 2022-01-06 05:43:36

My code in my IDE gives the correct answer but here it is showing that my answer is wrong. Lmao Wtf?

krati_gupta: 2021-12-28 12:31:34

it says it should accept input of one or two digit integer but my code is also accepting integer of 3 digit but you accepted my code , why??

temuulensayshi: 2021-12-26 14:20:26

hi

prince_raj097: 2021-12-26 06:59:21

My code is giving the correct answer but this says it gives wrong answer

pawanthapa: 2021-11-29 15:44:35

i'm new here. wtf is this .i can't figure out anything

medrial_0: 2021-11-25 02:27:22

dac

tushar_ahmed: 2021-11-24 09:52:27

where is solution ?

babu_bhaiya: 2021-11-15 10:29:41

Where is description of input


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

Problem's scores 2 votes

Concept difficulty
Concept difficulty 6%
Implementation difficulty
Implementation difficulty 7%
375 74