Initial commit
This commit is contained in:
commit
97a4330bc0
110 changed files with 7006 additions and 0 deletions
16
2023/24/one.py
Normal file
16
2023/24/one.py
Normal 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)
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue