hdu 5971 种类并查集

种类并查集,建的时候判一下,建好以后,再根据所给的good和bad判断,再看看是否是都有vis,就行了。node #include<bits/stdc++.h> using namespace std; #define mod 1000000007 #define PI acos(-1.0) #define INF 0x3f3f3f3f typedef long long LL; typedef
相关文章
相关标签/搜索