提交时间:2022-05-29 08:38:46
运行 ID: 40456
#include<bits/stdc++.h> using namespace std; int main() { string a; int i,l,ans=0; cin>>a; l=a.size(); for(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; }