Files
aoc2022/inputs/day11.txt
2022-12-11 22:34:12 +01:00

56 lines
1.2 KiB
Plaintext

Monkey 0:
Starting items: 56, 52, 58, 96, 70, 75, 72
Operation: new = old * 17
Test: divisible by 11
If true: throw to monkey 2
If false: throw to monkey 3
Monkey 1:
Starting items: 75, 58, 86, 80, 55, 81
Operation: new = old + 7
Test: divisible by 3
If true: throw to monkey 6
If false: throw to monkey 5
Monkey 2:
Starting items: 73, 68, 73, 90
Operation: new = old * old
Test: divisible by 5
If true: throw to monkey 1
If false: throw to monkey 7
Monkey 3:
Starting items: 72, 89, 55, 51, 59
Operation: new = old + 1
Test: divisible by 7
If true: throw to monkey 2
If false: throw to monkey 7
Monkey 4:
Starting items: 76, 76, 91
Operation: new = old * 3
Test: divisible by 19
If true: throw to monkey 0
If false: throw to monkey 3
Monkey 5:
Starting items: 88
Operation: new = old + 4
Test: divisible by 2
If true: throw to monkey 6
If false: throw to monkey 4
Monkey 6:
Starting items: 64, 63, 56, 50, 77, 55, 55, 86
Operation: new = old + 8
Test: divisible by 13
If true: throw to monkey 4
If false: throw to monkey 0
Monkey 7:
Starting items: 79, 58
Operation: new = old + 6
Test: divisible by 17
If true: throw to monkey 1
If false: throw to monkey 5