http://poj.org/problem?id=3981http://poj.org/problem?id=3981
#include <iostream>
#define x first
#define y second
using namespace std;
typedef long long ll;
int main() {
// system("chcp 65001");
cin.tie(0);
cout.tie(0);
// freopen("C:/Users/zhaochen/Desktop/input.txt", "r", stdin);
string str;
while (getline(cin, str)) {
while (1) {
int pos = str.find("you");
if (pos != -1) {
str.replace(pos, 3, "we");
} else {
cout << str << endl;
break;
}
}
}
return 0;
}