cf/mirror

Find Square

CF
1028A800· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
5 6
WWBBBW
WWBBBW
WWBBBW
WWWWWW
WWWWWW
Output
2 4
Sample 2of 2
Input
3 3
WWW
BWW
WWW
Output
2 1
1028A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)