diff --git a/2025/day10.ua b/2025/day10.ua new file mode 100644 index 0000000..978897a --- /dev/null +++ b/2025/day10.ua @@ -0,0 +1,26 @@ +~ "aoc.ua" ~ Lines + +&fras "input/day10.txt" +Lines +≡( + {°$"[_] _ {_}"} + ⍜(°□⊡0|=@#) + ⍜(°□⊡1|⍚⋕ ⍚°/$"_,_" ⍚°$"(_)" °/$"_ _") + ⍜(°□⊡2|◇⋕ °/$"_,_") +) +Machines ← + +Lights ← ( + ⊃(°□⊡0|°□⊡1) + path( + ≡⌞( + ⊙◇°⊚ + ⬚0+ + ◿2 + ) + | /↧ =0) + ⬚∞(-1 ⧻⊢) +) + +Machines +/+ ≡Lights