A. DUBSTEP REGEX
#include<bits/stdc++.h>
using namespace std;
#define iter(a, b, c) for(auto(a) = (b); (a) < (c); ++(a))
#define mod 1000000007
#define pb push_back
#define ff first
#define ss second
#define FIO ios_base::sync_with_stdio(false); cin.tie(NULL);
#define test(w) int w;cin>>w;while(w--)
int main() {
string s; cin>>s;
regex p("WUB");
cout<<regex_replace(s,p," ");
return 0;
}
Comments
Post a Comment