Watch
1
0
Fork
You've already forked advent-of-code
0

2025 Day 10 Part 1

This commit is contained in:
Jeremy Kaplan 2025-12-27 00:23:53 -05:00
commit 6e205bba62

26
2025/day10.ua Normal file
View file

@ -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