#include <bits/stdc++.h> using namespace std; int main() { string a, b; cin >> a >> b; while (1) { int t = a.find(b); if (t == -1) break; a.erase(t, b.size()); } if (a.size() > 0) cout << a; else puts("FRULA"); }
TLE了,96分,应该是函数调用导致超时。。。