diff options
-rw-r--r-- | 16.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]) |