Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
103343 杜春雨 字符类型 C++ Accepted 1 MS 272 KB 760 2024-12-28 16:14:12

Tests(26/26):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ char b; cin>>b; if(b>='A'&&b<='Z'){ if(b=='A'||b=='E'||b=='I'||b=='O'||b=='U') cout<<"Upper Vowel"<<endl; else cout<<"Upper Letter"<<endl; }else if(b>='a'&&b<='z'){ if(b=='a'||b=='e'||b=='i'||b=='o'||b=='u') cout<<"Lower Vowel"<<endl; else cout<<"Lower Letter"<<endl; }else if(b>='0'&&b<='9'){ cout<<"Digit"<<endl; } else{ cout<<"Other"<<endl; } return 0; }