Finish 2003-11-12 15:00:00 UTC

def

by a

Status: Passed
Results: pass
CPU Time: 0.25
Score: 104.0
Submitted at: 2003-11-05 15:32:18 UTC
Scored at: 2003-11-05 15:31:00 UTC

Current Rank: 94th

Comments
a
05 Nov 2003
g
Please login or create a profile.
Code
[m n]=size(a);
b=0;
for i=1:m
  for j=i+1:m
    for k=1:n-j+i
      c = a(i:j,k:k+j-i);
      b=max(b,~any(c(1)-c(:))*sum(c(:)));
    end
  end
end