MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / main

Function main

project_euler/problem_08/sol2.py:3–5  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1from functools import reduce
2
3def main():
4 number=input().strip()
5 print(max([reduce(lambda x,y: int(x)*int(y),number[i:i+13]) for i in range(len(number)-12)]))
6
7if __name__ == '__main__':
8 main()

Callers 1

sol2.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected