fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. #define int long long
  5. const int MOD = 1e9 + 7;
  6. const int N = 2e5 + 5;
  7.  
  8. signed main()
  9. {
  10. ios_base::sync_with_stdio(0);
  11. cin.tie(0);
  12. cout.tie(0);
  13. int q;
  14. cin >> q;
  15. while(q--)
  16. {
  17. string s;
  18. cin >> s;
  19. for (int i = 0;i<=s.size()-1;i++)
  20. {
  21. if (s[i]=='a'||s[i]=='A') cout << "A";
  22. else if (s[i]=='e'||s[i]=='E') cout << "E";
  23. else if (s[i]=='o'||s[i]=='O') cout << "O";
  24. else if (s[i]=='i'||s[i]=='I') cout << "I";
  25. else if (s[i]=='u'||s[i]=='U') cout << "U";
  26. else
  27. {
  28. std::transform(s.begin(), s.end(),s.begin(),::tolower);
  29. cout << s[i];
  30. }
  31. }
  32. cout << endl;
  33. }
  34. return 0;
  35. }
  36.  
Runtime error #stdin #stdout 0.01s 5340KB
stdin
Standard input is empty
stdout
Standard output is empty