| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 | 
|---|---|---|---|---|---|---|---|---|
| 133527 | 石水生 | 元音字母转换 | C++ | Accepted | 3 MS | 276 KB | 391 | 2025-10-19 11:05:21 | 
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ string s; cin>>s; for(int j=0;j<s.length();j++){ if(s[j]=='a'||s[j]=='e'||s[j]=='i'||s[j]=='o'||s[j]=='u'){ s[j]=s[j]-32; }else if(s[j]>='A'&&s[j]<='Z'&&(s[j]!='A'&&s[j]!='E'&&s[j]!='I'&&s[j]!='O'&&s[j]!='U')){ s[j]=s[j]+32; } } cout<<s<<endl; } }