about summary refs log tree commit diff
path: root/users/sterni/exercises/aoc/2022/03/3.bqn
blob: 642fccd45034c37f0c374e5cb8e86158279d7025 (plain) (blame)
1
2
3
4
5
6
7
8
i ← •FLines •path∾"/input"
c ← ∾(↕26)⊸+¨"aA"
P ← {1+⊑c⊐⊑𝕩}
S ← (∊/⊣)
G ← ((⊣/(↕÷˜⟜≠))⊔⊢)

•Out "day03.1: "∾•Fmt +´(P S˝)¨2‿∘⊸⥊¨i
•Out "day03.2: "∾•Fmt +´3(P S´)¨∘G i