This commit is contained in:
thib8956 committed 2026-11-11 15:36:53 +01:00
1 parent 0232b9326d
commit 5c3fb89870
50 files changed
+97 -117

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
def parse_input(infile):
with open(infile) as f:
return [[int(x) for x in l.strip().split()] for l in f.readlines()]
return [[int(x) for x in l.strip().split()] for l in f]
def process_line(line):
@@ -25,8 +25,8 @@ def solve(data):
if __name__ == "__main__":
import sys
import os
import sys
SCRIPTPATH = os.path.dirname(os.path.realpath(__file__))
infile = sys.argv[1] if len(sys.argv) == 2 else "example.txt"
data = parse_input(os.path.join(SCRIPTPATH, infile))