#agc054d. [agc054_d](ox)

[agc054_d](ox)

给定一个串 SS 包含 ()ox

求最小的交换次数使得交换后的串将 o 替换为 (), x 替换为 )( 后,是一个合法括号序列。