diff options
author | Tomasz Kramkowski <tomasz@kramkow.ski> | 2022-12-18 20:51:56 +0000 |
---|---|---|
committer | Tomasz Kramkowski <tomasz@kramkow.ski> | 2022-12-18 20:51:56 +0000 |
commit | dfcdcf1e5dde06095fb5c3100f115737fb52fc4b (patch) | |
tree | f09217c780859472844a3cdade632675d4fbc778 | |
parent | f27eff39a11e03f32bb93a7a3a2232ab9c439a32 (diff) | |
download | aoc2022-dfcdcf1e5dde06095fb5c3100f115737fb52fc4b.tar.gz aoc2022-dfcdcf1e5dde06095fb5c3100f115737fb52fc4b.tar.xz aoc2022-dfcdcf1e5dde06095fb5c3100f115737fb52fc4b.zip |
16 add AA to path
-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]) |