The Race
CodeChefOpen on judge ↗
A race is going to be held in vizag. Vizag is a city of n junctions and m streets where all streets are unidirectional. In the race, people have to follow the direction of streets. People can walk the same street several times. For example,in the diagram below, Vizag contains 7 junctions and 7 streets. Junctions 1 and 3 are not connected to any other junctions in the city. There are two unidirect
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