1.1.py 239 B

1234567891011
  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. for l3 in lines:
  8. if l1 + l2 + l3 == 2020:
  9. print(l1 * l2 * l3)