cf/mirror

Petya and Staircases

CF
362B1100· newbie1s256 MB⌨ stdin/stdout

Examples

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