cf/mirror

Game of the Rows

CF
839B1900· candidate master1s256 MB⌨ stdin/stdout

Examples

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