Day 11 update
This commit is contained in:
parent
8014d9d966
commit
567877da60
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user