cf/mirror

0, 1, 2, Tree!

CF
1950F1700· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
10
2 1 3
0 0 1
0 1 1
1 0 2
1 1 3
3 1 4
8 17 9
24 36 48
1 0 0
0 3 1
Output
2
0
1
1
-1
3
6
-1
-1
3
1950F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…