From 378c8ae178f7671c112288179541a39c67e08ea4 Mon Sep 17 00:00:00 2001 From: aprzn Date: Mon, 11 Dec 2023 11:08:24 -0500 Subject: [PATCH] day 11 was so fun --- day11.ua | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 day11.ua 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"