Merge pull request #253 from shivg7706/master

Adding Problem_08
This commit is contained in:
Harshil 2018-02-27 20:31:25 +05:30 committed by GitHub
commit 5955f98de8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,15 @@
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()