14 lines
303 B
Python
14 lines
303 B
Python
|
#!/usr/bin/python
|
||
|
|
||
|
fd = open("input", "r")
|
||
|
lines = fd.readlines()
|
||
|
mustbreak = False
|
||
|
|
||
|
for i in lines:
|
||
|
for j in lines:
|
||
|
if int(i) + int(j) == 2020:
|
||
|
print("{} * {} == {}".format(int(i), int(j), int(i) * int(j)))
|
||
|
mustbreak = True
|
||
|
break
|
||
|
if mustbreak: break
|