0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-09-19 21:45:25 +00:00
OI-codes/AcWing/773/773.cpp

24 lines
429 B
C++

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