Weights Assignment For Tree Edges
1611D1500· specialist2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
453 1 3 3 13 1 2 5 431 1 23 1 271 1 2 3 4 5 61 2 3 4 5 6 764 4 4 4 1 14 2 1 5 6 3
Output
1 10 0 102 100-10 3 100 1 1 2 46 5 10 0 2 3
58%
1611D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…