cf/mirror

Appleman and Tree

CF
461B2000· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
3
0 0
0 1 1
Output
2
Sample 2of 3
Input
6
0 1 1 0 4
1 1 0 0 1 0
Output
1
Sample 3of 3
Input
10
0 1 2 1 4 4 4 0 8
0 0 0 1 0 1 1 0 0 1
Output
27
461B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…