Files
AOC/2023/day06/src/part1.py
2023-12-06 06:41:58 +01:00

19 lines
338 B
Python

text: str = open("input.txt", "r").read()
_value: int = 1
lines = text.splitlines()
times = [46857582]
distances = [208141212571410]
for start in range(0, len(times)):
distance = distances[start]
time = times[start]
value = 0
for i in range(0, time):
if ((time - i) * i > distance):
value += 1
_value *= value
print(_value)