diff --git a/AcWing/773/773.cpp b/AcWing/773/773.cpp new file mode 100644 index 00000000..973bff0d --- /dev/null +++ b/AcWing/773/773.cpp @@ -0,0 +1,23 @@ +#include + +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; +}