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

e

by Imre Polik

Status: Passed
Results: pass
CPU Time: 0.481
Score: 98.0
Submitted at: 2003-11-05 16:11:29 UTC
Scored at: 2003-11-05 16:46:18 UTC

Current Rank: 42nd
Based on: test30 (diff)
Basis for: bc0 (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