Initial commit

This commit is contained in:
Dimitri Lozeve 2024-11-12 21:43:32 +01:00
commit f242d2b0df
420 changed files with 62521 additions and 0 deletions

5
2020/day03/day03.dyalog Normal file
View file

@ -0,0 +1,5 @@
⎕io←0
p←'#'=↑⊃⎕NGET'input'1
f←{+/p[↓⍉↑(p)|⍵×2⌈(⊃p)÷⊃⍵]}
f 1 3 ⍝ Part 1
×/f¨(1 1)(1 3)(1 5)(1 7)(2 1) ⍝ Part 2