문제
풀이
#include <iostream>
#include <string>
using namespace std;
void solve(void) {
string s;
while (getline(cin, s)) {
while (s.find("BUG") != string::npos) {
s.replace(s.find("BUG"), 3, "");
}
cout << s << "\n";
}
}
int main(void) {
ios::sync_with_stdio(false);
cin.tie(nullptr);
solve();
return 0;
}