cf/mirror

Hongcow Solves A Puzzle

CF
745B1400· specialist2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
2 3
XXX
XXX
Output
YES
Sample 2of 3
Input
2 2
.X
XX
Output
NO
Sample 3of 3
Input
5 5
.....
..X..
.....
.....
.....
Output
YES
745B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)