cf/mirror

Challenging Valleys

CF
1760D1000· newbie2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
6
7
3 2 2 1 2 2 3
11
1 1 1 2 3 3 4 5 6 6 6
7
1 2 3 4 3 2 1
7
9 7 4 6 9 9 10
1
1000000000
8
9 4 4 5 9 4 9 10
Output
YES
YES
NO
YES
YES
NO
1760D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)