Monotonic Renumeration
1102E1700· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
51 2 1 2 3
Output
2
Sample 2of 3
Input
2100 1
Output
2
Sample 3of 3
Input
41 3 3 7
Output
4
58%
1102E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
51 2 1 2 3
2
2100 1
2
41 3 3 7
4