Day 11 update
This commit is contained in:
parent
8014d9d966
commit
567877da60
@ -361,10 +361,10 @@ Monkey 3:
|
||||
lines.next();
|
||||
monkeys.push(monkey);
|
||||
}
|
||||
let min_product: BigInt = monkeys
|
||||
let min_product: Item = monkeys
|
||||
.iter()
|
||||
.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();
|
||||
|
||||
for _ in 0..20 {
|
||||
|
Loading…
Reference in New Issue
Block a user