cf/mirror

Little Elephant and Problem

CF
220A1300· pupil2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
2
1 2
Output
YES
Sample 2of 3
Input
3
3 2 1
Output
YES
Sample 3of 3
Input
4
4 3 2 1
Output
NO
220A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)