0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-09-16 20:25:24 +00:00
Baoshuo Ren 2021-10-07 18:27:31 +08:00
parent 3fc12e9ae2
commit af3cb117d4
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

23
AcWing/773/773.cpp Normal file
View File

@ -0,0 +1,23 @@
#include <bits/stdc++.h>
using namespace std;
string s, s1;
int main() {
while (cin >> s >> s1) {
bool flag = false;
char c = 'z';
while (!flag) {
if (s.find_first_of(c) != string::npos) {
s.insert(s.find_first_of(c) + 1, s1);
flag = true;
break;
}
c--;
}
cout << s << endl;
}
return 0;
}