ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1146. Maximum Sum

Vokin Andrei (vokin_andrei@mail.ru) Please, help me to solve this problem.Give me a hint. [5] // Problem 1146. Maximum Sum 18 Feb 2002 21:59
Tran Nam Trung (trungduck@yahoo.com) Re: Use DP [4] // Problem 1146. Maximum Sum 19 Feb 2002 06:54
>
Vokin Andrei (vokin_andrei@mail.ru) Re: Use DP [3] // Problem 1146. Maximum Sum 23 Feb 2002 01:35
Please, give me any hint.
PSV Re: Use DP [2] // Problem 1146. Maximum Sum 5 Jul 2006 06:20
Take an array 1..max, 1..max of longint that i,j element includes sum of numbers in 1..i 1..j rectangle - that you can calculate easily by n*n (I hope) than in n^4 cmplesity take all variants of different rectangles and calc their sum
in linear time. I think my English take success with your mind
You must easily find maximum sum in vector for O(n),
only fixed two parameters of submatrix(e.g. top && bottom).