From d4715de60c644f221502f5b7dfcf94c9d173fb6d Mon Sep 17 00:00:00 2001 From: Stefan Harmuth Date: Sat, 25 Dec 2021 06:50:13 +0100 Subject: [PATCH] day18: we should keep the working version in the repo --- day18.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/day18.py b/day18.py index 602c75b..27441c1 100644 --- a/day18.py +++ b/day18.py @@ -217,8 +217,8 @@ class Day(AOCDay): test_solutions_p2 = [3993, 4796] def part1(self) -> Any: - #snailfishes = [Snailfish(x) for x in self.getInput()] - snailfishes = [BinarySnailfish(json.loads(x)) for x in self.getInput()] + snailfishes = [Snailfish(x) for x in self.getInput()] + #snailfishes = [BinarySnailfish(json.loads(x)) for x in self.getInput()] return sum(snailfishes[1:], start=snailfishes[0]).getMagnitude() def part2(self) -> Any: