cf/mirror

One-dimensional Japanese Crossword

CF
721A800· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 5
Input
3
BBW
Output
1
2
Sample 2of 5
Input
5
BWBWB
Output
3
1 1 1
Sample 3of 5
Input
4
WWWW
Output
0
Sample 4of 5
Input
4
BBBB
Output
1
4
Sample 5of 5
Input
13
WBBBBWWBWBBBW
Output
3
4 1 3
721A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)