rt,现在蒟蒻只能想出统计仅左边为 o\texttt{o}o 和 wo\texttt{wo}wo,仅右边为o\texttt{o}o 和 ow\texttt{ow}ow ,左为 o\texttt{o}o 且右为 o\texttt{o}o,左为o\texttt{o}o 且右为 ow\texttt{ow}ow,左为 wo\texttt{wo}wo 且右为 o\texttt{o}o,左为 wo\texttt{wo}wo 且右为 ow\texttt{ow}ow 的,但仍不会连,求贪心思路