1.py 196 B

12345678910
  1. lines = []
  2. with open("1.input") as f:
  3. for line in f.readlines():
  4. lines.append(int(line))
  5. for l1 in lines:
  6. for l2 in lines:
  7. if l1 + l2 == 2020:
  8. print(l1 * l2)