about summary refs log tree commit diff
path: root/day12
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-12-12 16:14:01 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2016-12-12 16:14:01 +0100
commitb0b91e6128d48be95f21cc6172b0403256fc55e1 (patch)
treed890840100a688af29082a2ab772d2ea69658696 /day12
parentd8069ac1178ee09c1a05b26186afd3c35fe4bda3 (diff)
downloadadventofcode2016-b0b91e6128d48be95f21cc6172b0403256fc55e1.tar.gz
adventofcode2016-b0b91e6128d48be95f21cc6172b0403256fc55e1.tar.xz
adventofcode2016-b0b91e6128d48be95f21cc6172b0403256fc55e1.zip
day12
Diffstat (limited to 'day12')
-rw-r--r--day1223
1 files changed, 23 insertions, 0 deletions
diff --git a/day12 b/day12
new file mode 100644
index 0000000..7b0f5e2
--- /dev/null
+++ b/day12
@@ -0,0 +1,23 @@
+cpy 1 a
+cpy 1 b
+cpy 26 d
+jnz c 2
+jnz 1 5
+cpy 7 c
+inc d
+dec c
+jnz c -2
+cpy a c
+inc a
+dec b
+jnz b -2
+cpy c b
+dec d
+jnz d -6
+cpy 19 c
+cpy 14 d
+inc a
+dec d
+jnz d -2
+dec c
+jnz c -5