Split the Tree
1059E2400· grandmaster2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
3 1 31 2 31 1
Output
3
Sample 2of 3
Input
3 3 61 2 31 1
Output
2
Sample 3of 3
Input
1 1 1000010001
Output
-1
58%
1059E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…