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

9 lines
208 B
Python

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))