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

6 lines
148 B
Python
Raw Normal View History

2020-12-03 14:39:42 +08:00
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))