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

d

by a

Status: Passed
Results: pass
CPU Time: 0.26
Score: 117.0
Submitted at: 2003-11-05 15:16:24 UTC
Scored at: 2003-11-05 15:15:04 UTC

Current Rank: 143rd
Basis for: test-tweak 2 (diff)
Basis for: d2 (diff)
Basis for: test_02 (diff)
...and 4 others.

Comments
a
05 Nov 2003
e
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 ~any(any(c(1)-c)), b=max(b,sum(c(:))); end
    end
  end
end