Life, the Universe, and Everything
CodeChefOpen on judge ↗
**For help on this problem, please check out our tutorial** [Input and Output (I/O)](http://blog.codechef.com/2009/02/24/54/) 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
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start