cf/mirror

Spoilt Permutation

CF
56B1300· pupil2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
8
1 6 5 4 3 2 7 8
Output
2 6
Sample 2of 3
Input
4
2 3 4 1
Output
0 0
Sample 3of 3
Input
4
1 2 3 4
Output
0 0
56B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)