Catch Umm Catch
CodeChefOpen on judge ↗
Sana is playing a game with her friend called Catch Um Catch. Her friend is throwing a ball at her, and every ball is marked with a single number K. She first announces the number written on that ball and then throws it towards Sana. While the ball is in air, Sana has to decide whether to catch it or not. Suppose she catches a ball with a number (say K) written on it. Now if she decides to catch 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.
Sign in to chat with the tutor and save your progress.
Sign in to start