Solve day 6
This commit is contained in:
28
06/__main__.py
Normal file
28
06/__main__.py
Normal file
@@ -0,0 +1,28 @@
|
||||
from pathlib import Path
|
||||
|
||||
from puzzle import Race, solve
|
||||
|
||||
|
||||
def main():
|
||||
print("Permutations of Winning Strategies:")
|
||||
print(
|
||||
"Part 1 -",
|
||||
solve(
|
||||
[
|
||||
Race(61, 430),
|
||||
Race(67, 1036),
|
||||
Race(75, 1307),
|
||||
Race(71, 1150),
|
||||
]
|
||||
),
|
||||
)
|
||||
print(
|
||||
"Part 2 -",
|
||||
solve(
|
||||
[Race(61677571, 430103613071150)],
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
Reference in New Issue
Block a user