Run Barry Run
CodeChefOpen on judge ↗
Barry Allen is a speedster. He is on a mission to save several people, $N$ of them to be precise. Each person has a threshold limit of speed that they can travel at, **Si** for the **ith** person, and Barry knows this. He cannot go beyond that speed for each person. However, Barry needs to run with constant speed if he wants to save everyone quickly, therefore he will run at a constant speed for e
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