mirror of
https://github.com/peter-tanner/advent-of-code-2020.git
synced 2024-11-30 19:00:17 +08:00
9 lines
208 B
Python
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))
|