about summary refs log tree commit diff
path: root/users/sterni/exercises/aoc/2022/01/1.bqn
blob: 022b476aa9a94af80fafba4777a7a3cb9b0bf633 (plain) (blame)
1
2
3
4
5
6
7
lib ← •Import •path∾"/../../lib.bqn"
input ← lib.ReadDec¨¨ (<"") lib.SplitOn •FLines •path∾"/input"

a‿·‿b ← +`3↑∨+´¨ input

•Out "day01.1: "∾•Fmt a
•Out "day01.2: "∾•Fmt b