Corrected path for input file

This commit is contained in:
David Doblas Jiménez
2022-08-18 10:46:57 +02:00
parent ed8107e84c
commit d5fdd2a8fd
4 changed files with 17 additions and 12 deletions

View File

@@ -10,6 +10,7 @@ https://projecteuler.net/problem=13
"""
from pathlib import Path
from utils import timeit
@@ -19,7 +20,7 @@ def compute():
Work out the first ten digits of the sum of the following one-hundred
50-digit numbers.
"""
file = Path("/datos/Scripts/Gitea/Project_Euler/src/files/Problem13.txt")
file = Path("../files/Problem13.txt")
with open(file, "r") as f:
num = f.readlines()
result = 0
@@ -30,4 +31,4 @@ def compute():
if __name__ == "__main__":
print(f"Result for Problem 13: {compute()}")
print(f"Result for Problem 13: {compute()}")