| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 133526 | 石水生 | 元音字母转换 | C++ | Wrong Answer | 3 MS | 276 KB | 391 | 2025-10-19 11:03:48 |
#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; } }
------Input------
20 aeiou AEIOU QWERTYUIOPasdfghjklZXCVBNMqwertyuiopASDFGHJKLzxcvb a e i o u A E I O U AaEeIiOoUu python java mysql eClIPse PHP cPp
------Answer-----
AEIOU AEIOU qwErtyUIOpAsdfghjklzxcvbnmqwErtyUIOpAsdfghjklzxcvb A E I O U A E I O U AAEEIIOOUU pythOn jAvA mysql EclIpsE php cpp
------Your output-----
AEIOU aeiou qwertyuiopAsdfghjklzxcvbnmqwErtyUIOpasdfghjklzxcvb A E I O U a e i o u aAeEiIoOuU pythOn jAvA mysql EclipsE php cpp