POJ - 1703 Find them, Catch them (种类并查集)
#include <algorithm>
#include <iostream>
#include <cstring>
#include <cstdio>
using namespace std;
int pre[300000];
int fin(int a)
{
if (pre[a]==a) return a;
int t=a;
...
原创
2018-08-29 20:27:26 ·
128 阅读 ·
0 评论