Shortest Path Queries
938G2900· international gm3.5s512 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
5 51 2 32 3 43 4 54 5 61 5 153 1 51 1 3 13 1 52 1 53 1 5
Output
112
58%
938G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…