cf/mirror

Chess Tourney

CF
845A1100· newbie1s256 MB⌨ stdin/stdout

Examples

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