竞赛
考级
#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; }
159****1573
企鹅
韩旭
#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; }
秩序----鬼影之魂 王子墨
#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"; }
一只有梦想的咸鱼
༺ཌༀ☯追光·少年☯ༀད༻
LS_YZY
#include <bits/stdc++.h> #define LL long long using namespace std; char a; int main() { 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; }
张立兴业
枫岚
#include<bits/stdc++.h> using namespace std; int main(){ char s; cin>>s; if(s<='z'&&s>='a')cout<<'a'; else if(s<='Z'&&s>='A')cout<<'A'; else if(s<='9'&&s>='1')cout<<0; else cout<<"other"; return 0; }
???
毛奕程
zsy
有事找大号
TN Hacker
耐高总冠军 张文杰
算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
共46条