mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-27 10:31:58 +00:00
17 lines
206 B
C++
17 lines
206 B
C++
|
#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;
|
||
|
}
|