about summary refs log tree commit diff
path: root/day2.k
diff options
context:
space:
mode:
Diffstat (limited to 'day2.k')
-rw-r--r--day2.k7
1 files changed, 7 insertions, 0 deletions
diff --git a/day2.k b/day2.k
new file mode 100644
index 0000000..1e5e9fd
--- /dev/null
+++ b/day2.k
@@ -0,0 +1,7 @@
+d:+("III";"x")0:"day2";
+
++/{(&/x*1!x) + x _dot 2*1!x}'d / total wrapping paper
+
+r:{2*+/2#x@<x}'d; / ribbon
+b:*/'d; / bow
++/(r+b) / total ribbon