Obtain a Permutation
1294E1900· candidate master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
3 33 2 11 2 34 5 6
Output
6
Sample 2of 3
Input
4 31 2 34 5 67 8 910 11 12
Output
0
Sample 3of 3
Input
3 41 6 3 45 10 7 89 2 11 12
Output
2
58%
1294E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)