diff --git a/day11.ua b/day11.ua new file mode 100644 index 0000000..bad85ec --- /dev/null +++ b/day11.ua @@ -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"