-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path118A_StringTask.cpp
More file actions
44 lines (38 loc) · 845 Bytes
/
Copy path118A_StringTask.cpp
File metadata and controls
44 lines (38 loc) · 845 Bytes
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
/*
~ Author : @tridib_2003
~ Title : 118A. String Task
~ Link : https://codeforces.com/problemset/problem/118/A
*/
#include<bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
/*
int tc;
cin>>tc;
while(tc--) {
}
*/
string str;
cin >> str;
for(int i = 0; i < str.length(); i++) {
switch(str[i]) {
case 'a' :
case 'e' :
case 'i' :
case 'o' :
case 'u' :
case 'y' :
case 'a' - ' ':
case 'e' - ' ':
case 'i' - ' ':
case 'o' - ' ':
case 'u' - ' ':
case 'y' - ' ': continue;
default :
cout << "." << (char)tolower(str[i]);
}
}
return 0;
}