mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-12-01 00:41:09 +00:00
16 lines
348 B
Python
16 lines
348 B
Python
import sys
|
|
def main():
|
|
LargestProduct = -sys.maxsize-1
|
|
number=input().strip()
|
|
for i in range(len(number)-13):
|
|
product=1
|
|
for j in range(13):
|
|
product *= int(number[i+j])
|
|
if product > LargestProduct:
|
|
LargestProduct = product
|
|
print(LargestProduct)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|