-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathA_Dubstep.cpp
More file actions
48 lines (46 loc) · 1.22 KB
/
A_Dubstep.cpp
File metadata and controls
48 lines (46 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
``````````````
``` আরেহ বস ```
``` ভালো তোহ ```
``` ? ```
``` ```
``` ```
````````````
*/
#include<bits/stdc++.h>
using namespace std;
int t, count;
#define ll long long
#define yes cout << "YES" << endl;
#define no cout << "NO" << endl;
#define cout(n) cout << n << endl;
#define TestCase cin >> t; while(t--)
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
char A[205];
cin >> A;
int len = strlen(A);
int count = 0;
for(int i = 0; i < len;){
if(A[i] == 'W' and A[i + 1] == 'U' and A[i + 2] == 'B'){
i += 3;
if(count == 1){
cout << ' ';
}
count = 0;
continue;
}
else{
cout << A[i];
i++;
count = 1;
}
// if(A[i] == (len - 1)){
// cout << endl;
// }
}
return 0;
}