Graph Sah Kreedam 2
CodeChefOpen on judge ↗
Do you remember Mr. Y from Vigyanpura? This is him now!  He has set up hi-tech portals in the $N$ houses of Vigyanpura. The portal in a house can be used to travel to another (fixed) house. Dr. Y now wants to test if these portals work correctly. For this, he will send $M$ of his explorer robots, each of which will start at s
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