Skip to content

Instantly share code, notes, and snippets.

@lazycipher
Created June 6, 2019 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lazycipher/a685c74a1527e40d644c51c408c16388 to your computer and use it in GitHub Desktop.
Save lazycipher/a685c74a1527e40d644c51c408c16388 to your computer and use it in GitHub Desktop.
118A A String Codeforces Solution in C++
#include<iostream>
#include<string>
using namespace std;
int main(){
string s1, s2;
cin>>s1;
for(int i=0; i<s1.length(); i++){
if(s1[i]=='a' || s1[i]=='e' || s1[i]=='i' || s1[i]=='o' || s1[i]=='u' || s1[i]=='A' || s1[i]=='E' || s1[i]=='I' || s1[i]=='O' || s1[i]=='U' || s1[i]=='Y' || s1[i]=='y'){
continue;
}else{
s2+='.';
s2+=tolower(s1[i]);
}
}
cout<<s2;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment