摘要: 题目连接:http://poj.org/problem?id=1962 都是套路。。。 阅读全文
posted @ 2017-04-29 23:44 yijiull 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=2818 还是不熟练。。。 参考:http://www.cnblogs.com/neopenx/p/4512834.html 阅读全文
posted @ 2017-04-29 22:23 yijiull 阅读(107) 评论(0) 推荐(0) 编辑
摘要: More is better HDU - 1856 题意:给出n个关系,问最多有多少个人直接或者间接有关系. 并查集. 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 const int maxn=10000010; 5 int f[max 阅读全文
posted @ 2017-04-29 20:50 yijiull 阅读(118) 评论(0) 推荐(0) 编辑