adventofcode

https://adventofcode.com/
Log | Files | Refs

puzzle_1.bqn (127B)


      1 #! /usr/bin/env BQN
      2 
      3 input ← ⊑ •FLines "files/1.txt"
      4 
      5 b ← 1 -˜ 2 × '(' = input
      6 
      7 +´b #part 1
      8 1 + ⊑/0 > +`b #part 2