aboutsummaryrefslogtreecommitdiffstats
path: root/day11
diff options
context:
space:
mode:
Diffstat (limited to 'day11')
-rw-r--r--day11/input.txt55
-rw-r--r--day11/solution.nim0
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 @@
1Monkey 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
8Monkey 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
15Monkey 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
22Monkey 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
29Monkey 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
36Monkey 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
43Monkey 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
50Monkey 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