From dfcdcf1e5dde06095fb5c3100f115737fb52fc4b Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Sun, 18 Dec 2022 20:51:56 +0000 Subject: 16 add AA to path --- 16.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/16.py b/16.py index 8135d87..d0f1c45 100644 --- a/16.py +++ b/16.py @@ -70,7 +70,7 @@ def solve(nodes, open_valves=1, time_left=30): check(open_valves | 1 << current, current, flow + cnode.flow * (time_left - 1), time_left - 1) recurse_cache[key] = best return best - return recurse(open_valves, 0, 0, time_left, []) + return recurse(open_valves, 0, 0, time_left, [0]) v, p = solve(nodes) print(v, [extern(s) for s in p]) -- cgit v1.2.3-54-g00ecf