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:
1bdde04
)
09a working on example
author
Ben Harris
<bjh21@bjh21.me.uk>
Thu, 9 May 2024 08:35:56 +0000
(09:35 +0100)
committer
Ben Harris
<bjh21@bjh21.me.uk>
Thu, 9 May 2024 08:35:56 +0000
(09:35 +0100)
09/09a.bqn
patch
|
blob
|
history
diff --git
a/09/09a.bqn
b/09/09a.bqn
index 1c46524348d8cd8aae22997914ef526b3251ef04..2a8d1158a820c8b48747460a0ef0de9aff91bf6b 100644
(file)
--- a/
09/09a.bqn
+++ b/
09/09a.bqn
@@
-6,10
+6,8
@@
Prep←{
dists/dirs
}
-Step←{
m𝕊⟨h,t⟩:h+↩m,t+↩(×h-t)×(∨´1<|h-t),•Show
⟨h,t⟩}
+Step←{
⟨h,t⟩𝕊m:h+↩m,t+↩(×h-t)×(∨´1<|h-t),
⟨h,t⟩}
-Main←{
- ⟨⟨0,0⟩,⟨0,0⟩⟩Step´⌽𝕩
-}
+Main←{+´∊1⊑¨ (<⟨⟨0,0⟩,⟨0,0⟩⟩)Step`𝕩}
•Show Main Prep>•file.Lines ⊑•args