adventofcode

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

puzzle_2.bqn (220B)


      1 #!/usr/bin/env BQN
      2 
      3 input ← •BQN ¨ {'‿'¨⌾(('x'=𝕩)⊸/)𝕩} ¨ •FLines "files/2.txt"
      4 
      5 •Show +´(⌊´¨y)++´¨2×y←(×´¨⊢⋈¨1⌽⊢)¨input #part 1
      6 •Show +´(×´+2×+´-⌈´)¨input #part 2