Initial commit
This commit is contained in:
commit
f242d2b0df
420 changed files with 62521 additions and 0 deletions
7
2018/day01/day01.dyalog
Normal file
7
2018/day01/day01.dyalog
Normal file
|
@ -0,0 +1,7 @@
|
|||
⎕IO←0
|
||||
x←,⍎¨⎕csv'input.txt'
|
||||
+/x
|
||||
|
||||
y←+\(200×⍴x)⍴x
|
||||
pos←{⍸⍵=y}¨y
|
||||
y[1⌷{⍵[⍋⍵]}{1⌷⍵}¨(⊃¨1<⍴¨pos)/pos]
|
Loading…
Add table
Add a link
Reference in a new issue