Adopted new convention from template
This commit is contained in:
parent
963f6ad3b0
commit
fea1ad18e0
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python
|
||||
"""
|
||||
Created on 15 Sep 2018
|
||||
|
||||
@ -11,7 +11,7 @@ https://projecteuler.net/problem=18
|
||||
|
||||
from utils import timeit
|
||||
|
||||
triangle = [ # Mutable
|
||||
triangle = [
|
||||
[75],
|
||||
[95, 64],
|
||||
[17, 47, 82],
|
||||
@ -29,6 +29,7 @@ triangle = [ # Mutable
|
||||
[4, 62, 98, 27, 23, 9, 70, 98, 73, 93, 38, 53, 60, 4, 23],
|
||||
]
|
||||
|
||||
|
||||
@timeit("Problem 18")
|
||||
def compute():
|
||||
"""
|
||||
@ -52,5 +53,4 @@ def compute():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
print(f"Result for Problem 18: {compute()}")
|
||||
print(f"Result for Problem 18 is {compute()}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user