From 743e1bdcf8fc26af63b6553bc05e179e2a062b3c Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Mon, 3 Dec 2018 05:18:17 +0000 Subject: [PATCH] Day 3 solution. --- p3.dyalog | 5 + p3.txt | 1233 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 1238 insertions(+) create mode 100644 p3.dyalog create mode 100644 p3.txt diff --git a/p3.dyalog b/p3.dyalog new file mode 100644 index 0000000..0384f00 --- /dev/null +++ b/p3.dyalog @@ -0,0 +1,5 @@ +p←⍎¨¨'\d+'⎕S'&'¨⊃⎕NGET'p3.txt'1 +g←1000 1000⍴0 ⍝ grid +{(a b c d e)←⍵ ⋄ g[(⊂c b)+⍳e d]+←1}¨p ++/,1