← All problemsSign in

The Last Levels

CodeChefRating 679Open on judge ↗

Chef is playing a videogame, and is getting close to the end. He decides to finish the rest of the game in a single session. There are $X$ levels remaining in the game, and each level takes Chef $Y$ minutes to complete. To protect against eye strain, Chef also decides that every time he completes $3$ levels, he will take a $Z$ minute break from playing. Note that there is no need to take this bre

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