Alice and the leader
CodeChefOpen on judge ↗
Alice was on her way to the Umbrella Corp. headquarters. She was met by the leader of a rogue militant group on the way. The sardar challanged her to a battle of stones and if she wins it, then the group will follow her to the headquarters. Alice needs people to fight her way into the headquarter. The game is played on N heaps. Heap i contains ai stones. They alternatively take a positive number o
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