adventofcode2022/day01/sol.ivy

9 lines
94 B
XML

) get "input.ivy"
# part 1
max/ +/ input
# part 2
sums = +/ input
+/ sums[3 take down sums]