cf/mirror

Kevin and Puzzle

CF
2061C1600· expert2s256 MB⌨ stdin/stdout

Examples

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