diff options
| author | Omar Magdy <omar.professional8777@gmail.com> | 2022-05-04 20:02:33 +0200 |
|---|---|---|
| committer | Omar Magdy <omar.professional8777@gmail.com> | 2022-05-04 20:02:33 +0200 |
| commit | 6d7b9aae2f3f6a83cf0517ae96f3258e7191ce56 (patch) | |
| tree | 55c10509964b10bdda7ec763688d63bcc928ec2f /StringTask.cpp | |
| parent | 0cef0cea2289b14264c5bf1693966c3c8cc0ca00 (diff) | |
| download | competitive-programming-6d7b9aae2f3f6a83cf0517ae96f3258e7191ce56.tar.xz competitive-programming-6d7b9aae2f3f6a83cf0517ae96f3258e7191ce56.zip | |
Solved some new problems
Diffstat (limited to 'StringTask.cpp')
| -rw-r--r-- | StringTask.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/StringTask.cpp b/StringTask.cpp new file mode 100644 index 0000000..74d4635 --- /dev/null +++ b/StringTask.cpp @@ -0,0 +1,20 @@ +#include <bits/stdc++.h> + +using namespace std; + +int main() { + ios::sync_with_stdio(false); + cin.tie(0); + string s; + cin >> s; + string vowels = "aeiouy"; + set<char> st(vowels.begin(), vowels.end()); + string ans = ""; + for (char ch : s) { + if (!st.count(tolower(ch))) { + ans += "." + string(1, tolower(ch)); + } + } + cout << ans << '\n'; + return 0; +} |
