This commit is contained in:
2023-12-25 19:05:32 +01:00
commit 8183467b60
15 changed files with 5590 additions and 0 deletions

20
01/01.py Normal file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
data = []
# parse input
input_file = open("input", "r")
cal = 0
for line in input_file:
line = line.strip()
if line == "":
data.append(cal)
cal = 0
continue
cal += int(line)
input_file.close()
print(data)
data.sort(reverse=True)
print(data)
print(f"Lösung 1: {data[0]}")
print(f"Lösung 2: {data[0]+data[1]+data[2]}")

2237
01/input Normal file

File diff suppressed because it is too large Load Diff