Two Pile Game
Alice and Bob are having a tea party! Of course, there must be snacks at a tea party. Laid out on the table in front of Alice and Bob are biscuits and cakes. Initially, there are $X$ biscuits and $Y$ cakes. The two take turns eating snacks. Alice goes first. On their turn, a person will do **exactly one** of the following three: 1. Eat one biscuit. - This reduces $X$ by $1$, and doesn'
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