0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-23 22:48:48 +00:00

CF1606A AB Balance

R62650155
This commit is contained in:
Baoshuo Ren 2021-11-15 13:08:22 +08:00 committed by Baoshuo Ren
parent 26e03541dd
commit 9c31ba69fc
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

16
Luogu/CF1606A/CF1606A.cpp Normal file
View File

@ -0,0 +1,16 @@
#include <bits/stdc++.h>
using namespace std;
int t;
string s;
int main() {
cin >> t;
while (t--) {
cin >> s;
s[0] = *s.rbegin();
cout << s << endl;
}
return 0;
}