cf/mirror

Weird Chess

CF
538D1800· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
5
oxxxx
x...x
x...x
x...x
xxxxo
Output
YES
....x....
....x....
....x....
....x....
xxxxoxxxx
....x....
....x....
....x....
....x....
Sample 2of 3
Input
6
.x.x..
x.x.x.
.xo..x
x..ox.
.x.x.x
..x.x.
Output
YES
...........
...........
...........
....x.x....
...x...x...
.....o.....
...x...x...
....x.x....
...........
...........
...........
Sample 3of 3
Input
3
o.x
oxx
o.x
Output
NO
538D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)