Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
5749 C班-王硕 判断字符类型 C++ Wrong Answer 60 1 MS 268 KB 302 2025-02-15 16:57:28

Tests(3/5):


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


Judgement Protocol: