Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
arr = input().split()
def mult():
    if 0 in arr:
        print(0)
        return 0
    a = 1
    for i in arr:
        a = a * int(i)
    if a > 1000000000000000000:
        print(-1)
        return 0
    else: 
        print(a)
        return 0

mult()


Fixed submission:
n = int(input())
arr = input().split()


def mult():
    if "0" in arr:
        return 0
    else:
        a = 1
        for i in arr:
            a = a * int(i)
            if a > 1000000000000000000:
                return -1
        return a

print(mult())

Buggy python submission (verdict: Runtime Error):
n = int(input())
arr = input().split()
def mult():
	if 0 in arr:
  		print(0)
        return 0
    a = 1
    for i in arr:
      a = a * i
    if a > 1000000000000000000:
      print(-1)
      return 0
    else: 
      print(a)
      return 0

mult()

Fixed submission:
n = int(input())
arr = input().split()


def mult():
    if "0" in arr:
        return 0
    else:
        a = 1
        for i in arr:
            a = a * int(i)
            if a > 1000000000000000000:
                return -1
        return a

print(mult())

Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
arr = list(map(int, input().split()))
if 0 in arr: print(0)
else:
	count = 1
	for i in arr:
		count *= i
	if count > 1000000000000000000: count = -1
	print(count)


Fixed submission:
n = int(input())
arr = input().split()


def mult():
    if "0" in arr:
        return 0
    else:
        a = 1
        for i in arr:
            a = a * int(i)
            if a > 1000000000000000000:
                return -1
        return a

print(mult())

Buggy python submission (verdict: Runtime Error):
n = int(input())
arr = list(map(int, input().split()))
if 0 in arr: print(0)
else:
	prod = 1
	for i in arr:
		count *= i
	if count > 1000000000000000000: count = -1
	print(count)

Fixed submission:
n = int(input())
arr = input().split()


def mult():
    if "0" in arr:
        return 0
    else:
        a = 1
        for i in arr:
            a = a * int(i)
            if a > 1000000000000000000:
                return -1
        return a

print(mult())

Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())

arr = input().split()
count = 1
if "0" in arr:
  count = 0
else: 
  for i in arr:
    count *= int(i)
  if count > 1000000000000000000: count = -1
  
print(count)


Fixed submission:
n = int(input())
arr = input().split()


def mult():
    if "0" in arr:
        return 0
    else:
        a = 1
        for i in arr:
            a = a * int(i)
            if a > 1000000000000000000:
                return -1
        return a

print(mult())

Buggy python submission (verdict: Runtime Error):
n = int(input())

arr = input().split()
count = 1
if "0" in arr:
  count = 0
else: for i in arr:
        count *= int(i)
      if count > 1000000000000000000: count = -1
  
print(count)


Fixed submission:
n = int(input())
arr = input().split()


def mult():
    if "0" in arr:
        return 0
    else:
        a = 1
        for i in arr:
            a = a * int(i)
            if a > 1000000000000000000:
                return -1
        return a

print(mult())