cf/mirror

Mahmoud and a Triangle

CF
766B1000· newbie2s256 MB⌨ stdin/stdout

Examples

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