Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
6194 邓小龙 字符类型 C++ Accepted 0 MS 260 KB 628 2025-01-13 12:08:50

Tests(26/26):


Code:

#include<iostream> using namespace std; int main(){ char ch; cin>>ch; if(ch>='a'&&ch<='z'){//小写字母 if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u') cout<<"Lower Vowel"; else cout<<"Lower Letter"; } else if(ch>='A'&&ch<='Z'){//大写字母 if(ch=='A'||ch=='E'||ch=='I'||ch=='O'||ch=='U') cout<<"Upper Vowel"; else cout<<"Upper Letter"; } else if(ch>='0'&&ch<='9'){//数字 cout<<"Digit"; } else{//除字母和数字以外的字符 cout<<"Other"; } return 0; }