diff --git a/day13/sol.py b/day13/sol.py index 238548a..bd3bbbe 100644 --- a/day13/sol.py +++ b/day13/sol.py @@ -1,7 +1,8 @@ +import json data = [] for chunk in open("input").read().split("\n\n"): - data.append([eval(x) for x in chunk.splitlines(False)]) + data.append([json.loads(x) for x in chunk.splitlines(False)]) def less(a, b): if type(a) == int and type(b) == int: