You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
advent-of-code/2023/uiua/day_14.ua

13 lines
325 B

&fras "../day_14.txt"
⊜∘ ≠, @\n
Input ←
Tilt ← ⍜⊜□(∵(□⊏⍖.°□))≠@#.
⍜⍉≡(Tilt) Input # tilt platform north
=@O # keep rocks
≡/+ # number of rocks per row
⇌+1⇡⧻. # load amount per row
× # load per row
/+ # sum of row loads