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

FDA disapproved

by jsl

Status: Passed
Results: pass
CPU Time: 0.481
Score: 102.0
Submitted at: 2003-11-05 15:43:22 UTC
Scored at: 2003-11-05 15:44:02 UTC

Current Rank: 78th
Based on: FDA12.3 (diff)

Comments
jsl
05 Nov 2003
Probably worse in length, but different tactic
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);
           x = c(1)
           s = x*nnz(c)
           if ~(c-x) & s > b   
               b = s;
           end
       end
   end
end