Skip to content

Commit

Permalink
16abestflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vintitres committed Sep 15, 2023
1 parent 12b55d7 commit e71ff83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/day16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ fn consolidate(valves: &BTreeMap<String, Valve>) -> BTreeMap<String, Valve> {
pub fn part1(input: &str) -> i64 {
let valves = consolidate(&BTreeMap::from_iter(input.lines().map(Valve::read)));
let allflow = valves.values().map(|v| v.flow_rate).sum();
let mut bestflow = 1500;
let mut bestflow = 2000; // know can get this much from previous long runs (helps cut off branches)
dfs(
&valves,
&"AA".to_string(),
Expand Down

0 comments on commit e71ff83

Please sign in to comment.