mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-25 21:00:31 +01:00
Use correct early cut-off bound
This commit is contained in:
@@ -107,7 +107,7 @@ impl BluePrint {
|
|||||||
}) = todo.pop()
|
}) = todo.pop()
|
||||||
{
|
{
|
||||||
let ideal_from_now = ideal(time_left as u32);
|
let ideal_from_now = ideal(time_left as u32);
|
||||||
if u32::from(best - got) > ideal_from_now {
|
if u32::from(best - got) >= ideal_from_now {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if todo.len() > 1_000_000 {
|
if todo.len() > 1_000_000 {
|
||||||
|
|||||||
Reference in New Issue
Block a user