Skip to content

Commit

Permalink
2024 11 (uiua)
Browse files Browse the repository at this point in the history
  • Loading branch information
memark committed Dec 17, 2024
1 parent 2fd3ac1 commit e0128e3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions 2024/day-11/example.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
125 17
1 change: 1 addition & 0 deletions 2024/day-11/input.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6 11 33023 4134 564 0 8922422 688775
21 changes: 21 additions & 0 deletions 2024/day-11/main.ua
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# https://adventofcode.com/2024/day/11

# uiua 0.14.0-rc.1

💾 ← &fras
🥌 ← ⊜⋕⊸≠@\s ▽⊸≠@\n
🗺 ← map ⟜≠₋₁
💔 ← ∩⋕⊃↙↘÷₂⊸⧻°⋕
🗿 ← ⨬([⋅1]|[💔]|[×₂₀₂₄]) +⊃(⨬(0|◿₂⧻°⋕)⊸≠₀|≠₀).
😉 ← ∧(∧(⍜⬚0get+ ⊙:)🗿) °map :map[][]

🐪 ← /+ ⍥😉 25 🗺
┌─╴🧪
⍤⤙≍ 55312 🐪 🥌💾"example.txt"
⍤⤙≍ 220999 🐪 🥌💾"input.txt"
└─╴

🐫 ← /+ ⍥😉 75 🗺
┌─╴🧪
⍤⤙≍ 261936432123724 🐫 🥌💾"input.txt"
└─╴

0 comments on commit e0128e3

Please sign in to comment.