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

bc0

by Ned

Status: Passed
Results: pass
CPU Time: 0.481
Score: 98.0
Submitted at: 2003-11-05 16:47:05 UTC
Scored at: 2003-11-05 17:58:06 UTC

Current Rank: 45th
Based on: e (diff)

Comments
Please login or create a profile.
Code
[m n b]=size(a)
for k=1:9
  for i=1:m-k
    for j=1:n-k
      c = a(i:i+k,j:j+k)
      if c==c(1)
        b = max(b, c(1)*nnz(c))
      end
    end
  end
end