Solve day 6

This commit is contained in:
Nettika
2023-12-10 18:44:26 -08:00
parent 001eeb692f
commit 720def8fa9
3 changed files with 67 additions and 0 deletions

28
06/__main__.py Normal file
View 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()