0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-18 05:11:59 +00:00

A - AB Balance

https://codeforces.com/contest/1606/submission/133475309
This commit is contained in:
Baoshuo Ren 2021-10-29 23:03:27 +08:00 committed by Baoshuo Ren
parent d177b091d5
commit 41f631db5c
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

16
CodeForces/1606/A/A.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;
}