2019 BUPT Winter Training #1 div2 題目記錄帖 無答案

B-B You are given a ternary string (it is a string which consists only of characters ‘0’, ‘1’ and ‘2’). You can swap any two adjacent (consecutive) characters ‘0’ and ‘1’ (i.e. replace 「01」 with 「10」
相關文章
相關標籤/搜索