Find Square
1028A800· newbie1s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
5 6WWBBBWWWBBBWWWBBBWWWWWWWWWWWWW
Output
2 4
Sample 2of 2
Input
3 3WWWBWWWWW
Output
2 1
58%
1028A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
5 6WWBBBWWWBBBWWWBBBWWWWWWWWWWWWW
2 4
3 3WWWBWWWWW
2 1