Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
109221 | 陈铎文 | 字符类型 | C++ | Wrong Answer | 1 MS | 280 KB | 431 | 2025-02-07 09:00: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"; } 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"; } if(a>=48 and a<=97){ cout<<"Digit"; } else{ cout<<"Other"; } }
------Input------
e
------Answer-----
Lower Vowel
------Your output-----
Lower VowelOther