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

9 lines
208 B
Python
Raw Normal View History

2020-12-03 14:39:42 +08:00
lines = open("data.txt").read().splitlines()
numbers = []
for u in lines:
for v in lines:
for w in lines:
if int(u)+int(v)+int(w) == 2020:
print(int(u)*int(v)*int(w))