One-dimensional Japanese Crossword
721A800· newbie1s256 MB⌨ stdin/stdout
Examples
Sample 1of 5
Input
3BBW
Output
12
Sample 2of 5
Input
5BWBWB
Output
31 1 1
Sample 3of 5
Input
4WWWW
Output
0
Sample 4of 5
Input
4BBBB
Output
14
Sample 5of 5
Input
13WBBBBWWBWBBBW
Output
34 1 3
58%
721A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)