0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-11 19:46:27 +00:00
OI-codes/CodeForces/1606/A/A.cpp

17 lines
206 B
C++
Raw Normal View History

#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;
}