This website requires JavaScript.
Explore
Help
Sign In
magical
/
adventofcode2022
Watch
1
Star
0
Fork
You've already forked adventofcode2022
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
43118ba386
adventofcode2022
/
day01
/
sol.ivy
9 lines
99 B
Plaintext
Raw
Normal View
History
Unescape
Escape
day 1 ivy solution
2022-12-01 06:09:01 +00:00
) get "input.ivy"
# part 1
max/ +/ input
# part 2
maybe slightly more elegant solution
2022-12-01 06:10:06 +00:00
op n top v = v[n take down v]
+/ 3 top +/input