cf/mirror

Tales of a Sort

CF
1856A800· newbie1s256 MB⌨ stdin/stdout

Examples

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