advent-of-code/2023/24/one.py
2024-12-25 12:59:49 +01:00

17 lines
293 B
Python

#!/usr/bin/env python3
import sys
input_file = sys.argv[1]
hailstones = []
with open(input_file) as fd:
for line in fd.readlines():
line = line.rstrip()
line.replace("@", ",")
hailstone = [int(h) for h in line.split(",")]
hailstones.append(hailstone)