Optimised day 19
[advent-of-code-22.git] / data / advent11.txt
1 Monkey 0:
2 Starting items: 83, 62, 93
3 Operation: new = old * 17
4 Test: divisible by 2
5 If true: throw to monkey 1
6 If false: throw to monkey 6
7
8 Monkey 1:
9 Starting items: 90, 55
10 Operation: new = old + 1
11 Test: divisible by 17
12 If true: throw to monkey 6
13 If false: throw to monkey 3
14
15 Monkey 2:
16 Starting items: 91, 78, 80, 97, 79, 88
17 Operation: new = old + 3
18 Test: divisible by 19
19 If true: throw to monkey 7
20 If false: throw to monkey 5
21
22 Monkey 3:
23 Starting items: 64, 80, 83, 89, 59
24 Operation: new = old + 5
25 Test: divisible by 3
26 If true: throw to monkey 7
27 If false: throw to monkey 2
28
29 Monkey 4:
30 Starting items: 98, 92, 99, 51
31 Operation: new = old * old
32 Test: divisible by 5
33 If true: throw to monkey 0
34 If false: throw to monkey 1
35
36 Monkey 5:
37 Starting items: 68, 57, 95, 85, 98, 75, 98, 75
38 Operation: new = old + 2
39 Test: divisible by 13
40 If true: throw to monkey 4
41 If false: throw to monkey 0
42
43 Monkey 6:
44 Starting items: 74
45 Operation: new = old + 4
46 Test: divisible by 7
47 If true: throw to monkey 3
48 If false: throw to monkey 2
49
50 Monkey 7:
51 Starting items: 68, 64, 60, 68, 87, 80, 82
52 Operation: new = old * 19
53 Test: divisible by 11
54 If true: throw to monkey 4
55 If false: throw to monkey 5