cf/mirror

Bear and Up-Down

CF
653C1900· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 4
Input
5
2 8 4 7 7
Output
2
Sample 2of 4
Input
4
200 150 100 50
Output
1
Sample 3of 4
Input
10
3 2 1 4 1 4 1 4 1 4
Output
8
Sample 4of 4
Input
9
1 2 3 4 5 6 7 8 9
Output
0
653C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)