Hongcow Solves A Puzzle
745B1400· specialist2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
2 3XXXXXX
Output
YES
Sample 2of 3
Input
2 2.XXX
Output
NO
Sample 3of 3
Input
5 5.......X.................
Output
YES
58%
745B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)