在第二个捆绑测试点一直卡住,卡在了Judging状态
查看原帖
在第二个捆绑测试点一直卡住,卡在了Judging状态
327288
helpcyg楼主2020/9/24 20:08

不知道是不是评测姬卡了还是我的代码的问题

核心代码放一下吧

#include<iostream>
#include<vector>
using namespace std;
int main(){
    string s;
    cin>>s;
    int m = 0;
    vector<int> count(27,0);
    for(long long i = 0;i < s.length();i++){
        count[s[i] - 97]++;
    }
    for(int i = 0;i < 26;i++){
        m = max(m,count[i]);
    }
    cout<<m;
    return 0;
}

第一个捆绑测试点AC了,我觉得是评测姬卡了?

2020/9/24 20:08
加载中...