Educational Codeforces Round 121 (Rated for Div. 2) (A ~ C)
A.https://codeforces.com/contest/1626/problem/A题意:给你个字符串,使得每个字母出现次数不超过两次,输出字符串,使得输出的字符串相同字母距离相同。题解:sort一下即可int main(){ int t; cin >> t; while (t--) { string s; cin >> s; sort(s.begin(), s.end()); cout <<