LOADING

加载过慢请开启缓存,浏览器默认开启

daily 1

2023/8/27

CF 49A

#include<bits/stdc++.h>
using namespace std;
int main()
{
    char ch;
    bool flag=false;                
    while((ch=getchar())!=EOF)
    {
        if(ch=='A'||ch=='a'||ch=='E'||ch=='e'||ch=='I'||ch=='i'||ch=='O'||ch=='o'||ch=='U'||ch=='u'||ch=='V'||ch=='v'||ch=='Y'||ch=='y')
            flag=true;
        else if((ch>='A'&&ch<='Z')||(ch>='a'&&ch<='z'))
            flag=false;
    }
    if(flag)
        cout<<"YES";
    else
        cout<<"NO";
    return 0;
}