Files
aoc/2022/16/p.py
2023-11-30 19:20:34 +02:00

15 lines
239 B
Python

import os
input = open(os.path.dirname(__file__) +
"/input-demo.txt", "r").readlines()
V = {}
for l in input:
d = l.strip().split()
V[d[1]] = (int(d[4].split('=')[1].split(';')[0]),
d[9:])
print(V)