Winner Imre Polik (Shame n)

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

test_1

by Stijn Helsen

Status: Passed
Results: pass
CPU Time: 2.123
Score: 122.0
Submitted at: 2003-11-04 13:11:21 UTC
Scored at: 2003-11-04 13:10:13 UTC

Current Rank: 145th
Basis for: test_2 (diff)
Basis for: cyclist_2 (diff)
Basis for: no tabs (diff)
...and 6 others.

Comments
Please login or create a profile.
Code
k=0;
b=a(1);
for i=1:length(a)
	for j=length(a):-1:i
		if strcmp(a(i:j),a(j:-1:i))
			if j-i>k
				k=j-i;
				b=a(i:j);
			end
		end
	end
end