Changed the folder structure of codeforces problemsets
This commit is contained in:
30
codeforces/problemsets/stringTask/a.cpp
Normal file
30
codeforces/problemsets/stringTask/a.cpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
int main(){
|
||||
ios::sync_with_stdio(0);
|
||||
cin.tie(0);
|
||||
|
||||
string s, result = "";
|
||||
|
||||
getline(cin, s);
|
||||
for(char& c : s){
|
||||
if(c >= 'A' && c <= 'Z'){
|
||||
c += 32;
|
||||
}
|
||||
if(c == 'a' || c == 'e' || c == 'o' || c == 'i' || c == 'u' || c == 'y'){
|
||||
continue;
|
||||
} else{
|
||||
result += ".";
|
||||
result += c;
|
||||
}
|
||||
}
|
||||
|
||||
cout << result;
|
||||
|
||||
cout << flush;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user