← All problemsSign in

Alter the Obvious

STATEMENT Quark is here and Alice and Bob are attending. They have decided to play one of their old games. The game starts with N piles, each containing some non-negative number of stones. In each move a player has to remove a positive amount of stones from each pile. However, they alter the obvious game mechanic and decide that the number of stones removed from each pile must be a fibonacci num

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