题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=1231 #include<iostream> #include<cstdio> #include<cstring> #include<cmath> #define N 10010 using namespace std; int main() { int n,i,a[N],s,m,e,k,MAX,sum,st,en; while(scanf("%d&q…
Description Given a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located within the whole array. The sum of a rectangle is the sum of all the elements in that rectangle. I…