This commit is contained in:
David Doblas Jiménez 2021-10-06 17:46:51 +02:00
parent 5a03b3b133
commit 720668c101

View File

@ -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: