advent2022

Advent of Code 2022 Solutions
git clone git://bsandro.tech/advent2022
Log | Files | Refs | README | LICENSE

input.txt (1279B)


      1 Monkey 0:
      2   Starting items: 52, 78, 79, 63, 51, 94
      3   Operation: new = old * 13
      4   Test: divisible by 5
      5     If true: throw to monkey 1
      6     If false: throw to monkey 6
      7 
      8 Monkey 1:
      9   Starting items: 77, 94, 70, 83, 53
     10   Operation: new = old + 3
     11   Test: divisible by 7
     12     If true: throw to monkey 5
     13     If false: throw to monkey 3
     14 
     15 Monkey 2:
     16   Starting items: 98, 50, 76
     17   Operation: new = old * old
     18   Test: divisible by 13
     19     If true: throw to monkey 0
     20     If false: throw to monkey 6
     21 
     22 Monkey 3:
     23   Starting items: 92, 91, 61, 75, 99, 63, 84, 69
     24   Operation: new = old + 5
     25   Test: divisible by 11
     26     If true: throw to monkey 5
     27     If false: throw to monkey 7
     28 
     29 Monkey 4:
     30   Starting items: 51, 53, 83, 52
     31   Operation: new = old + 7
     32   Test: divisible by 3
     33     If true: throw to monkey 2
     34     If false: throw to monkey 0
     35 
     36 Monkey 5:
     37   Starting items: 76, 76
     38   Operation: new = old + 4
     39   Test: divisible by 2
     40     If true: throw to monkey 4
     41     If false: throw to monkey 7
     42 
     43 Monkey 6:
     44   Starting items: 75, 59, 93, 69, 76, 96, 65
     45   Operation: new = old * 19
     46   Test: divisible by 17
     47     If true: throw to monkey 1
     48     If false: throw to monkey 3
     49 
     50 Monkey 7:
     51   Starting items: 89
     52   Operation: new = old + 2
     53   Test: divisible by 19
     54     If true: throw to monkey 2
     55     If false: throw to monkey 4