cf/mirror

Maximize the Root

CF
1997D1500· specialist3s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3
4
0 1 0 2
1 1 3
2
3 0
1
5
2 5 3 9 6
3 1 5 2
Output
1
3
6
1997D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…