摘要: 题目地址:http://poj.org/problem?id=1050DescriptionGiven a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-a... 阅读全文
posted @ 2014-02-22 17:26 liushaobo 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 题目地址:http://poj.org/problem?id=1088DescriptionMichael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道载一个区域中最长底滑坡。区域由一... 阅读全文
posted @ 2014-02-22 16:40 liushaobo 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 题目地址:http://ac.jobdu.com/problem.php?pid=1534题目描述: 给定两个整型数组A和B。我们将A和B中的元素两两相加可以得到数组C。譬如A为[1,2],B为[3,4].那么由A和B中的元素两两相加得到的数组C为[4,5,5,6]。现在给你数组A和B,求由A和B两... 阅读全文
posted @ 2014-02-22 11:06 liushaobo 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 题目地址:http://oj.tsinsen.com/A1082问题描述 给定一个大小为n的数组s和一个整数K,请找出数组中的第K小元素。 这是一个补充程序的试题,你需要完成一个函数: int findKth(int *s, int n, int K) 表示在s指向的数组中找到第K小的元素(... 阅读全文
posted @ 2014-02-22 10:15 liushaobo 阅读(527) 评论(0) 推荐(1) 编辑