The Wall (easy)
690D11200· pupil0.5s256 MB⌨ stdin/stdout
Examples
Sample 1of 6
Input
3 7...............BB.B..
Output
2
Sample 2of 6
Input
4 5..B....B..B.B.BBBB.B
Output
2
Sample 3of 6
Input
4 6..B...B.B.BBBBB.BBBBBBBB
Output
1
Sample 4of 6
Input
1 1B
Output
1
Sample 5of 6
Input
10 7...........................................................B...B.BB.B.
Output
3
Sample 6of 6
Input
8 8.................................B.......B.....B.B.....B.BB...BB
Output
2
58%
690D1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)