cf/mirror

Boboniu Plays Chess

CF
1395B1100· newbie1s512 MB⌨ stdin/stdout

Examples

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