← All problemsSign in

Raid on the Store House

Colonel Carrillo has decided to raid one of the storehouse belonging to Pablo. The intel has notified that there are many rooms in the storehouse and in each room there is a certain amount of cash hidden. They cannot raid two consecutive rooms at once to avoid suspicion from Blacky (one of the trusted men of Pablo). Find the maximum amount of cash that the colonel can cease. Input - The first

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