cf/mirror

Programming Competition

CF
1914F1900· candidate master2s256 MB⌨ stdin/stdout

Examples

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