#include <sstream> #include <string> #include <iostream> #include <cstdio> using namespace std; int main(){ string str; while(getline(cin,str)){ while(1){ int pos=str.find("occupation"); if(pos==string::npos){ break; } else{ str.replace(pos,10,"OH-OH-OH-QQ-PEI-PEI-SHION"); } } cout<<str<<endl; } return 0; } |
Double click to view unformatted code.