← All problemsSign in

Susobhan Runs to Win

Susobhan has decided to take part in a running competition in his locality. Unlike other running competitions this competition doesn't have a fixed path. There are N points numbered 1…N and are connected with one-way roads whose lengths are given. There are R roads connecting these N points. There can be more than one road connecting two points. The participants has to run from point 1, which is t

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