Finish 2012-11-07 16:00:00 UTC

Some say he does not understand the meaning of the phrase "last contest"

by Hannes Naudé

Status: Passed
Results: 2503 (cyc: 2, node: 166)
CPU Time: 1.536
Score: 2505.98
Submitted at: 2012-11-01 11:09:41 UTC
Scored at: 2012-11-01 18:44:40 UTC

Comments
Magnus S
01 Nov 2012
:)
Please login or create a profile.
Code
function xyOut = solver(a, xyIn, wts)
sz=size(a,1);
deg=diag(sum(a));
L=diag(sum(a))-a;
[V,D]=eig(L,deg);
xyOut=0;
outdiam=sqrt(sum((max(V(:,2:3))-min(V(:,2:3))).^2));
indiam=sqrt(sum((max(xyIn)-min(xyIn)).^2));
mult=indiam/outdiam;
while size(unique(xyOut,'rows'),1)<sz
xyOut=round(V(:,2:3)*mult);
[u,i]=unique(xyOut,'rows');
m=setdiff(1:sz,i);
xyOut(m,:)=xyOut(m,:)+round(rand(length(m),2))*2-1;
mult=mult*1.5;
end