Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
6308 D班-罗炜翰 判断字符类型 C++ 通过 100 1 MS 260 KB 272 2025-02-23 13:39:51

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"; } }


测评信息:

输入

                    

输出

                    

答案

                    

系统信息

exit code: 0, checker exit code: 0

输入

                    

输出

                    

答案

                    

系统信息

exit code: 0, checker exit code: 0

输入

                    

输出

                    

答案

                    

系统信息

exit code: 0, checker exit code: 0

输入

                    

输出

                    

答案

                    

系统信息

exit code: 0, checker exit code: 0

输入

                    

输出

                    

答案

                    

系统信息

exit code: 0, checker exit code: 0