|  | 
|  | 
| вернуться в форум | Is it possible to solve the problem with Python? I can't understand how to solve the problem with Python and meet time limitations. I implemented solution with creating 3-D list of subsumes[column][row_start][row_offset] using accumulate from itertools and list comprehension.
 After that I used Kadane's algorithm. I expect that it works with O(N^3). But it isn't enough...
 
 Are there some tricks in the problem for Python? Except for stdin of course.
 | 
 | 
|