救命
  • 板块灌水区
  • 楼主Xiaonao_Dali
  • 当前回复0
  • 已保存回复0
  • 发布时间2023/12/26 22:39
  • 上次更新2023/12/26 22:39:44
查看原帖
救命
1076621
Xiaonao_Dali楼主2023/12/26 22:39

debug https://www.luogu.com.cn/problem/P4305#submit

#include<cstdio>
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;
}
2023/12/26 22:39
加载中...