Corrected path for input file
This commit is contained in:
@@ -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()}")
|
||||
|
||||
Reference in New Issue
Block a user