← All problemsSign in

Berlin and Tunnels

In the second season, when police had already entered the bank and the crew had very less time to escape through the tunnel, Berlin decided to stay and block the police. There are $T$ tunnels and $P$ police in each tunnel. $j^{th}$ ($1 \leq j \leq P$) police in the $i^{th}$ ($1 \leq i \leq T$) tunnel has firepower $F_{ij}$. Initially Berlin has total firepower $B$. Berlin starts from the

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