aboutsummaryrefslogtreecommitdiff
path: root/2015/21/puzzles.py
diff options
context:
space:
mode:
authorThomas Voss <thomasvoss@live.com> 2021-12-06 09:17:45 +0100
committerThomas Voss <thomasvoss@live.com> 2021-12-06 09:17:45 +0100
commit3c8f652f36ff5dab1d4b9b735be4341f9dd0ee31 (patch)
treeb9f66f53e3547243aca430903c4d417a91d4c9a3 /2015/21/puzzles.py
parent0be87cad79b9db25be5a5e79e402148516d3a474 (diff)
Make use of infinity
Diffstat (limited to '2015/21/puzzles.py')
-rw-r--r--2015/21/puzzles.py2
1 files changed, 1 insertions, 1 deletions
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