题目链接:hdu 5486 Difference of Clustering
解题思路
枚举集合判断转移的方向只能从该集合的转移过去。
代码
#include <cstdio>
#include <cstring>
#include <vector>
#include <algorithm>
using namespace std;
const int maxn = 1e6 + 5;
const int maxm = 1e5 + 5 * <
题目链接:hdu 5486 Difference of Clustering
枚举集合判断转移的方向只能从该集合的转移过去。
#include <cstdio>
#include <cstring>
#include <vector>
#include <algorithm>
using namespace std;
const int maxn = 1e6 + 5;
const int maxm = 1e5 + 5 * <