Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
5292 D班-苏莉雯 判断字符类型 C++ 通过 100 2 MS 264 KB 275 2025-01-31 15:55:25

Tests(5/5):


#include<bits/stdc++.h> using namespace std; int main() { char c1; cin>>c1; if((c1<=57)&&(c1>=48)) { cout<<"0"; } else if((c1<=90)&&(c1>=65)) { cout<<"A"; } else if((c1<=122)&&(c1>=97)) { cout<<"a"; } else { cout<<"other"; } }


测评信息: