about summary refs log tree commit diff
path: root/day02.k
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-12-02 16:44:16 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2016-12-02 16:44:16 +0100
commit9cb0f0d1299f30a4c38929f1e93499d56080974e (patch)
tree0558dda2f046e6037627b7c53debd06d994e4383 /day02.k
parent719d1cc73e191a30cc6624d6a4d9a10ecea8ab01 (diff)
downloadadventofcode2016-9cb0f0d1299f30a4c38929f1e93499d56080974e.tar.gz
adventofcode2016-9cb0f0d1299f30a4c38929f1e93499d56080974e.tar.xz
adventofcode2016-9cb0f0d1299f30a4c38929f1e93499d56080974e.zip
day02
Diffstat (limited to 'day02.k')
-rw-r--r--day02.k11
1 files changed, 11 insertions, 0 deletions
diff --git a/day02.k b/day02.k
new file mode 100644
index 0000000..56b84e8
--- /dev/null
+++ b/day02.k
@@ -0,0 +1,11 @@
+/ -:\|=2 thanks to Jack Andrews
+
+,/$.[3 3#1+!9]'1+'((-1|1&+)/(,/-:\|=2)"RDLU"?)',\0:"day02"
+/ 56983
+
+m:{$[2<+/{%x*x}x+y; x; x+y]}
+m:{$[4<+/u*u:x+y;x;u]}
+,/.[5 5#"zz1zzz234z56789zABCzzzD"]'2+'(m/(,/-:\|=2)"RDLU"?)',\0:"day02"
+/ 8B8B1
+
+\\