minor improvement to 2022 day 4 solution

kwout 11 months ago
parent e2a6b4ac0e
commit 09cf02722d
  1. 2
      2022/4.py

@ -1,4 +1,4 @@
pairs = [[[int(n) for n in m.split("-")] for m in l.split(",")] for l in [i for i in open("input.txt", 'r').read().splitlines()]] pairs = [[[int(n) for n in m.split("-")] for m in l.split(",")] for l in open("input.txt", 'r').read().splitlines()]
sum = 0 sum = 0
sum2 = 0 sum2 = 0

Loading…
Cancel
Save