Advent-of-Code/2020/day 1/P1/report_repair.py

8 lines
179 B
Python
Raw Normal View History

2020-12-01 08:19:53 +01:00
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