← All problemsSign in

Meeting Time

Chef want to meet her valentine. But she wants to play a trick on him. The meeting time is encoded in a long number N as chef is preparing for valentine's day he needs your help to figure out at what time his girlfriend is arriving in 24hr time system. Your task is to calculate by adding all the digits of N until it comes under or equal to 24.. Input - The first line of the input contains an

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