Initial commit

This commit is contained in:
Kevin Keogh
2018-07-02 15:45:49 -04:00
parent 60b3954a3b
commit fd817f8811
28 changed files with 809 additions and 0 deletions

11
problem-40.py Normal file
View File

@@ -0,0 +1,11 @@
from functools import reduce
if __name__ == '__main__':
digits = [1, 10, 100, 1000, 10000, 100000, 1000000]
number = ''
for i in range(digits[-1]):
number += str(i)
results = [int(number[x]) for x in digits]
result = reduce(lambda x, y: x * y, results, 1)
print(result)