← All problemsSign in

Happy New Year!

CodeChefRating 125Open on judge ↗

Currently, it is $X:00$ hours on December $31^{st}$ and you are wondering how many hours are left till midnight. For the purposes of this problem, we use a $24$ hour system. So, $X$ can range from $0$ to $23$, and you need to tell the number of hours left till $00:00$ of the next day. ### Input - The first and only line of input contains a single integer $X$. ### Output For each test case, outp

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