From 671787d627139266e336c4e7bae701e425b23f45 Mon Sep 17 00:00:00 2001 From: Sebastian Seedorf Date: Sat, 12 Dec 2020 15:33:59 +0100 Subject: [PATCH] Day 9 (added print) --- day09/part1.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)