cf/mirror

Small Permutation Problem (Easy Version)

CF
1909F12200· master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
5
1 2 3 4 5
6
0 2 2 2 4 6
6
0 1 3 4 5 5
6
1 2 3 2 4 6
15
0 0 1 1 1 2 3 4 5 6 7 9 11 13 15
Output
1
4
0
0
532305727
1909F1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)