题解 | #小判断#

小判断

https://ac.nowcoder.com/acm/problem/15452

大家应该都是这么写的。

代码

#include<bits/stdc++.h>
using namespace std;

int main(){
    char ch=getchar();
    if(ch>='0'&&ch<='9') cout<<1<<endl;
    else if(ch>='A'&&ch<='Z') cout<<2<<endl;
    else if(ch>='a'&&ch<='z') cout<<3<<endl;
    else cout<<4<<endl; 
    return 0;
}
全部评论

相关推荐

一天代码十万三:实习东西太少了,而且体现不出你业务,3个月不可能就这点产出吧,建议实习多写点,玩具项目面试官都不感兴趣的
点赞 评论 收藏
分享
评论
1
1
分享

创作者周榜

更多
牛客网
牛客企业服务