当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

.Note that finding the densest submatrix of a given matrix is easy. It is just the largest element within the matrix. On the other hand, the problem becomes interesting when we are asked to find the submatrix with at least R rows and at least C columns such that the density of the submatrix is maximized.
3 4 2 1 150 500 150 800 1 200 100 300 400 800 80 400 4 2 3 2 400 800 200 500 100 200 600 600 0
1 4 2 4 1 1 4 2 *
| 时间上限 | 内存上限 |
| 2000 | 10000 |