mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-27 22:56:27 +00:00
A - AB Balance
https://codeforces.com/contest/1606/submission/133475309
This commit is contained in:
parent
d177b091d5
commit
41f631db5c
16
CodeForces/1606/A/A.cpp
Normal file
16
CodeForces/1606/A/A.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