Final War
CodeChefOpen on judge ↗
Mr.Bohra has delivered his robot army to the illegal dealers who demanded $N$ such robots to make use of them in $N$ cities numbered $0,1...N-1$. Since every city does not have the equal amount of security, Bohra gives each robot its appropriate hit points $hp_i$ (lower the city's protection, lower will be the hit points). The dealers inserted dangerous chemicals into the robots and have planned
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