From 67116c06713074e3782ddea2f3658490bf22bf67 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Fri, 16 Dec 2022 16:12:24 +0000 Subject: 16 line length --- 16.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/16.py b/16.py index 779b8aa..a8819f3 100644 --- a/16.py +++ b/16.py @@ -48,7 +48,8 @@ def recurse(open_valves=frozenset(), current='AA', flow=0, time_left=30): flow + cflow * cost, time_left - cost) best = max(best, new) if current not in open_valves and time_left > 0 and cnode.flow > 0: - best = max(best, recurse(open_valves | {current}, current, flow + cflow, time_left - 1)) + best = max(best, recurse(open_valves | {current}, current, + flow + cflow, time_left - 1)) return best print(recurse()) -- cgit v1.2.3-54-g00ecf