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

test_05

by Stijn Helsen

Status: Passed
Results: pass
CPU Time: 0.271
Score: 102.0
Submitted at: 2003-11-05 15:25:17 UTC
Scored at: 2003-11-05 15:24:30 UTC

Current Rank: 72nd
Based on: test_04 (diff)
Basis for: test05.01 (diff)
Basis for: heavy3 (diff)
Basis for: Whatever II (diff)
...and 3 others.

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