aocc22

Advent of Code 2022
git clone git://www.tkruger.se/aocc22.git
Log | Files | Refs | README

input (1278B)


      1 Monkey 0:
      2   Starting items: 54, 82, 90, 88, 86, 54
      3   Operation: new = old * 7
      4   Test: divisible by 11
      5     If true: throw to monkey 2
      6     If false: throw to monkey 6
      7 
      8 Monkey 1:
      9   Starting items: 91, 65
     10   Operation: new = old * 13
     11   Test: divisible by 5
     12     If true: throw to monkey 7
     13     If false: throw to monkey 4
     14 
     15 Monkey 2:
     16   Starting items: 62, 54, 57, 92, 83, 63, 63
     17   Operation: new = old + 1
     18   Test: divisible by 7
     19     If true: throw to monkey 1
     20     If false: throw to monkey 7
     21 
     22 Monkey 3:
     23   Starting items: 67, 72, 68
     24   Operation: new = old * old
     25   Test: divisible by 2
     26     If true: throw to monkey 0
     27     If false: throw to monkey 6
     28 
     29 Monkey 4:
     30   Starting items: 68, 89, 90, 86, 84, 57, 72, 84
     31   Operation: new = old + 7
     32   Test: divisible by 17
     33     If true: throw to monkey 3
     34     If false: throw to monkey 5
     35 
     36 Monkey 5:
     37   Starting items: 79, 83, 64, 58
     38   Operation: new = old + 6
     39   Test: divisible by 13
     40     If true: throw to monkey 3
     41     If false: throw to monkey 0
     42 
     43 Monkey 6:
     44   Starting items: 96, 72, 89, 70, 88
     45   Operation: new = old + 4
     46   Test: divisible by 3
     47     If true: throw to monkey 1
     48     If false: throw to monkey 2
     49 
     50 Monkey 7:
     51   Starting items: 79
     52   Operation: new = old + 8
     53   Test: divisible by 19
     54     If true: throw to monkey 4
     55     If false: throw to monkey 5