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