diff options
| author | An0nSaiko <porfeas12@gmail.com> | 2022-12-12 00:43:39 +0200 |
|---|---|---|
| committer | An0nSaiko <porfeas12@gmail.com> | 2022-12-12 00:43:39 +0200 |
| commit | 079548b237ecf351657684dd053f3e14a55ff0ea (patch) | |
| tree | 7d07c919f7e33f348c453ef5e38aec47cf999744 /day11 | |
| parent | Day 9 (diff) | |
| download | aoc22-079548b237ecf351657684dd053f3e14a55ff0ea.tar.gz aoc22-079548b237ecf351657684dd053f3e14a55ff0ea.zip | |
Day 11
Diffstat (limited to 'day11')
| -rw-r--r-- | day11/input.txt | 55 | ||||
| -rw-r--r-- | day11/solution.nim | 0 |
2 files changed, 55 insertions, 0 deletions
diff --git a/day11/input.txt b/day11/input.txt new file mode 100644 index 0000000..f6d24aa --- /dev/null +++ b/day11/input.txt | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | Monkey 0: | ||
| 2 | Starting items: 76, 88, 96, 97, 58, 61, 67 | ||
| 3 | Operation: new = old * 19 | ||
| 4 | Test: divisible by 3 | ||
| 5 | If true: throw to monkey 2 | ||
| 6 | If false: throw to monkey 3 | ||
| 7 | |||
| 8 | Monkey 1: | ||
| 9 | Starting items: 93, 71, 79, 83, 69, 70, 94, 98 | ||
| 10 | Operation: new = old + 8 | ||
| 11 | Test: divisible by 11 | ||
| 12 | If true: throw to monkey 5 | ||
| 13 | If false: throw to monkey 6 | ||
| 14 | |||
| 15 | Monkey 2: | ||
| 16 | Starting items: 50, 74, 67, 92, 61, 76 | ||
| 17 | Operation: new = old * 13 | ||
| 18 | Test: divisible by 19 | ||
| 19 | If true: throw to monkey 3 | ||
| 20 | If false: throw to monkey 1 | ||
| 21 | |||
| 22 | Monkey 3: | ||
| 23 | Starting items: 76, 92 | ||
| 24 | Operation: new = old + 6 | ||
| 25 | Test: divisible by 5 | ||
| 26 | If true: throw to monkey 1 | ||
| 27 | If false: throw to monkey 6 | ||
| 28 | |||
| 29 | Monkey 4: | ||
| 30 | Starting items: 74, 94, 55, 87, 62 | ||
| 31 | Operation: new = old + 5 | ||
| 32 | Test: divisible by 2 | ||
| 33 | If true: throw to monkey 2 | ||
| 34 | If false: throw to monkey 0 | ||
| 35 | |||
| 36 | Monkey 5: | ||
| 37 | Starting items: 59, 62, 53, 62 | ||
| 38 | Operation: new = old * old | ||
| 39 | Test: divisible by 7 | ||
| 40 | If true: throw to monkey 4 | ||
| 41 | If false: throw to monkey 7 | ||
| 42 | |||
| 43 | Monkey 6: | ||
| 44 | Starting items: 62 | ||
| 45 | Operation: new = old + 2 | ||
| 46 | Test: divisible by 17 | ||
| 47 | If true: throw to monkey 5 | ||
| 48 | If false: throw to monkey 7 | ||
| 49 | |||
| 50 | Monkey 7: | ||
| 51 | Starting items: 85, 54, 53 | ||
| 52 | Operation: new = old + 3 | ||
| 53 | Test: divisible by 13 | ||
| 54 | If true: throw to monkey 4 | ||
| 55 | If false: throw to monkey 0 | ||
diff --git a/day11/solution.nim b/day11/solution.nim new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/day11/solution.nim | |||
