2016年5月5日

codeforces 580C Kefa and Park(DFS)

摘要: 题目链接:http://codeforces.com/contest/580/problem/C 阅读全文

posted @ 2016-05-05 17:46 polarday 阅读(176) 评论(0) 推荐(0) 编辑

2016年3月24日

HDU1272-小希的迷宫(并查集)

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1272 #include<cstdio> #include<cstring> using namespace std; int father[100001]; int find(int x) { if(f 阅读全文

posted @ 2016-03-24 21:14 polarday 阅读(82) 评论(0) 推荐(0) 编辑

2016年3月20日

HDU1556-color the ball(线段树)

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1556 #include<cstdio> using namespace std; struct node { int start; int end; int num; }; node q[500000] 阅读全文

posted @ 2016-03-20 15:24 polarday 阅读(132) 评论(0) 推荐(0) 编辑

导航