随笔分类 -  ACM_图论_最短路劲_Floyed

ACM_图论_最短路劲_Floyed
HDU 1690 Bus System
摘要:Bus SystemTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 5650Accepted Submission(s): 1431 Problem DescriptionBecause of the huge population of China, public transportation is very important. Bus is an important transportation method in traditiona 阅读全文

posted @ 2013-11-08 15:39 天使是一个善良的神 阅读(166) 评论(0) 推荐(0)

HDU 1385 Minimum Transport Cost
摘要:Minimum Transport CostTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 6182Accepted Submission(s): 1561 Problem DescriptionThese are N cities in Spring country. Between each pair of cities there may be one transportation track or none. Now there is 阅读全文

posted @ 2013-11-06 13:03 天使是一个善良的神 阅读(182) 评论(0) 推荐(0)

HDU 1596 find the safest road
摘要:find the safest roadTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 5279Accepted Submission(s): 1898 Problem DescriptionXX星球有很多城市,每个城市之间有一条或多条飞行通道,但是并不是所有的路都是很安全的,每一条路有一个安全系数s,s是在 0 和 1 间的实数(包括0,1),一条从u 到 v 的通道P 的安全度为Safe(P) = s(e1)*s(e2)…*s(ek) 阅读全文

posted @ 2013-11-05 20:19 天使是一个善良的神 阅读(179) 评论(0) 推荐(0)

HDU 3631 Shortest Path
摘要:Shortest PathTime Limit: 3000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3636Accepted Submission(s): 857Problem DescriptionWhen YY was a boy and LMY was a girl, they trained for NOI (National Olympiad in Informatics) in GD team. One day, GD team’s coach, Prof. 阅读全文

posted @ 2013-10-31 17:18 天使是一个善良的神 阅读(287) 评论(0) 推荐(0)

HDU 1869 六度分离
摘要:六度分离Time Limit: 5000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3271Accepted Submission(s): 1279 Problem Description1967年,美国著名的社会学家斯坦利·米尔格兰姆提出了一个名为“小世界现象(small world phenomenon)”的著名假说,大意是说,任何2个素不相识的人中间最多只隔着6个人,即只用6个人就可以将他们联系在一起,因此他的理论也被称为“六度分离”理论(six deg 阅读全文

posted @ 2013-10-30 20:40 天使是一个善良的神 阅读(151) 评论(0) 推荐(0)

HDU 2544 最短路
摘要:最短路Time Limit: 5000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 23891Accepted Submission(s): 10277 Problem Description在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们想要寻找最短的从商店到赛场的路线,你可以帮助他们吗?Input输入包括多组数据。每组数据第一行是两个整数N、M(N#includ 阅读全文

posted @ 2013-10-30 20:18 天使是一个善良的神 阅读(176) 评论(0) 推荐(0)

导航