blob: cbe8b92db07c9553a4ef470053ae57032fad5289 (
plain) (
tree)
|
|
#!/usr/bin/env raku
# @calories records calories carried by each Elf, sorted.
my Int @calories = "input".IO.split("\n\n").map(*.lines.sum).sort;
put "Part 1: " ~ @calories.tail;
put "Part 2: " ~ @calories.tail(3).sum;
|