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

#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

相关推荐

点赞 收藏 评论
分享
牛客网
牛客企业服务