aboutsummaryrefslogtreecommitdiff
path: root/2021/18/example
diff options
context:
space:
mode:
authorJulien Dessaux2021-12-20 23:15:56 +0100
committerJulien Dessaux2021-12-20 23:16:51 +0100
commit11088124920c7bc8bd1c54c4265e9dcafb7a024b (patch)
treed9743eaf93ad6abd7ae46a8abda07e19a0527ad6 /2021/18/example
parentAdded solutions for 17th day: target practice (diff)
downloadadvent-of-code-11088124920c7bc8bd1c54c4265e9dcafb7a024b.tar.gz
advent-of-code-11088124920c7bc8bd1c54c4265e9dcafb7a024b.tar.bz2
advent-of-code-11088124920c7bc8bd1c54c4265e9dcafb7a024b.zip
Added solutions for 18th day: snailfish arithmetic
Diffstat (limited to '')
-rw-r--r--2021/18/example5
-rw-r--r--2021/18/example210
-rw-r--r--2021/18/example310
3 files changed, 25 insertions, 0 deletions
diff --git a/2021/18/example b/2021/18/example
new file mode 100644
index 0000000..13fdd19
--- /dev/null
+++ b/2021/18/example
@@ -0,0 +1,5 @@
+[1,1]
+[2,2]
+[3,3]
+[4,4]
+[5,5]
diff --git a/2021/18/example2 b/2021/18/example2
new file mode 100644
index 0000000..70e9071
--- /dev/null
+++ b/2021/18/example2
@@ -0,0 +1,10 @@
+[[[0,[4,5]],[0,0]],[[[4,5],[2,6]],[9,5]]]
+[7,[[[3,7],[4,3]],[[6,3],[8,8]]]]
+[[2,[[0,8],[3,4]]],[[[6,7],1],[7,[1,6]]]]
+[[[[2,4],7],[6,[0,5]]],[[[6,8],[2,8]],[[2,1],[4,5]]]]
+[7,[5,[[3,8],[1,4]]]]
+[[2,[2,2]],[8,[8,1]]]
+[2,9]
+[1,[[[9,3],9],[[9,0],[0,7]]]]
+[[[5,[7,4]],7],1]
+[[[[4,2],2],6],[8,7]]
diff --git a/2021/18/example3 b/2021/18/example3
new file mode 100644
index 0000000..1368dc4
--- /dev/null
+++ b/2021/18/example3
@@ -0,0 +1,10 @@
+[[[0,[5,8]],[[1,7],[9,6]]],[[4,[1,2]],[[1,4],2]]]
+[[[5,[2,8]],4],[5,[[9,9],0]]]
+[6,[[[6,2],[5,6]],[[7,6],[4,7]]]]
+[[[6,[0,7]],[0,9]],[4,[9,[9,0]]]]
+[[[7,[6,4]],[3,[1,3]]],[[[5,5],1],9]]
+[[6,[[7,3],[3,2]]],[[[3,8],[5,7]],4]]
+[[[[5,4],[7,7]],8],[[8,3],8]]
+[[9,3],[[9,9],[6,[4,9]]]]
+[[2,[[7,7],7]],[[5,8],[[9,3],[0,2]]]]
+[[[[5,2],5],[8,[3,7]]],[[5,[7,5]],[4,4]]]