Man with No Name
CodeChefOpen on judge ↗
Blondie is a bounty hunter. Today, he is on a mission to shoot criminals in a particular city. A city is divided into $N$ areas, numbered $1$ through $N$. It is known that an area numbered $i$ contains $A_i$ criminals. But the problem here is that for some areas, the number of criminals is unknown. Blondie needs to know the number of criminals in each area in advance, as he is very good with the g
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