Corrected path for input file
This commit is contained in:
parent
d5fdd2a8fd
commit
9dd22abfe1
@ -42,7 +42,7 @@ function Problem59()
|
|||||||
values in the original text.
|
values in the original text.
|
||||||
=#
|
=#
|
||||||
|
|
||||||
file = "/datos/Scripts/Gitea/Project_Euler/src/files/Problem59.txt"
|
file = "../files/Problem59.txt"
|
||||||
data = readline(file)
|
data = readline(file)
|
||||||
data = parse.(Int, split(data, ","))
|
data = parse.(Int, split(data, ","))
|
||||||
# encrypted = readdlm(file, ',', Int)
|
# encrypted = readdlm(file, ',', Int)
|
||||||
|
@ -22,7 +22,7 @@ function Problem22()
|
|||||||
COLIN would obtain a score of 938 × 53 = 49714.
|
COLIN would obtain a score of 938 × 53 = 49714.
|
||||||
|
|
||||||
What is the total of all the name scores in the file? =#
|
What is the total of all the name scores in the file? =#
|
||||||
file = "/datos/Scripts/Gitea/Project_Euler/src/files/Problem22.txt"
|
file = "../files/Problem22.txt"
|
||||||
names = sort(readdlm(file, ',', String)[:])
|
names = sort(readdlm(file, ',', String)[:])
|
||||||
|
|
||||||
result = 0
|
result = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user