← All problemsSign in

For you, Hermanita

"I remember the machines Killjoy made. What they did to -...never mind, it doesn't matter!" — Reyna Reyna's sister died of Killjoy's machines, but in parallel world she is alive! Viper is about to experiment her new poison on her. In order to save her, Reyna must defeat Viper in the following game. A pile-pair is described as a pair of piles of stones $\{ X,Y\}$ where the first and second

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