cf/mirror

Chess Strikes Back (hard version)

CF
1379F22800· 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 10
4 2
6 4
1 3
4 2
6 4
2 2
2 4
1 3
4 4
3 1
Output
YES
YES
NO
NO
YES
YES
NO
YES
YES
NO
1379F2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)