Life, the Universe, and Everything
Practice
3.4 (772 votes)
Ad Hoc
Basic programming
Easy
Problem
88% Success 150963 Attempts 20 Points 5s Time Limit 256MB Memory 1024 KB Max Code
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.
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:30
116 votes
Tags:
ApprovedGeometryMediumOpenTwo dimensional
Points:10
185 votes
Tags:
Ad-HocApprovedBasic ProgrammingEasyImplementationOpen
Points:20
537 votes
Tags:
Basic ProgrammingInput/Output
Editorial
Login to unlock the editorial