Paths and Trees
545E2000· candidate master3s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
3 31 2 12 3 11 3 23
Output
21 2
Sample 2of 2
Input
4 41 2 12 3 13 4 14 1 24
Output
42 3 4
58%
545E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…