← All problemsSign in

Cake

Alice and Bob are locked during Coronavirus. During the lockdown Bob and Alice wants to eat cake. So, they order online for the cake. They ordered N boxes of cake numbered $1$ to $N$. As it was online order so they are cheated by the seller. Each box is either empty or contains cake. Bob wants to eat more cake so he come up with a game. Winner of this game will eat more cake in compare to the lose

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