Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
5269 A班-过懿萱 判断字符类型 C++ 通过 100 1 MS 264 KB 312 2025-01-26 08:52:12

Tests(5/5):


#include <bits/stdc++.h> using namespace std; int main() { char n; cin>>n; if(n >= 'A' && n <= 'Z') { cout<<"A"<<endl; } else if(n >= 'a' && n <= 'z') { cout<<"a"<<endl; } else if(n >= '0' && n <= '9') { cout<<"0"<<endl; } else { cout<<"other"<<endl; } return 0; }


测评信息: