Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
5746 C班-王硕 判断字符类型 C++ Wrong Answer 0 1 MS 268 KB 288 2025-02-15 16:55:24

Tests(0/5):


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


Judgement Protocol: