Day 11 update

This commit is contained in:
Max Känner 2022-12-12 08:18:43 +01:00
parent 8014d9d966
commit 567877da60

View File

@ -361,10 +361,10 @@ Monkey 3:
lines.next(); lines.next();
monkeys.push(monkey); monkeys.push(monkey);
} }
let min_product: BigInt = monkeys let min_product: Item = monkeys
.iter() .iter()
.map(|monkey| monkey.test_divisible_by.clone()) .map(|monkey| monkey.test_divisible_by.clone())
.fold(1.into(), |p, i| p * i); .fold(1u64.into(), |p, i| p * i);
let mut monkeys2 = monkeys.clone(); let mut monkeys2 = monkeys.clone();
for _ in 0..20 { for _ in 0..20 {