Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
109222 | 陈铎文 | 字符类型 | C++ | Accepted | 1 MS | 272 KB | 441 | 2025-02-07 09:01:57 |
#include<bits/stdc++.h> using namespace std; int main(){ char a; cin>>a; if(a=='a' or a=='e' or a=='i' or a=='o' or a=='u'){ cout<<"Lower Vowel"; } else if(a>97 and a<123){ cout<<"Lower Letter"; } else if(a=='A' or a=='E' or a=='I' or a=='O' or a=='U'){ cout<<"Upper Vowel"; } else if(a>65 and a<91){ cout<<"Upper Letter"; } else if(a>=48 and a<=97){ cout<<"Digit"; } else{ cout<<"Other"; } }