竞赛
考级
#include<bits/stdc++.h> using namespace std; int main(){ char c; cin>>c; if(isupper(c)) cout<<'A'; else if(islower(c)) cout<<'a'; else if(isdigit(c)) cout<<0; else cout<<"other"; return 0; }
#include <bits/stdc++.h> using namespace std; int main(){ char n; cin>>n; if(n>='a' && n<='z'){ cout<<"a"; }else if(n>='A' && n<='Z'){ cout<<"A"; }else if(n>='0' && n<='9'){ cout<<"0"; }else{ cout<<"other"; } return 0; }
共64条
提交答案之后,这里将显示提交结果~