Winner Imre Polik (Shame n)
by Stijn Helsen
Status: Passed Results: pass CPU Time: 2.223 Score: 126.0 Submitted at: 2003-11-04 14:16:02 UTC Scored at: 2003-11-04 15:56:55 UTC
Current Rank: 147th Based on: test_1 (diff) Basis for: test_16 (diff)
n=length(a); for i=1:n; k=0:i-1; l=(1:n-i)'; A=a(k(ones(n-i,1),:)+l(:,ones(i,1))); j=find(all(A==fliplr(A),2)); if ~isempty(j) b=A(j,:); end end