From 3c8f652f36ff5dab1d4b9b735be4341f9dd0ee31 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 6 Dec 2021 09:17:45 +0100 Subject: Make use of infinity --- 2015/21/puzzles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2015/21/puzzles.py b/2015/21/puzzles.py index e43829b..103a2eb 100644 --- a/2015/21/puzzles.py +++ b/2015/21/puzzles.py @@ -56,7 +56,7 @@ def main() -> None: b_armor = int(b_armor.strip().split(": ")[1]) # START PART 1 - min_cost = 999999999999999999999999999999999999999999999999999999999 + min_cost = float('inf') # END PART 1 START PART 2 max_cost = 0 # END PART 2 -- cgit v1.2.3