day06 package
Subpackages
Submodules
day06.day6 module
Day06 solution.
- class day06.day6.Race(time: int, record_distance: int)[source]
Bases:
object
Simple class representing a race and its record.
- record_distance: int
- time: int
- class day06.day6.RaceStrat(charge_time: int, run_time: int)[source]
Bases:
object
class representing a strategy (charge time + run_time).
- charge_time: int
- property distance: int
Returns how far we moved.
- run_time: int
- property speed: int
Return the speed after the charge time.
- day06.day6.get_giga_race(races: list[Race]) Race [source]
Converts from a list of races into one giga race.
Module contents
day06 solution.