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