Minimum spanning tree for each edge
609E2100· master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
5 71 2 31 3 11 4 52 3 22 5 33 4 24 5 4
Output
98118889
58%
609E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…
5 71 2 31 3 11 4 52 3 22 5 33 4 24 5 4
98118889