diff --git a/src/Python/Problems001-050/Problem013.py b/src/Python/Problems001-050/Problem013.py index 8696a60..1397a43 100644 --- a/src/Python/Problems001-050/Problem013.py +++ b/src/Python/Problems001-050/Problem013.py @@ -9,6 +9,7 @@ Solution for problem 13 of Project Euler https://projecteuler.net/problem=13 """ +from pathlib import Path from utils import timeit @@ -18,8 +19,8 @@ def compute(): Work out the first ten digits of the sum of the following one-hundred 50-digit numbers. """ - - with open("../files/Problem13.txt", "r") as f: + file = Path("/datos/Scripts/Gitea/Project_Euler/src/files/Problem13.txt") + with open(file, "r") as f: num = f.readlines() result = 0 for line in num: