Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
5750 | C班-王硕 | 判断字符类型 | C++ | Accepted | 100 | 1 MS | 260 KB | 302 | 2025-02-15 16:58:14 |
#include <bits/stdc++.h> using namespace std; int main(){ char a; cin>>a; if (a >= 'A' && a <= 'Z'){ cout<<"A"<<endl; } else if (a >= 'a' && a <= 'z'){ cout<<"a"<<endl; } else if (a >= '0' && a <= '9'){ cout<<0<<endl; } else{ cout<<"other"<<endl; } return 0; }