#include<bits/stdc++.h> using namespace std; int main(){ string s1,s2; cin>>s1>>s2; int p=s1.find(s2); while(p!=-1){ s1.erase(p,1); p=s1.find(s2); } cout <<s1; return 0; } /************************************************************** Problem: 1131 User: luyanchen Language: C++ Result: Accepted Time:6 ms Memory:2076 kb ****************************************************************/