Day 1 completed
This commit is contained in:
14
day1/part1.py
Normal file
14
day1/part1.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from common import parse
|
||||
|
||||
|
||||
def solve(elves: list[list[int]]) -> int:
|
||||
return (sorted(map(sum, elves), reverse=True))[0]
|
||||
|
||||
|
||||
def main():
|
||||
elves = parse("input")
|
||||
print(solve(elves))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user