Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
61672 | wangwei | 字符类型判断 | C++ | Accepted | 0 MS | 248 KB | 356 | 2025-03-06 20:12:29 |
#include <iostream> // 头文件 → 工具 using namespace std; // 命名空间 // 主函数 : 炒菜主要的动作 int main() { char a; cin>>a; if(a>='A' && a<='Z') cout<<"upper"; else if(a>='a'&&a<='z') cout<<"lower"; else if(a>='0'&&a<='9') cout<<"digit"; else cout<<"other"; return 0; // 程序的终止语句 }