From 26c649329fbc6b3c38d2c2df76e473cc64e658c1 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 8 Dec 2021 15:18:39 +0100 Subject: Don't be stupid --- 2020/10/puzzle-2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '2020/10/puzzle-2.py') diff --git a/2020/10/puzzle-2.py b/2020/10/puzzle-2.py index 3042a2b..b0e5d8b 100755 --- a/2020/10/puzzle-2.py +++ b/2020/10/puzzle-2.py @@ -23,7 +23,7 @@ def main() -> None: adaptors.append(0) adaptors.sort() - adaptors.append(max(adaptors) + 3) + adaptors.append(adaptors[-1] + 3) print(combos(0)) -- cgit v1.2.3