|
|
вернуться в форумIn 0.140 sec. My algo is O(N^4) too,AC in 0.046sec... Do you know a method how to solve it faster??? My algo is O(N^3). I just read the input matrix row by row and store the maximal sum of subrectangle for each bottom side projection using DP. I did it with 0.015 secs (never did faster). |
|
|