summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2022-12-18 20:51:56 +0000
committerTomasz Kramkowski <tomasz@kramkow.ski>2022-12-18 20:51:56 +0000
commitdfcdcf1e5dde06095fb5c3100f115737fb52fc4b (patch)
treef09217c780859472844a3cdade632675d4fbc778
parentf27eff39a11e03f32bb93a7a3a2232ab9c439a32 (diff)
downloadaoc2022-dfcdcf1e5dde06095fb5c3100f115737fb52fc4b.tar.gz
aoc2022-dfcdcf1e5dde06095fb5c3100f115737fb52fc4b.tar.xz
aoc2022-dfcdcf1e5dde06095fb5c3100f115737fb52fc4b.zip
16 add AA to path
-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])