Count It Up
CodeChefOpen on judge ↗
Aron and Bidhin are playing a counting game. The game is such that turn wise each should count up to a number $N$, where during one's turn he should count **at least 1 and at most 3 numbers**. The one who counts $N$ loses the game. Suppose if Aron started the game and counted $ [1,2] $ Bidhin can count $[3]$ or $[3,4]$ or $[3,4,5]$. And if Bidhin counted $[3,4,5]$ Aron can count $[6]$ or $[6,7
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