#arc063a. [arc063_a]1D Reversi

[arc063_a]1D Reversi

输入一个长度不多于10510^5的字符串,只包含B或W。若前后两个字符不一样,答案累加,输出答案。

感谢@da32s1da 提供的翻译