摘要: A. Short Sort #include<bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0), cin.tie(0); int t; cin >> t; for( string s ; t ; t -- 阅读全文
posted @ 2023-09-25 21:17 PHarr 阅读(36) 评论(0) 推荐(0) 编辑
摘要: A. Mixed Messages dp[i][j]表示前i位,选择\(j\)个移动到一起的最小花费。 #include<bits/stdc++.h> using namespace std; #define int long long constexpr int inf = 1E9; int32_ 阅读全文
posted @ 2023-09-25 20:23 PHarr 阅读(104) 评论(0) 推荐(0) 编辑