本月博客排行
年度博客排行
-
第1名
宏天软件 -
第2名
龙儿筝 -
第3名
青否云后端云 - wallimn
- gashero
- vipbooks
- wy_19921005
- benladeng5225
- fantaxy025025
- zysnba
- ssydxa219
- e_e
- javashop
- sam123456gz
- arpenker
- tanling8334
- kaizi1992
- xpenxpen
- xiangjie88
- wiseboyloves
- ganxueyun
- lemonhandsome
- xyuma
- sichunli_030
- wangchen.ily
- jh108020
- zxq_2017
- jbosscn
- Xeden
- zhanjia
- forestqqqq
- luxurioust
- lzyfn123
- johnsmith9th
- ajinn
- nychen2000
- wjianwei666
- daizj
- hanbaohong
- 喧嚣求静
- ranbuijj
- silverend
- kingwell.leng
- lchb139128
- kristy_yy
- lich0079
- jveqi
- java-007
- sunj
- yeluowuhen
最新文章列表
【floyd的灵活运用】LOJ 1174 Commandos
KIDx的解题报告
题目链接:http://lightoj.com/volume_showproblem.php?problem=1174
题意:无限支军队从起点出发,最少要多长时间路过所有城市并且到达终点?
利用folyd 插点法的思想即可解决
找到dist[s][i] + dist[i][t]的最大值即为所求最小值
#include <iostream&g ...
【图论之最短路】杭电 hdu 2544 最短路
Dijkstra 算法
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
UR ...
杭电 hdu 1548 A strange lift
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://acm.hdu.edu.cn ...
杭电 hdu 1874 畅通工程续
第二次
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://acm.hdu. ...
杭电 hdu 2066 一个人的旅行
第二次
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://acm.hdu ...
hdu 2112 HDU Today(映射+spfa)
HDU Today
Time Limit: 15000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3816 Accepted Submission(s): 908
Problem Description
经过锦囊相助,海东集团终于度过了危机,从此,HDU的发 ...
hdu 1142 A Walk Through the Forest(最短路+记忆化搜索dfs)
A Walk Through the Forest
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2183 Accepted Submission(s): 787
Problem Description
Jimmy experi ...
hdu 1385 Minimum Transport Cost(输出最短路的路径)
Minimum Transport Cost
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2649 Accepted Submission(s): 651
Problem Description
These are N cit ...
hdu 1690 Bus System(简单的最短路问题)
Bus System
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2724 Accepted Submission(s): 677
Problem Description
Because of the huge populat ...
hdu 2923 Einbahnstrasse(映射+floyd:注意重边!)
Einbahnstrasse
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 783 Accepted Submission(s): 209
Problem Description
Einbahnstra e (German fo ...
hdu 2544 最短路(最简单的最短路:floyd or dijkstra or spfa)
最短路
Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7471 Accepted Submission(s): 3179
Problem Description
在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-s ...
hdu 2066 一个人的旅行(起点到任意点的最短路)
一个人的旅行
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5994 Accepted Submission(s): 1995
Problem Description
虽然草儿是个路痴(就是在杭电待了一年多,居然还会在校园里迷路 ...
hdu 1596 find the safest road(最短路(乘法))
find the safest road
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1746 Accepted Submission(s): 678
Problem Description
XX星球有很多城市,每个城市之间 ...
HDU 2962 Trucking .
Trucking
Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 796 Accepted Submission(s): 268
Problem Description
A certain local trucking com ...