adventofcode2022

My solutions for Advent of Code 2022
Log | Files | Refs

day11.txt (1278B)


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