adventofcode2022/day01/sol.ivy

9 lines
99 B
XML

) get "input.ivy"
# part 1
max/ +/ input
# part 2
op n top v = v[n take down v]
+/ 3 top +/input