Initial commit

This commit is contained in:
Geoffrey Frogeye 2024-12-25 12:58:02 +01:00
commit 97a4330bc0
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
110 changed files with 7006 additions and 0 deletions

16
2023/24/one.py Normal file
View file

@ -0,0 +1,16 @@
#!/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)