提交时间:2022-05-28 13:49:05
运行 ID: 40172
#include <bits/stdc++.h> using namespace std; string a; int ans=0; int main(){ getline(cin,a); int 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; }