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

mat1

by Claus Still

Status: Passed
Results: pass
CPU Time: 0.241
Score: 112.0
Submitted at: 2003-11-05 15:24:12 UTC
Scored at: 2003-11-05 15:23:22 UTC

Current Rank: 129th
Based on: d (diff)

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