摘要: D - "redocta".swap(i,i+1) 题意: 给一个字符串,每次交换相邻两个字符,问最少多少次变成"atcoder" 题解: 从左到右依次模拟 #include<bits/stdc++.h> using namespace std; typedef long long ll; type 阅读全文
posted @ 2022-08-21 18:59 HHzp 阅读(103) 评论(0) 推荐(0)