summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2021-12-24 23:38:52 +0000
committerTomasz Kramkowski <tk@the-tk.com>2021-12-24 23:38:52 +0000
commitc2e7b78fd4129dbf3671886bb4a8d8d02b78f62c (patch)
tree26b5189ac83eac429d3d85bc2e1082b8329f9a4c
parente96806627d6dc4d1e439196b337e083a95d40bcd (diff)
downloadaoc2021-c2e7b78fd4129dbf3671886bb4a8d8d02b78f62c.tar.gz
aoc2021-c2e7b78fd4129dbf3671886bb4a8d8d02b78f62c.tar.xz
aoc2021-c2e7b78fd4129dbf3671886bb4a8d8d02b78f62c.zip
day 24: solved by hand
-rw-r--r--24.hand29
1 files changed, 29 insertions, 0 deletions
diff --git a/24.hand b/24.hand
new file mode 100644
index 0000000..efc9752
--- /dev/null
+++ b/24.hand
@@ -0,0 +1,29 @@
+1, 10, 12 push dig[0] + 12
+1, 12, 7 push dig[1] + 7
+1, 10, 8 push dig[2] + 8
+1, 12, 8 push dig[3] + 8
+1, 11, 15 push dig[4] + 15
+26, -16, 12 pop -16 == dig[5];
+1, 10, 8 push dig[6] + 8
+26, -11, 13 pop -11 == dig[7]
+26, -13, 3 pop -13 == dig[8]
+1, 13, 13 push dig[9] + 13
+26, -8, 3 pop -8 == dig[10]
+26, -1, 9 pop -1 == dig[11]
+26, -4, 4 pop -4 == dig[12]
+26, -14, 13 pop -14 == dig[13]
+
+0 1 2 3 4 5 6 7 8 9 0 1 2 3
+9 6 2 9 9 8 9 6 4 4 9 9 9 7
+3 1 1 6 2 1 4 1 1 1 6 8 4 1
+
+dig[0] - 2 == dig[13]
+dig[1] + 3 == dig[12]
+dig[2] + 7 == dig[11]
+dig[3] - 5 == dig[8]
+dig[4] - 1 == dig[5]
+dig[6] - 3 == dig[7]
+dig[9] + 5 == dig[10]
+
+96299896449997
+31162141116841