1 条题解

  • 1
    @ 2025-12-1 19:20:01
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        int n,a,b=0,c=0,d=0;
        cin>>n;
        for(int i=1;i<=n;i++){
            cin>>a;
            if(a==1)
                b++;
            if(a==5)
                c++;
            if(a==10)
                d++;
        }
        cout<<b<<endl<<c<<endl<<d;
        return 0;
    }
    
    • 1

    信息

    ID
    6918
    时间
    1000ms
    内存
    512MiB
    难度
    1
    标签
    递交数
    28
    已通过
    15
    上传者