day18: we should keep the working version in the repo
This commit is contained in:
parent
d308a1df4d
commit
d4715de60c
4
day18.py
4
day18.py
@ -217,8 +217,8 @@ class Day(AOCDay):
|
|||||||
test_solutions_p2 = [3993, 4796]
|
test_solutions_p2 = [3993, 4796]
|
||||||
|
|
||||||
def part1(self) -> Any:
|
def part1(self) -> Any:
|
||||||
#snailfishes = [Snailfish(x) for x in self.getInput()]
|
snailfishes = [Snailfish(x) for x in self.getInput()]
|
||||||
snailfishes = [BinarySnailfish(json.loads(x)) for x in self.getInput()]
|
#snailfishes = [BinarySnailfish(json.loads(x)) for x in self.getInput()]
|
||||||
return sum(snailfishes[1:], start=snailfishes[0]).getMagnitude()
|
return sum(snailfishes[1:], start=snailfishes[0]).getMagnitude()
|
||||||
|
|
||||||
def part2(self) -> Any:
|
def part2(self) -> Any:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user