Skip to content

Commit

Permalink
Add 03447.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiyabye committed Mar 31, 2024
1 parent 37e3dc8 commit c43c727
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions 03xxx/03447.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#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;
}

0 comments on commit c43c727

Please sign in to comment.