adventofcode

https://adventofcode.com/
Log | Files | Refs

commit f88c724af9327931f158d8b1c34dd62ead150c32
parent 6125fca4d298c4f21fa5505a959e617b4b33ac8b
Author: mpizzzle <m@michaelpercival.xyz>
Date:   Tue,  7 Dec 2021 14:45:04 +0000

minor formatting

Diffstat:
M2021/puzzle_2.apl | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/2021/puzzle_2.apl b/2021/puzzle_2.apl @@ -2,8 +2,7 @@ input← ⎕FIO[49] 'files/2.txt' -x← { +/⍵ { 1 ⍴ (⍺ = ⍵) × ⍎⍵[⍴ ⍵] } ¨ input } ¨ 'fdu' - -x[1] × (x[2] - x[3]) ⍝ part 1 +x← { +/⍵ { ↑ (⍺ = ⍵) × ⍎⍵[⍴ ⍵] } ¨ input } ¨ 'fdu' +x[1] × x[2] - x[3] ⍝ part 1 )OFF