advent-of-code/2023/24/one.py

17 lines
293 B
Python
Raw Normal View History

2024-12-25 12:58:02 +01:00
#!/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)