Move input files for Python programs to separate dir

This commit is contained in:
daniele 2024-12-16 18:44:57 +01:00
parent 3e09b8147e
commit bebadf9437
Signed by: fuxino
GPG Key ID: 981A2B2A3BBF5514
13 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ def sum_paths(matrix, m, n):
@timing
def p081():
try:
with open('matrix.txt', 'r', encoding='utf-8') as fp:
with open('input/matrix.txt', 'r', encoding='utf-8') as fp:
matrix = fp.readlines()
except FileNotFoundError:
print('Error while opening file matrix.txt')

View File

@ -25,7 +25,7 @@ from projecteuler import dijkstra, timing
@timing
def p082():
try:
with open('matrix.txt', 'r', encoding='utf-8') as fp:
with open('input/matrix.txt', 'r', encoding='utf-8') as fp:
matrix = fp.readlines()
except FileNotFoundError:
print('Error while opening file matrix.txt')

View File

@ -24,7 +24,7 @@ from projecteuler import dijkstra, timing
@timing
def p083():
try:
with open('matrix.txt', 'r', encoding='utf-8') as fp:
with open('input/matrix.txt', 'r', encoding='utf-8') as fp:
matrix = fp.readlines()
except FileNotFoundError:
print('Error while opening file matrix.txt')