当前位置:网站首页>Ccf-csp 202104-1 gray histogram 100 points

Ccf-csp 202104-1 gray histogram 100 points

2022-06-09 02:43:00 Confident little screw

Original link :CCF-CSP 202104-1 Gray histogram
 Insert picture description here

#include <bits/stdc++.h>
using namespace std;
#define ll long long

int a[510][510];
int main()
{
    
    std::ios::sync_with_stdio(false);
    cin.tie(0); cout.tie(0);
    int n,m,l;
    cin>>n>>m>>l;
    map<int,int> mp;
    for(int i=0;i<n;i++)
    {
    
        for(int j=0;j<m;j++)
        {
    
            cin>>a[i][j];
            mp[a[i][j]]++;
        }
    }
    for(int i=0;i<l;i++)
        cout<<mp[i]<<" ";
    return 0;
}


原网站

版权声明
本文为[Confident little screw]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/159/202206081210203113.html