- 月饼盒
- 2009-10-17 12:49:35 @
var a:array[1..300,1..300] of longint;
b:array[1..300] of longint;
sum,max:int64;
i,j,k,l,m,n,h:longint;
begin
readln(n,m);
for i:=1 to n do begin
for j:=1 to m do
begin
read(a);
if a=0 then a:=-maxlongint;
end;
readln;
end;
for i:=1 to n do
begin
fillchar(b,sizeof(b),0);
for j:=i to n do
begin
for k:=1 to m do
b[k]:=b[k]+a[j,k];
sum:=0;
for l:=1 to m do
begin
sum:=sum+b[l];
if sum>max then max:=sum;
if sum
2 条评论
-
正在加载...99% LV 8 @ 2016-05-17 21:47:20
呵呵你的读入语句能过编译?!
-
2010-04-14 20:59:57@
RP
- 1