minus-squareRollingRagdoll@lemmy.worldtoAdvent Of Code@programming.dev•🍷 - 2024 DAY 3 SOLUTIONS -🍷linkfedilinkarrow-up3·edit-225 days agoUiua Part 1: &fras "day3/input.txt" /+≡/×≡⋕≡↘1regex "mul\\((\\d+),(\\d+)\\)" Part 2: Filter ← ⍜⊜∘≡⋅""⊸⦷°□ .&fras "day3/input.txt" ∧Filter♭regex"don't\\(\\)?(.*?)(?:do\\(\\)|$)" /+≡/×≡⋕≡↘1regex "mul\\((\\d+),(\\d+)\\)" linkfedilink
minus-squareRollingRagdoll@lemmy.worldtoGames@sh.itjust.works•You're stuck on a desert island for five years. You can have three video games. What three games do you take?linkfedilinkEnglisharrow-up6·5 months agoI would take: Dwarf Fortress Rimworld Minecraft linkfedilink
Uiua
Part 1:
&fras "day3/input.txt" /+≡/×≡⋕≡↘1regex "mul\\((\\d+),(\\d+)\\)"
Part 2:
Filter ← ⍜⊜∘≡⋅""⊸⦷°□ .&fras "day3/input.txt" ∧Filter♭regex"don't\\(\\)?(.*?)(?:do\\(\\)|$)" /+≡/×≡⋕≡↘1regex "mul\\((\\d+),(\\d+)\\)"