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

Mat4

by Claus Still

Status: Passed
Results: pass
CPU Time: 0.261
Score: 105.0
Submitted at: 2003-11-05 15:50:57 UTC
Scored at: 2003-11-05 15:59:06 UTC

Current Rank: 100th
Based on: Mat3 (diff)

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