← All problemsSign in

Fast as Flash

The Flash is at his job again. He runs around the central city to keep it safe from meta-humans. On one particular day he has to catch several meta humans in a single run. He can only catch meta-humans at his top speed. The path on which he runs is an N kilometers long straight road. There are ai meta-humans attacking within the ith kilometer of this road. A meta-human will be caught only if The F

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