14 lines
213 B
Python
14 lines
213 B
Python
![]() |
#!/usr/bin/env python
|
||
|
|
||
|
|
||
|
report = dict()
|
||
|
|
||
|
with open("input01.txt","r") as f:
|
||
|
for line in f:
|
||
|
num1 = int(line)
|
||
|
report[num1] = True
|
||
|
num2 = 2020 - num1
|
||
|
if report.get(num2, False):
|
||
|
print(num1*num2)
|
||
|
break
|