6 条题解

  • 0
    @ 2025-3-24 11:43:16

    #include <bits/stdc++.h>

    using namespace std;

    int Hash[11];

    int n, score;

    int main()

    {

    cin>>n;
    
    for(int i=1; i<=n; i++){
    
        cin>>score;
    
        int k=score/10;
    
        if(k<=4) k=5;
    
        Hash[k]=Hash[k]+1;
    
    }
    
    for(int i=10; i>=5; i--){
    
        cout<<Hash[i]<<endl;
    
    }
    
    return 0;
    

    }

    信息

    ID
    39
    时间
    1000ms
    内存
    128MiB
    难度
    4
    标签
    递交数
    898
    已通过
    404
    上传者