竞赛
考级
#include<bits/stdc++.h> using namespaceace std; int main(){ char a; cin>>a; if(a>=65&&a<=90) cout<<"A"; else if(a>=97&&a<=122) cout<<"a"; else if(a>=48&&a<=57) cout<<"0"; else cout<<"other"; }
一只有梦想的咸鱼
#include<bits/stdc++.h> using namespace std; int main(){ char a; cin>>a; if(int(a)>=97&&int(a)<='z'){ cout<<"a"; } else if(int(a)>='A'&&int(a)<='Z'){ cout<<"A"; } else if(int(a)>='0'&&int(a)<='9'){ cout<<"0"; } else{ cout<<"other"; } return 0; }
闯思得
6.
༺ཌༀTN黑客ༀད༻
耐高总冠军 张文杰
算a>=多少 && a<=多少,即可。 if(a>='a' && a<='z'){ cout<<"a"; }else if(a>='A' && a<='Z'){ cout<<"A"; }else if(a>='0' && a<='9'){ cout<<"0"; }else{ cout<<"other"; }
Let's go,ak.
#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; }
~Lyney~
#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; }
倒车请故意
#include <bits/stdc++.h> //基本头文件 using namespace std; //基本框架 int main() { char a; cin>>a; if (a>='0' && a<='9') { cout<<"0"; }else if (a>='a' && a<='z') { cout<<"a"; }else if (a>='A' && a<='Z') { cout<<"A"; }else{ cout<<"other"; } }
151****4168
#include<iostream> using namespace std; int main(){ char a; cin>>a; if(a>='A'&&a<='Z'){ cout<<"A"; }else if(a>='a'&&a<='z'){ cout<<"a"; }else if(a>='0'&&a<='9'){ cout<<"0"; }else{ cout<<"other"; } return 0; }
秩序----鬼影之魂 王子墨
STL
zhouty
正在减肥的吃货
潜龙暗虎
#include<cstdio> #include<iostream> #include<cmath> using namespace std; int main(){ char a; cin>>a; if(a>='a'&&a<='z') { cout<<"a"; } else if(a>='A'&&a<='Z') { cout<<"A"; } else if(a>='0'&&a<='9') { cout<<"0"; } else { cout<<"other"; } return 0; }
准
1ntrEstingด้้้้้
#include<bits/stdc++.h> using namespace std; int main(){ char n; cin>>n; if(n>=65&&n=<90){ cout<<'A'; } else if(n>=97&&n=<122){ cout<<'a'; } else if(n>=48&&n=<57){ cout<<'0'; } else{ cout<<"other"; } }
菜
共36条