摘要: 还是畅通工程 3 顶点数n=3;接下来哪个n*(n-1)/2条道路1 2 11 3 22 3 4 41 2 11 3 41 4 12 3 32 4 23 4 5 /***************************Prim************************************... 阅读全文
posted @ 2010-07-27 19:44 戮微扬 阅读(181) 评论(0) 推荐(0) 编辑
摘要: /***********需要多少水源***********************/3 3 ADC FJK IHE代码 阅读全文
posted @ 2010-07-18 12:10 戮微扬 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 前序:1 2 4 7 3 5 8 9 6(已知)中序:4 7 2 1 8 5 9 3 6(已知)后序:7 4 2 8 9 5 6 3 1(求)HD 1701 pk Tree Recovery /**************************************************... 阅读全文
posted @ 2010-07-17 11:24 戮微扬 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> #include #include ... 阅读全文
posted @ 2010-07-16 10:33 戮微扬 阅读(171) 评论(0) 推荐(0) 编辑
摘要: Description Michael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道载一个区域中最长底滑坡。区域由一个二维数组给出。数组的每个数字代表点的高度。下面是一个例子 1... 阅读全文
posted @ 2010-07-14 16:15 戮微扬 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Description Given a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater loc... 阅读全文
posted @ 2010-07-14 15:54 戮微扬 阅读(169) 评论(0) 推荐(0) 编辑