提交时间:2022-05-28 13:45:07
运行 ID: 40163
#include<bits/stdc++.h> using namespace std; string a; char c[5]={'A','E','I','O','U'}; char b[5]={'a','e','i','o','u'}; int h,ans; int main(){ cin>>a; h=a.size(); for(int i=0;i<=h-1;i++){ for(int j=0;j<=4;j++){ if(a[i]==b[j]||a[i]==c[j]) ans++; } } cout<<ans; return 0; }