mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-24 03:31:59 +00:00
CF1606A AB Balance
R62650155
This commit is contained in:
parent
26e03541dd
commit
9c31ba69fc
16
Luogu/CF1606A/CF1606A.cpp
Normal file
16
Luogu/CF1606A/CF1606A.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user