summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--16.py2
1 files changed, 1 insertions, 1 deletions
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])