New Year and Ascent Sequence
1284B1400· specialist2s1024 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
51 11 11 21 41 3
Output
9
Sample 2of 3
Input
34 2 0 2 06 9 9 8 8 7 71 6
Output
7
Sample 3of 3
Input
103 62 24 391 171 991 601 641 302 79 292 20 732 85 371 100
Output
72
58%
1284B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)