Skip to content

Commit 28ed7ba

Browse files
committed
Updated sol.py in project_euler TheAlgorithms#2695
Added problem_38 in project_euler TheAlgorithms#2695
1 parent 32ab189 commit 28ed7ba

File tree

1 file changed

+5
-2
lines changed
  • project_euler/problem_38

1 file changed

+5
-2
lines changed

Diff for: project_euler/problem_38/sol.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ def solution():
44
for a in range(1, 10**(9 // n)):
55
s = "".join(str(a * j) for j in range(1, n + 1))
66
randomv = "".join(sorted(s))
7-
if randomv == "123456789":
7+
if randomv == "123456789":
88
answer = max(s, answer)
9-
return answer
9+
print (answer)
10+
11+
if __name__ == "__main__":
12+
print(solution())

0 commit comments

Comments
 (0)