签到题,5分钟出来
#include <iostream>
#include <cstring>
using namespace std;
int L[256];
int main() {
memset(L, 0, sizeof(L));
int m, n, l;
int temp = -1;
cin >> m >> n >> l;
for (int i = 0; i < m * n; i++) {
cin >> temp;
L[temp]++;
}
for (int i = 0; i < l; i++)
cout << L[i] << " ";
return 0 ;
}