cf/mirror

Wonderful Permutation

CF
1712A800· newbie1s256 MB⌨ stdin/stdout

Examples

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