adventofcode2022/day01/sol.ivy

9 lines
99 B
Plaintext
Raw Normal View History

2022-12-01 06:09:01 +00:00
) get "input.ivy"
# part 1
max/ +/ input
# part 2
2022-12-01 06:10:06 +00:00
op n top v = v[n take down v]
+/ 3 top +/input