Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
110495 唐安轩 字符类型 C++ Accepted 1 MS 272 KB 592 2025-02-22 10:59:05

Tests(26/26):


Code:

#include<iostream> using namespace std; int main(){ char c; cin>>c; if(c>='A' && c<='Z'){ if(c=='A'||c=='E'||c=='I'||c=='O'||c=='U'){ cout<<"Upper Vowel"<<endl; }else{ cout<<"Upper Letter"<<endl; } }else if(c>='a'&&c<='z'){ if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){ cout<<"Lower Vowel"<<endl; }else{ cout<<"Lower Letter"<<endl; } }else if(c>='1'&&c<='9'){ cout<<"Digit"<<endl; }else{ cout<<"Other"<<endl; } return 0; }