Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
113312 | 吴梓玄 | 字符类型 | C++ | Accepted | 1 MS | 272 KB | 491 | 2025-03-15 17:18:02 |
#include <bits/stdc++.h> using namespace std; int main() { char s; cin>>s; if ('0'<=s && s<='9'){ cout<<"Digit"; } else if ('A'<=s && s<='Z'){ if(s=='A' || s=='E' || s=='I' || s=='O' || s=='U'){ cout<<"Upper Vowel"; } else{ cout<<"Upper Letter"; } } else if ('a'<=s && s<='z'){ if(s=='a' || s=='e' || s=='i' || s=='o' || s=='u'){ cout<<"Lower Vowel"; } else{ cout<<"Lower Letter"; } } else{ cout<<"Other"; } return 0; }