#D7865. Black and White Boxes
Black and White Boxes
Black and White Boxes
Example
Input
4 B W WB WB
Output
5
inputFormat
Input
4 B W WB WB
outputFormat
Output
5
样例
4
B
W
WB
WB
5
Example
Input
4 B W WB WB
Output
5
Input
4 B W WB WB
Output
5
4
B
W
WB
WB
5
By signing up a OpenJudge universal account, you can submit code and join discussions in all online judging services provided by us.