Nicholas and Permutation
676A800· newbie1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
54 5 1 3 2
Output
3
Sample 2of 3
Input
71 6 5 3 4 7 2
Output
6
Sample 3of 3
Input
66 5 4 3 2 1
Output
5
58%
676A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)