commit
ee63647b0a
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,7 @@
|
||||||
|
let input = (open ../input/day1.txt | lines)
|
||||||
|
let inputs = ($input | split list "" | each { |it| $it | into int })
|
||||||
|
let sums = ($inputs | each { |it| $it | math sum })
|
||||||
|
|
||||||
|
let ordered = ($sums | sort | reverse)
|
||||||
|
$ordered | first 1
|
||||||
|
$ordered | first 3 | math sum
|
Loading…
Reference in New Issue