bonus bqn
This commit is contained in:
parent
d675d92222
commit
cfe9746da2
1 changed files with 7 additions and 0 deletions
7
aoc.bqn
Normal file
7
aoc.bqn
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
|
||||||
|
day1 ⇐ {
|
||||||
|
nums ← •BQN⎊0¨ •FLines "input/day1"
|
||||||
|
sums ← ∨ (+´ {𝕩↑𝕨↓nums}´)¨ (»⋈¨ ⊢-») / 0⊸≡¨ nums
|
||||||
|
|
||||||
|
a ⇐ ⊑sums ⋄ b ⇐ +´ 3↑sums
|
||||||
|
}
|
Loading…
Reference in a new issue