aoc2023/unfinished/day13.bqn

14 lines
278 B
BQN
Raw Permalink Normal View History

Tails (1)()
Sym ´ =
Centers { (𝕩) { 𝕨+ 2÷˜ 𝕨-˜ 𝕩} 𝕩 }
VC (/˜) Centers×Sym¨Tails
HC VC
VCenter VC(VC˘)
HCenter HC(HC)
Score (100×VCenter) + HCenter