| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 40620 | 张浩然 | 元音字母 | C++ | Accepted | 100 | 32 MS | 3160 KB | 332 | 2022-05-29 18:55:52 |
#include<bits/stdc++.h> using namespace std; string a; int l,ans=0; int main(){ cin>>a; l=a.size(); for(int i=0;i<l;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'){ ans++; } } cout<<ans; return 0; }