| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 6369 | 孙灏洋 | 元音字母转换 | C++ | Wrong Answer | 0 | 0 MS | 260 KB | 479 | 2020-09-23 21:37:55 |
#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]='A'; }else if(s[j]=='e'){ s[j]='E'; }else if(s[j]=='I'){ s[j]='i'; }else if(s[j]=='o'){ s[j]='O'; }else if(s[j]=='o'){ s[j]='O'; }else if(s[j]=='U'){ s[j]='u'; }else if(s[j]<'a'){ s[j]+=32; } } cout<<s<<endl; } return 0; }