diff --git a/2025/day08.ua b/2025/day08.ua new file mode 100644 index 0000000..d344814 --- /dev/null +++ b/2025/day08.ua @@ -0,0 +1,30 @@ +~ "aoc.ua" ~ Lines + +Input ← Lines &fras "input/day08.txt" +Junctions ← ≡◇⊜⋕ ⊸≠@, Input + +Distance ← √ /+ ⁿ2 - +Dist₂ ← /+ ⁿ2 - + +≡(□¤) Junctions + +°⊏ Junctions +⊏ ⧅< 2 +⊏⍏⊸≡(Distance°[⊙⊙]) + +↙ 1000 + +⍥₁₀₀₀( + ⊃(↘1|⊢) + ⊙( + ⊃(⋅∘|¤∘) + ⤚≡(/↥◇∊) + ⊃(▽|▽¬) + /⍚⊂ + ⊂ + ) +) + +˙⍤=0⧻ + +/×↙¯3⍆≡◇⧻