@@ -0,0 +1,465 @@
+import bisect%0A%0A%0Adef assign_length(diff_wind_boat):%0A    angles = %5B%0A        (30, 1),%0A        (40, 2),%0A        (50, 3),%0A        (60, 4),%0A        (70, 5),%0A        (80, 6),%0A        (90, 7),%0A        (110, 8),%0A        (120, 9),%0A        (130, 10),%0A        (140, 11),%0A        (150, 12),%0A        (180, 13),%0A        %5D%0A%0A    angles.sort()%0A    position = bisect.bisect_right(angles, diff_wind_boat)%0A    sail_length = angles%5Bposition%5D%5B1%5D%0A    return sail_length%0A%0Aassign_length(42)%0A

add basic sail lookup table