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 {
相關文章
相關標籤/搜索