Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
103339 杜春雨 字符类型 C++ Wrong Answer 0 MS 276 KB 760 2024-12-28 16:13:12

Tests(1/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; }


Run Info:

------Input------
e
------Answer-----
Lower Vowel
------Your output-----
Lower Letter