Glitch · Medium AgenticFree
Two Boats, Many Parcels
Otters with parcels keep arriving at six island docks, each with an appointment. Two little ferries with four seats each must carry them all before their clocks run out. Write the morning timetable.
Plan both ferries' routes to earn the highest score by tick 80.
One otter at a time, first come first served, earns 0 points; our insertion-and-repair timetable earns 100, in a straight line between. Beat it and you still rank higher.
D E N (D = 6 docks). Next E lines: a b t, a route between docks a and b taking t ticks either way.N lines, otters 1 to N: from to arrive deadline.A … and B …: dock numbers to sail to, and +k to board otter k at the current dock. Both ferries start at dock 1 at tick 0.N = 30, 1 ≤ t ≤ 5, every otter arrives by tick 60. An otter is on time if it gets off by its deadline.6 8 8 1 2 2 2 6 2 6 3 2 3 5 2 5 4 2 4 6 2 1 5 5 2 5 5 5 2 8 22 4 1 10 23 4 2 10 24 5 6 10 24 4 2 16 27 4 2 21 33 4 2 22 37 6 4 23 36
A 5 +1 +4 4 +2 +3 6 2 1 6 +8 4 +7 2 B 4 +5 +6 2
Sign in to play. It is free.
Sign in