题目传送```
#include
using namespace std;
int main(){
int a[2000005]={0}, x,xxs;
scanf("%d", &xxs);
for(int i = 0; i < xxs; i++){
int n;
scanf("%d", &n);
for(int j = 0; j < n; j++){
scanf("%d", &x);
if(a[x] == 0){
printf("%d ", x);
}
a[x] = 1;
}
}
return 0;
}