The Preliminary Contest for ICPC Asia Xuzhou 2019 部分题解
B.soeasy题目链接#includeusingnamespacestd;typedeflonglongLL;unordered_mapmp;intx,n,q,op;intFind(intx){returnmp.count(x)?mp[x]=Find(mp[x]):x;}intmain(){scanf("%d%d",&n,&q);while(q--){scanf("%d%d",&op,&x);i