ZERO GAME
CodeChefOpen on judge ↗
Santa Clause gifted Chef and and his friend a bag containing $N$ chocolates. To divide the chocolates between them, they decided to play a game where the rules states that at a time one will pick any number of chocolates from 1 to 9 (both inclusive) and give chance to the other person. The one who can pick all the remaining chocolate wins the game. If N=8 let Chef chooses : 4 remaining chocolates
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