cf/mirror

Game on Permutation

CF
1860C1400· specialist2s256 MB⌨ stdin/stdout

Examples

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