题目 代码0分:
#include<bits/stdc++.h>
using namespace std;
int n,ans=0;
int a[7],b[7],d[7];
//int js(int x)
//{
// if(x==7)
// {
// return 1;
// }
// if(x==6)
// {
// return 2;
// }
// if(x==5)
// {
// return 3;
// }
// if(x==4)
// {
// return 4;
// }
// if(x==3)
// {
// return 5;
// }
// if(x==2)
// {
// return 6;
// }
// if(x==1)
// {
// return 7;
// }
//}
int main()
{
cin>>n;
for(int i=1; i<=7; i++)
{
cin>>a[i];
}
while(n--)
{
ans=0;
for(int i=1; i<=7; i++)
{
cin>>b[i];
}
for(int i=1; i<=7; i++)
{
for(int j=1; j<=7; j++)
{
if(a[i]==b[j])
{
ans++;
}
}
}
d[ans]++;
}
for(int i=7; i>=1; i--)
{
cout<<d[i]<<" ";
}
return 0;
}