| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 152141 | Kevin | 输出元音字母 | C++ | Accepted | 1 MS | 280 KB | 362 | 2026-04-21 14:32:52 |
#include<bits/stdc++.h> using namespace std; int main(){ string a,b=""; getline(cin,a); int len=a.size(); int cnt=0; for(int i=0;i<len;i++){ if(a[i]=='a'||a[i]=='e'||a[i]=='i'||a[i]=='o'||a[i]=='u'||a[i]=='A'||a[i]=='E'||a[i]=='I'||a[i]=='O'||a[i]=='U') { b[cnt++]=a[i]; } } for(int i=0;i<cnt;i++){ cout<<b[i]; } return 0; }