| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 6452 | 孙灏洋 | 元音字母转换 | C++ | Accepted | 100 | 0 MS | 252 KB | 454 | 2020-09-25 20:40:19 |
#include<bits/stdc++.h> using namespace std; int main(){ string s; int n; cin>>n; for(int i=1;i<=n;i++){ cin>>s; for(int j=0;j<=s.size();j++){ if(s[j]=='a'||s[j]=='e'||s[j]=='i'||s[j]=='o'||s[j]=='u'){ s[j]-=32; }else if(s[j]!='A'||s[j]!='E'||s[j]!='I'||s[j]!='O'||s[j]!='U'){ if(s[j]<='Z'&&(s[j]!='A'&&s[j]!='E'&&s[j]!='I'&&s[j]!='O'&&s[j]!='U')){ s[j]+=32; } } } cout<<s<<endl; } return 0; }