Skip to content

Commit

Permalink
dbg
Browse files Browse the repository at this point in the history
  • Loading branch information
vintitres authored Sep 29, 2023
1 parent 1239c8b commit e9493f6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/day16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,8 @@ fn dfs(
let doneflow = (state.done_flow as i32
+ (time_limit as i32 - state.minute as i32) * openflow as i32)
as u32;
//eprintln!("{:?} {:?}", doneflow, bestflow);
if doneflow > *bestflow {
eprintln!("{:?}", bestflow);
dbg!(&bestflow);
*bestflow = doneflow;
}
return;
Expand Down Expand Up @@ -292,7 +291,6 @@ fn indexify(valves: &BTreeMap<String, Valve_>) -> (usize, Vec<Valve>) {
let names = valves.keys().enumerate().collect_vec();
let name_to_index =
BTreeMap::from_iter(names.iter().map(|(i, name)| (String::from(*name), *i)));
// eprintln!("{:?}", name_to_index);
(
*name_to_index.get("AA").unwrap(),
names
Expand Down

0 comments on commit e9493f6

Please sign in to comment.