本文是最短路径算法整理的第二篇,想阅读第一篇的朋友能够点击下面链接: http://blog.csdn.net/hjd_love_zzt/article/details/26739593 这一篇博客继续以一些OJ上的题目为载体,整理一下最短路径算法。会陆续的更新。。。 1、HDU...
分类:
编程语言 时间:
2015-02-22 21:50:58
阅读次数:
195
Amakusa, the evil spiritual leader has captured the beautiful princess Nakururu. The reason behind this is he had a little problem with Hanzo Hattori, the best ninja and the love of Nakururu. After he...
分类:
其他好文 时间:
2015-02-18 15:21:45
阅读次数:
323
HDU 5176 The Experience of Love (带权并查集 + 贪心)...
分类:
其他好文 时间:
2015-02-18 14:07:34
阅读次数:
179
hdu 5176 The Experience of Love
题目:
一个叫Gorwin的女孩和一个叫Vivin的男孩是一对情侣。他们来到一个叫爱情的国家,这个国家由N个城市组成而且只有N-1条小道(像一棵树),每条小道有一个值表示两个城市间的距离。他们选择两个城市住下,Gorwin在一个城市Vivin在另外一个,第一次约会,Gorwin去找Vivin,她会写下路径上最长的一条小道(ma...
分类:
其他好文 时间:
2015-02-17 22:26:57
阅读次数:
100
传送门The Experience of LoveTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 221Accepted Submission(s)...
分类:
其他好文 时间:
2015-02-16 13:00:52
阅读次数:
159
uva 10474 Where is the Marble?
Raju and Meena love to play with Marbles. They have got a lot of marbles with numbers written on them. At the beginning, Raju would place the marbles one afte...
分类:
编程语言 时间:
2015-02-15 21:53:56
阅读次数:
446
python之输出 用print加上字符串,就可以向屏幕上输出指定的文字。用代码实现如下:1 >>> print "i love baby!"2 i love baby!3 >>> print("Hello World!")4 Hello World!5 >>> python会依次输出你输入的字符....
分类:
编程语言 时间:
2015-02-15 18:03:11
阅读次数:
209
传送门:The Experience of Love题意:一个叫Gorwin的女孩和一个叫Vivin的男孩是一对情侣。他们来到一个叫爱情的国家,这个国家由N个城市组成而且只有N?1条小道(像一棵树),每条小道有一个值表示两个城市间的距离。他们选择两个城市住下,Gorwin在一个城市Vivin在另外一...
分类:
其他好文 时间:
2015-02-14 23:43:29
阅读次数:
525
好好玩
include
include
include
include
include
include
using namespace std;
#define __int64 LOVE
#define LOVE_MAX 9223372036854775807
#define true 1
#define you me
struct loveList
{
LOVE love;
l...
分类:
其他好文 时间:
2015-02-14 08:45:17
阅读次数:
134