advent-of-code-2020/1/a.py

6 lines
148 B
Python

lines = open("data.txt").read().splitlines()
for u in lines:
for v in lines:
if int(u)+int(v) == 2020:
print(int(u)*int(v))