上一页 1 ··· 6 7 8 9 10

2015年8月12日

hdu1596 find the safest road

摘要: Problem DescriptionXX星球有很多城市,每个城市之间有一条或多条飞行通道,但是并不是所有的路都是很安全的,每一条路有一个安全系数s,s是在 0 和 1 间的实数(包括0,1),一条从u 到 v 的通道P 的安全度为Safe(P) = s(e1)*s(e2)…*s(ek) e1,e2... 阅读全文

posted @ 2015-08-12 21:02 insaneman 阅读(135) 评论(0) 推荐(0)

2015年8月11日

hdu5360 (贪心+优先队列)

摘要: 做法是每次选取起始条件符合,并且结束条件最早的。(每个人的起始时间为l,结束时间为r)#include #include #include #include #include using namespace std;int N,T;struct node{ int start; int ... 阅读全文

posted @ 2015-08-11 15:52 insaneman 阅读(184) 评论(0) 推荐(0)

2015年8月4日

hdu1272(并查集)

摘要: 题目就不复制过来了,这道题有个坑就是当一组输入数据只有0 0时应该输出Yes#include #include #include using namespace std;int parent[100001];bool vis[100001];void Init(){ for(int i=0;i... 阅读全文

posted @ 2015-08-04 19:45 insaneman 阅读(132) 评论(0) 推荐(0)

2015年8月3日

hdu1198(并查集)

摘要: Farm IrrigationTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7080Accepted Submission(s): 3041Pro... 阅读全文

posted @ 2015-08-03 21:58 insaneman 阅读(566) 评论(0) 推荐(0)

上一页 1 ··· 6 7 8 9 10

导航