initial commit

This commit is contained in:
s-prechtl 2022-12-09 08:29:06 +01:00
commit 27fe77bbe1
134 changed files with 21939 additions and 0 deletions

6
2022/Day1/Day1.py Normal file
View file

@ -0,0 +1,6 @@
if __name__ == '__main__':
with open("input.txt", "r") as f:
weights = [sum([int(i) for i in nums.split("\n")]) for nums in f.read().split("\n\n")]
print(f"Solution 1: {max(weights)}")
print(f"Solution 2: {sum(sorted(weights)[-3:])}")

2256
2022/Day1/input.txt Normal file

File diff suppressed because it is too large Load diff