Run ID:136266
提交时间:2025-11-09 23:27:12
#include <iostream> #include <string> #include <cctype> using namespace std; bool isVowel(char c) { c = tolower(c); return c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'; } int main() { int T; cin >> T; cin.ignore(); while (T--) { string str; getline(cin, str); for (char &c : str) { if (isVowel(c)) { c = toupper(c); } else { c = tolower(c); } } cout << str << endl; } return 0; }