← All problemsSign in

Time Machine

CodeChefRating 181Open on judge ↗

Chef is currently in the year $X$ in Chefland. He has a time machine that allows him to travel at most $25$ years into the future, but he can use it only once. Determine whether Chef can reach the year $2050$ with a single use of the time machine. ### Input A single integer $X$, representing current year in Chefland. ### Output Print `YES` if Chef can reach the year 2050 , otherwise print `NO`.

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start