摘要:
Problem DescriptionMany of SKB Kontur programmers like to get to work by Metro because the main office is situated quite close the station Uralmash. So, since a sedentary life requires active exercises off-duty, many of the staff — Nikifor among them — walk from their homes to Metro stations on foot 阅读全文
posted @ 2014-03-31 21:16
chen2013
阅读(291)
评论(0)
推荐(0)
摘要:
Problem DescriptionGiven a 2-dimensional array of positive and negative integers, find the sub-rectangle with the largest sum. The sum of a rectangle is the sum of all the elements in that rectangle. In this problem the sub-rectangle with the largest sum is referred to as the maximal sub-rectangle. 阅读全文
posted @ 2014-03-31 19:52
chen2013
阅读(212)
评论(0)
推荐(0)
摘要:
Problem Description Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum in this sequence is 6 + (-1) + 5 + 4 = 14. Input The first line of the input contains an integer T(1 2 int main() 3 { 4 int t; 5 ... 阅读全文
posted @ 2014-03-31 19:10
chen2013
阅读(234)
评论(0)
推荐(0)
摘要:
Problem Description FatMouse believes that the fatter a mouse is, the faster it runs. To disprove this, you want to take the data on a collection of mice and put as large a subset of this data as possible into a sequence so that the weights are increasing, but the speeds are decreasing. Input Input 阅读全文
posted @ 2014-03-31 12:56
chen2013
阅读(264)
评论(0)
推荐(0)

浙公网安备 33010602011771号