Day 6.1 done

This commit is contained in:
Simon Junod
2025-12-14 17:20:39 +01:00
parent 8cfa72a7e9
commit f8cf787d02
3 changed files with 55 additions and 0 deletions

9
5/b.py Normal file
View File

@@ -0,0 +1,9 @@
with open("input", "r") as f:
lines = f.read().splitlines()
ranges = []
for line in lines:
if "-" in line:
start, end = line.split("-")
ranges.append((int(start), int(end)))