摘要:
还是畅通工程 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************************************... 阅读全文
摘要:
/***********需要多少水源***********************/3 3 ADC FJK IHE代码 阅读全文
摘要:
前序: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 /**************************************************... 阅读全文
摘要:
代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> #include #include ... 阅读全文
摘要:
Description Michael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道载一个区域中最长底滑坡。区域由一个二维数组给出。数组的每个数字代表点的高度。下面是一个例子 1... 阅读全文
摘要:
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... 阅读全文