Another Exercise on Graphs (Easy Version)
2057E12300· international master3s1024 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
34 4 21 2 22 4 21 3 43 4 11 4 22 3 16 7 31 2 102 3 33 4 94 5 25 6 12 4 104 6 101 6 31 6 22 4 111 17 101 4 51 3 191 2 103 2 134 5 14 6 113 5 93 6 182 7 175 8 155 10 86 9 47 10 207 8 168 11 39 11 610 11 143 11 13 11 31 11 11 11 41 11 38 2 210 4 13 9 23 9 16 7 3
Output
1 22 9 911 3 11 1 3 10 8 4 11 4
58%
2057E1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…