Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
5797 | 邱一涵 | 09判断ASCLL码 | C++ | Wrong Answer | 0 MS | 256 KB | 438 | 2024-12-14 20:44:20 |
#include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main(){ char b; cin>>b; if(b>=65&&b<=90){ cout<<"Upper Letter"<<endl; }else if(b<=97&&b<=122){ cout<<"Lower Letter"<<endl; }else if(b>=48&&b<=57){ cout<<"Diaital"<<endl; } else { cout<<"other"<<endl; } cout<<b<<endl; return 0; }
------Input------
A
------Answer-----
Upper Letter
------Your output-----
Upper Letter A