Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
148912 冰块ee 元音字母转换 C++ Wrong Answer 0 MS 276 KB 552 2026-03-01 20:38:44

Tests(0/1):


Code:

#include <iostream> #include <string> using namespace std; int t; string n; int main() { cin>>t; for(int i=1;i<=t;i++){ cin.get(); getline(cin,n); for(int i=0;i<n.size();i++){ if(n[i]=='a'||n[i]=='e'||n[i]=='i'||n[i]=='o'||n[i]=='u'){ cout<<(char)(n[i]-32); }else{ if(n[i]=='A'||n[i]=='E'||n[i]=='I'||n[i]=='O'||n[i]=='U'){ cout<<n[i]; }else{ if(n[i]>='A'&&n[i]<='Z'){ cout<<(char)(n[i]+32); }else{ cout<<n[i]; } } } } cout<<endl; } }


Run Info:

------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 EIOU wErtyUIOpAsdfghjklzxcvbnmqwErtyUIOpAsdfghjklzxcvb AEEIIOOUU ythOn AvA ysql clIpsE hp pp