Advent-of-Code/2020/day 1/P1/report_repair.py
2020-12-01 08:19:53 +01:00

7 lines
179 B
Python

expense_report = [int(i) for i in open("input.txt").read().split("\n")[:-1]]
for i in expense_report:
j = 2020-i
if j in expense_report:
print(i*j)
break