L3-003 并查集

之前一直部分正确,后来在输入N后面加了一个getchar()后就通过了。 上代码: #include<iostream> #include<cstdio> #include<cstring> #include<set> #include<algorithm> using namespace std; int father[1004]; int father_x[1004]; struct DD {
相关文章
相关标签/搜索