#include<bits/stdc++.h> using namespace std; cosnt int MAXN = 500; const int MR = 50; int m,n; int v[MAXN]; int k[MAXN]; bool a[MAXN][MAXN]; bool b[MAXN][MAXN]; void method_1(){ memset(a,false,sizeof(a)); memset(v,0,sizeof(v)); memset(k,0,sizeof(k)); scanf("%d%d",&m,&n); for(int i = 1;i<=m;i++){ scanf("%d%d",&v[i],&k[i]); for(int j = 1;j<=k[i];j++){ int tmp; scanf("%d",&tmp); a[i][tmp] = true; }

return ;

} int main(){ method_1(); return 0; }

`