diff --git a/day09/part1.py b/day09/part1.py index 7287eee..ae13094 100644 --- a/day09/part1.py +++ b/day09/part1.py @@ -5,12 +5,11 @@ lines = (int(x.strip()) for x in open("input.txt")) L = 25 buffer = deque(maxlen=L) -result = None for line in lines: if len(buffer) == L: found = any(a + b == line for a, b in combinations(buffer, 2)) if not found: - result = line + print(line) break buffer.append(line)