cf/mirror

Another MEX Problem

CF
1870E2300· international master1s256 MB⌨ stdin/stdout

Examples

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