← All problemsSign in

J3 Aeroplanes

On New Year's Eve, in a quiet air traffic monitor's tower, the poor controller realised that he was going to be working at midnight as well. Being a superstitious person, he believes that wishing at least k people at midnight will bring him good luck for the rest of the year. He decides to broadcast a happy new year message to the planes passing by, but wants to broadcast this message only once, a

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