Bear and Square Grid
679C2400· grandmaster3s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
5 2..XXXXX.XXX.XXXX...XXXXX.
Output
10
Sample 2of 2
Input
5 3......XXX..XXX..XXX......
Output
25
58%
679C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…