摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1213题目分类:并查集代码:#include#include#includeusing namespace std;struct ST{ int a; int b;}st[1005];int ... 阅读全文
posted @ 2015-11-18 22:12 Gssol 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1728题目分类:bfs代码:#includeusing namespace std;char maze[105][105];int Sx, Sy, Ex, Ey, k;bool vis[105][105]... 阅读全文
posted @ 2015-11-18 21:14 Gssol 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://codeforces.com/contest/597/problem/B题目分类:贪心题目分析:经典的看节目问题(挑战程序设计page 40)代码:#includeusing namespace std;struct P{ int st,en;}order[500005... 阅读全文
posted @ 2015-11-18 00:34 Gssol 阅读(189) 评论(0) 推荐(0) 编辑