From 0e6dc13fc5c51fe9943b11d75a5e264c57ecdc41 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Sun, 1 Dec 2024 08:09:21 -0800 Subject: [PATCH] [2024][uiua][1.x] --- 2024/uiua/day_01.ua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 2024/uiua/day_01.ua diff --git a/2024/uiua/day_01.ua b/2024/uiua/day_01.ua new file mode 100644 index 0000000..b144723 --- /dev/null +++ b/2024/uiua/day_01.ua @@ -0,0 +1,16 @@ +# Experimental! + +$ 3 4 +$ 4 3 +$ 2 5 +$ 1 3 +$ 3 9 +$ 3 3 +Raw ← + +Input ← ⍉↯∞_2 ∵⋕regex "\\d+" Raw + +Part₁ ← /+⌵- °⊟ ≡⍆ +Part₂ ← /+× ⟜(/+⍉⊞=) °⊟ + +⊂⊃Part₁Part₂ Input