Rustfmt
This commit is contained in:
parent
93769a8013
commit
c09a7236cd
2 changed files with 11 additions and 10 deletions
|
@ -21,14 +21,13 @@ pub fn solve() {
|
|||
"Blueprint {d}: Each ore robot costs {d} ore. Each clay robot costs {d} ore. Each obsidian robot costs {d} ore and {d} clay. Each geode robot costs {d} ore and {d} obsidian.",
|
||||
u32, u32, u32, u32, u32, u32, u32
|
||||
).unwrap() ;
|
||||
Blueprint {
|
||||
id,
|
||||
ore_bot: ore,
|
||||
clay_bot: clay,
|
||||
obsidian_bot: (obs1, obs2),
|
||||
geode_bot: (geode1, geode2)
|
||||
Blueprint {
|
||||
id,
|
||||
ore_bot: ore,
|
||||
clay_bot: clay,
|
||||
obsidian_bot: (obs1, obs2),
|
||||
geode_bot: (geode1, geode2)
|
||||
}
|
||||
|
||||
})
|
||||
.collect();
|
||||
}
|
||||
|
@ -39,8 +38,10 @@ struct Blueprint {
|
|||
id: u32,
|
||||
ore_bot: u32,
|
||||
clay_bot: u32,
|
||||
obsidian_bot: (u32, u32), // (ore, clay)
|
||||
geode_bot: (u32, u32), // (ore, obsidian)
|
||||
// (ore, clay)
|
||||
obsidian_bot: (u32, u32),
|
||||
// (ore, obsidian)
|
||||
geode_bot: (u32, u32),
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
|
|
|
@ -95,7 +95,7 @@ pub fn solve() {
|
|||
}
|
||||
}
|
||||
let res = monkey_nums.get(ROOT).unwrap();
|
||||
println!("Result 1: {res}")
|
||||
println!("Result 1: {res}");
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
|
Loading…
Reference in a new issue