Finish 2010-11-17 12:00:00 UTC

TLM - Time to Sleep

by Fel

Status: Passed
Results: 416511 (cyc: 1, node: 92)
CPU Time: 0.058
Score: 83302.3
Submitted at: 2010-11-16 22:53:24 UTC
Scored at: 2010-11-16 22:54:24 UTC

Current Rank: 2859th (Highest: 2363rd )
Based on: TLM - Time to Sleep (diff)

Comments
Please login or create a profile.
Code
function [thrustRow, thrustCol] = solver100(chart, aIndex, bIndex, maxThrottle)

[aby abx]=ind2sub(size(chart),[aIndex; bIndex]);
d = (diff([aby abx]).*[1.004 0.9997])';
R=norm(d,1);
t = fix(d/(26/R+R) * [maxThrottle maxThrottle -maxThrottle -maxThrottle -maxThrottle -maxThrottle 0 0 0 0]);
thrustRow = t(1,:);
thrustCol = t(2,:);