cf/mirror

Chess Strikes Back (easy version)

CF
1379F12700· international gm2s512 MB⌨ stdin/stdout

Examples

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