My solution in quick-n-dirty python.
https://github.com/svennek/adventofcode22/blob/main/day1.py
Time spent around 5 minutes.