From 4fa0141f5fb9c7a87cbd120943dbe9b798aab57c Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Thu, 14 Dec 2023 11:51:00 -0800 Subject: [PATCH] [2023][uiua][14.1] --- 2023/uiua/day_14.ua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 2023/uiua/day_14.ua diff --git a/2023/uiua/day_14.ua b/2023/uiua/day_14.ua new file mode 100644 index 0000000..e6d10cf --- /dev/null +++ b/2023/uiua/day_14.ua @@ -0,0 +1,12 @@ +&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