chiark
/
gitweb
/
~bjharris
/
aoc-2022.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f161c8e
)
08b done
author
Ben Harris
<bjh21@bjh21.me.uk>
Wed, 8 May 2024 13:26:13 +0000
(14:26 +0100)
committer
Ben Harris
<bjh21@bjh21.me.uk>
Wed, 8 May 2024 13:26:13 +0000
(14:26 +0100)
08/08b.bqn
[new file with mode: 0644]
patch
|
blob
diff --git a/08/08b.bqn
b/08/08b.bqn
new file mode 100644
(file)
index 0000000..
dd75f5d
--- /dev/null
+++ b/
08/08b.bqn
@@ -0,0
+1,5
@@
+Main←{𝕊in:
+ DirScores←{>{+˝((1↓≢𝕩)⥊1)»∧`(⊏𝕩)⊸>˘1↓𝕩}¨¯1↓↓𝕩}
+ ⌈´⥊×´{DirScores⌾𝕏in}¨⟨⊢,⌽,⍉,⌽⍉⟩
+}
+•Show Main '0'-˜>•file.Lines ⊑•args