From 737fb1a50fb875bfe3c592f9a46ae99081067e89 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Tue, 3 Dec 2024 12:43:36 -0800 Subject: [PATCH] [2024][uiua][3.x] --- 2024/uiua/day_03.ua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 2024/uiua/day_03.ua diff --git a/2024/uiua/day_03.ua b/2024/uiua/day_03.ua new file mode 100644 index 0000000..7213f59 --- /dev/null +++ b/2024/uiua/day_03.ua @@ -0,0 +1,12 @@ +# Experimental! + +$ xmul(2,4)&mul[3,7]!^don't()_mul(5,5)+mul(32,64](mul(11,8)undo()?mul(8,5)) +Input ← + +Part₁ ← /+≡/×⋕↘0_1regex "mul\\((\\d+),(\\d+)\\)" + +DontDos ← ∩(⊚⌕)"do()","don't()" +Disabled ← ≡(⊂⤚(⊢▽>,)) ¤DontDos +Part₂ ← Part₁ ▽¬/∨≡(≤⇡:°⊟) Disabled . + +⊂⊃Part₁Part₂ Input