Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
153156 李沐阳 字符类型 C++ Accepted 1 MS 272 KB 496 2026-05-10 11:05:35

Tests(26/26):


Code:

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