Life, the Universe, and Everything
Practice
3.4 (772 votes)
Ad Hoc
Basic programming
Easy
Problem
88% Success 151082 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.
Sample Input
1 2 88 42 99
Sample Output
1 2 88
Code Editor
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
Submissions
Please login to view your submissions
Similar Problems
Points:30
9 votes
Tags:
Ad-HocAlgorithmsApprovedMediumOpen
Points:30
25 votes
Tags:
AlgorithmsApprovedDynamic ProgrammingMediumOpenTwo dimensional
Points:20
488 votes
Tags:
Basic ProgrammingEasyInput/Output
Editorial
Login to unlock the editorial
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