太后悔了,这次题目这么简单, 我没打,加不了分了啊啊啊啊啊啊,去年最难那次打了,分不高,所以后面没打了,不想浪费钱,结果这次这么简单,md太后悔了。
题目列表
词频统计
#include<bits/stdc++.h>
using namespace std;
#define endl "\n"
bool vis[102];
int a[102],b[102];
int main()
{
ios::sync_with_stdio(false);
cout.tie(0);
cin.tie(0);
int n, m;
cin >> n >> m;
int k;
for (int i = 1; i <= n; i++)
{
cin >> k;
int x;
for (int j = 1; j <= k; j++)
{
cin >> x;
b[x]++;
vis[x]=1;
}
for(int j=1;j<=m;j++)
{
if(vis[j])
{
a[j]++;
vis[j]=0;
}
}
}
for(int i=1;i<=m;i+&