Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
124708 | 范恒恺 | 字符类型 | C++ | Wrong Answer | 0 MS | 272 KB | 431 | 2025-07-12 11:31:29 |
#include<iostream> using namespace std; int main(){ char c; cin>>c; if(c>='A'&&c<='Z') { cout<<"Upper Vowel"; } if(c=='A'||c=='E'||c=='I'||c=='O'||c=='U') { cout<<"Upper Letter"; } else if(c>='a'&&c<='z') { cout<<"Lower Letter"; } else if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u') { cout<<"Lower Vowel"; } else if(c>=0&&c<='9') { cout<<"Digit"; } else { cout<<"Other"; } }
------Input------
------Answer-----
Other
------Your output-----
Digit