aoc2022

Advent of Code 2022 solutions in Rust
git clone git://code.mfashby.net:/aoc2022
Log | Files | Refs

day11.txt (1277B)


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