0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-27 16:56:26 +00:00
Baoshuo Ren 2021-08-01 19:44:12 +08:00 committed by Baoshuo Ren
parent 7321d1de16
commit b6ee5f6b23
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

20
AcWing/770/770.cpp Normal file
View File

@ -0,0 +1,20 @@
#include <bits/stdc++.h>
using namespace std;
int main() {
string s, s1, s2;
getline(cin, s);
stringstream ss;
ss << s;
cin >> s1 >> s2;
while (ss >> s) {
if (s == s1) {
cout << s2 << ' ';
} else {
cout << s << ' ';
}
}
cout << endl;
return 0;
}