Fix path
This commit is contained in:
parent
5a03b3b133
commit
720668c101
@ -9,6 +9,7 @@ Solution for problem 13 of Project Euler
|
|||||||
https://projecteuler.net/problem=13
|
https://projecteuler.net/problem=13
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from pathlib import Path
|
||||||
from utils import timeit
|
from utils import timeit
|
||||||
|
|
||||||
|
|
||||||
@ -18,8 +19,8 @@ def compute():
|
|||||||
Work out the first ten digits of the sum of the following one-hundred
|
Work out the first ten digits of the sum of the following one-hundred
|
||||||
50-digit numbers.
|
50-digit numbers.
|
||||||
"""
|
"""
|
||||||
|
file = Path("/datos/Scripts/Gitea/Project_Euler/src/files/Problem13.txt")
|
||||||
with open("../files/Problem13.txt", "r") as f:
|
with open(file, "r") as f:
|
||||||
num = f.readlines()
|
num = f.readlines()
|
||||||
result = 0
|
result = 0
|
||||||
for line in num:
|
for line in num:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user