大佬们。这样写哪里错了...

#include<bits/stdc++.h>
using namespace std;
int cnt[260];
int main(){
    char c;
    while(scanf("%c",&c)!=EOF){
        cnt[c]++;
    }
    int res = 0;
    for(int i = 0; i <=260; i++) if(cnt[i]) res++;
    printf("%d",res);
    return 0;
}

全部评论
多了个空格
点赞 回复 分享
发布于 2020-03-08 21:54

相关推荐

03-31 18:02
门头沟学院 Java
白日梦想家_等打包版:不要的哦佛给我
点赞 评论 收藏
分享
爱喝雪碧:我也投了这家,他最后两行我不懂,问什么意思,不回复我了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务