aoc

advent of code
git clone git://source.orangerot.dev:/aoc.git
Log | Files | Refs

input2.txt (1279B)


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