2025 Day 10 Part 1
This commit is contained in:
parent
491984240a
commit
6e205bba62
1 changed files with 26 additions and 0 deletions
26
2025/day10.ua
Normal file
26
2025/day10.ua
Normal 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
|
||||||
Loading…
Reference in a new issue