Run ID:158651
提交时间:2026-08-22 16:20:48
#include <iostream> #include <string> #include <cctype> using namespace std; int main() { int T; cin >> T; while (T--) { string s; cin >> s; string res; for (char ch : s) { char c = tolower(ch); // 元音 a e i o u if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') { res += toupper(ch); } else { res += tolower(ch); } } cout << res << endl; } return 0; }