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
manuha_656:
2024-12-20 15:25:58
while True:
|
|
paramount1234:
2024-12-20 13:46:57
Agriculture loan schemes in Karnataka[https://paramountfv.in/] support sustainable farming through financial aid for climate-resilient practices, modern technology adoption, and infrastructure development. They promote inclusivity, insurance linkages, and market access while simplifying processes for smallholders. By integrating education and innovation, these schemes empower farmers, ensuring economic growth and resilience in rural communities. |
|
sushmitha0502:
2024-12-16 18:58:03
while True:
|
|
black_monkey1:
2024-12-06 10:49:31
what happens if I comment a slur? |
|
bochrafr0410:
2024-12-04 20:15:18
|
|
u107315:
2024-11-08 08:28:53
hi |
|
dora_chen1:
2024-10-27 11:27:03
Hi, so how are we supposed to know when to output the numbers? Cuz here it seems arbitrary that there's a 99 at the end. How do we know that we have to output after 99 rather than after 42 directly? Or are we outputting the numbers right after we input them? |
|
pranav_2881:
2024-09-29 06:46:59
Hello there,
|
|
congnguyen_123:
2024-09-26 20:27:16
<snip>
|
|
revanthnandhan:
2024-09-19 11:13:43
<snip>
|
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 |