day 11 was so fun

main
aprzn 1 year ago
parent f16a1f2dda
commit 378c8ae178

@ -0,0 +1,33 @@
$ ...#......
$ .......#..
$ #.........
$ ..........
$ ......#...
$ .#........
$ .........#
$ ..........
$ .......#..
$ #...#.....
TestInput ←
Parse ← ⊜∘≠@\n.
PartI ← +∩(
+⊃(
÷2/+♭⌵⊞-.
| /+×⊃∘-≡(/+<)⊃(⍜°⊚(=0)|¤|⧻)
)⊏⍏.
)≡°⊟⊚=@#
PartII ← +∩(
+⊃(
÷2/+♭⌵⊞-.
| ×999999 /+×⊃∘-≡(/+<)⊃(⍜°⊚(=0)|¤|⧻)
)⊏⍏.
)≡°⊟⊚=@#
PartI Parse TestInput
PartII Parse TestInput
PartI Parse &fras "day11.in"
PartII Parse &fras "day11.in"
Loading…
Cancel
Save