cf/mirror

Wooden Game

CF
1994E2000· candidate master2s256 MB⌨ stdin/stdout

Examples

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