cf/mirror

Nicholas and Permutation

CF
676A800· newbie1s256 MB⌨ stdin/stdout

Examples

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