Winner Imre Polik (Shame n)

Finish 2003-11-11 13:00:00 UTC

test 1

by Martijn Visser

Status: Passed
Results: pass
CPU Time: 12.318
Score: 79.0
Submitted at: 2003-11-04 13:29:55 UTC
Scored at: 2003-11-04 13:39:21 UTC

Current Rank: 104th
Based on: cyclist_1 (diff)

Comments
Martijn Visser
04 Nov 2003
I know it's wrong but maybe it gets past the test suite
Please login or create a profile.
Code
b = [];
e = length(a);

for i=1:e
for j=i:e;
x = a(i:j);
if x == fliplr(x) & sum(x)>sum(b)
b = x
end
end
end