advent-of-code/2020/day11/day11.dyalog
2024-11-12 21:46:18 +01:00

4 lines
164 B
APL

⎕IO0
p'L'=⎕NGET'input'1
s{(1=1 1)/2,:2 (2=1 1)4<+/2=,:1 1:1 1}3 3
+/,2=(s)p ⍝ Part 1