| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 6371 | 孙灏洋 | 元音字母转换 | C++ | Wrong Answer | 0 | 0 MS | 256 KB | 439 | 2020-09-23 21:41:07 |
#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]=='u'){ s[j]='U'; }else if(s[j]>'a'){ s[j]-=32; } } cout<<s<<endl; } return 0; }