Money Heist
CodeChefOpen on judge ↗
Professor is looking for a new member for a heist. To select a member he laid out a simple task. Given a map having $n$ cities and $m$ roads. He will ask you $q$ queries, in each query he will give you two cities and you have find minimum distance between the given two cities. All roads are bidirectional. ###Input: - First line will contain three integers $n,m,q$. - Then $m$ lines will fol
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