TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: Compute A \times B.

Submission attempts (in order):
def main():
  n = int(input())
  a = list(input().split())

  if 0 in a :
    print(0)
    return
    
  prod = 1
  for i in a:
    prod *= int(i)
    if prod >1000000000000000000:
      print(-1)
      return

  print(prod)

main()


print(A*B)

A=int(input("A"))
B=int(input("B"))
print(A*B)

a,b=(int(x) for x in input().split())
print(a*b)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):

n=input()
nums=list(map(int,input().split()))

ans = 1
over = 10**18

for num in nums:
    ans = ans * num
    if ans > over:
        print(-1)
        exit()

print(ans)


n=input()
nums=list(map(int,input().split()))

ans = 1
over = 10**18

for num in nums:
    if ans > over:
        print(-1)
        exit()
    ans = ans * num

print(ans)


import math

A,B=input().split()

# if isinstance(A,int):
#     A = int(A)
# else:
#     A = float(A)


if isinstance(B,int):
    B = int(B)
else:
    B = float(B)

print(math.floor(int(A)*B))

# 1000000000000000

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
import sys
A,B = map(int,input())
if not ( 1 <= A <= 100 and 1 <= B <= 100 ): sys.exit()

print(A*B)

import sys
A,B = map(int,input().split())
if not ( 1 <= A <= 100 and 1 <= B <= 100 ): sys.exit()

print(A*B)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a,b = input().split()
print(a*b)

a,b = map(int,input().split())
print(a*b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a,b=list(map(int,input().split()))
print(a,b)

a,b=list(map(int,input().split()))
print(a*b)

Verdicts: Wrong Answer

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a, b = input().split(' ')
print (a * b)

arr = input().split(' ')
a = int(arr[0])
b = int(arr[1])
print (a * b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
A,B = list(map(int,input().split())
           
print(A * B)

A,B = list(map(int,input().split()))
           
print(A * B)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
    a,b = int,input().split()
     
    c = float(b)
     
    x = a*c
     
    print(math.floor(x))

A, B = map(int,input().split())

x = A*B

print(x)


Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a, b = map(int, input().split)
print(a*b)

a, b = map(int, input().split())
print(a*b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
A, B = map(int, input().split)
print(A*B)

A, B = map(int, input().split())
print(A*B)


Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N = int(input())
As = map(int, input().split())
result = 1
 
for a in As:
  result *= a
 
if a >= 10**18:
  print(-1)
else:
  print(result)

nums = input().split()
print(nums[0] * nums[1])

nums = input().split()
print(nums[0], nums[1])

N = int(input())
As = map(int, input().split())
result = 1
 
for a in As:
  result = result * a
 
if a >= 10**18:
  print(-1)
else:
  print(result)

import math

nums = list(map(float, input().split()))
print(math.floor(nums[0] * nums[1]))

Verdicts: Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
import sys

N = int(input())
nums = list(map(int, input().split(' ')))

output = 1

if 0 in nums:
  print(0)
  sys.exit()
  
else:
  for x in nums:
    output *= x

    if output > 10**18:
      print(-1)
      sys.exit()

  print(output)

import sys

N = int(input())
nums = list(map(int, input().split(' ')))

output = 1

if 0 in nums:
  print(0)
  sys.exit()
  
else:
  for x in nums:
    output *= x

    if output > 10**18:
      print('-1')
      sys.exit()

  print(output)

N = int(input())
M = int(input())

print(N*M)

import math

A, B = map(float, input().split(' '))

if A*B > 0:
  print(math.floor(A*B))
else:
  print(int(A*B))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a,b = input().split()

a = int(a)

b1,b2 = map(int, b.split('.'))
b = b1*100 + b2

ans = (a*b)//100

print(int(ans))

a,b = map(int, input().split())

print(a*b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a=int(input())
b=int(input())
print(a*b)

a=int(input())
b=int(input())
ans=a*b
print(ans)

n=input().split()
a=int(n[0])
b=int(n[1])
ans=a*b
print(ans)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a,b = map(int(input().split())
print(a*b)


a,b = map(int,input().split())
print(a*b)


Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a,b=map(int, input(),split)
print(a*b)

a,b=map(int,input().split())
print(int(a)*int(b))

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N = int(input())
A = list(map(int, input().split()))
ans = int(1)
for number in A:
  ans *= number
if ans <= 1000000000000000000:
  print(int(ans))  
else:
  print('-1')

N = int(input())
A = list(map(int, input().split()))
ans = 1
for number in A:
  ans *= number
if ans <= 1000000000000000000:
  print(ans)
else:
  print('-1')

A, B = list(map(int, input().split()))
print(A*B)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
A, B = map(int, input().split())
print(A+B)

A, B = map(int, input().split())
print(A * B)

Verdicts: Wrong Answer

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a, b = map(int,input().split())
print(a + b)

n = int(input())
s = list(map(int,input().split()))
if 0 in s:
  print(0)
  exit()
for _ in range(n):
  ans *= s[_]
  if ans > 10**18:
    print(-1)
    exit()
else:
  print(ans)


a, b = map(int,input().split()) 
    ...: print(a * b)     

a, b = map(int,input().split()) 
print(a * b)   

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
A = int(input())
B = int (input())
print(A * B)

A, B = map(int, input().split())
print(A * B)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
n,m=int(input().split())
print(n*m)

n,m=input().split()
print(int(n)*int(m))

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
ab= int,input().split()
print(ab[0]*ab[1])


a,b = int,input().split()
print(a*b)

a,b = map(int,input().split())
print(a*b)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
def main ():
N = int(input())
A = list(map(int,input().split()))
if 0 in A: print (0)
return
prod = 1 for a in A:
prod *= a
if prod > 1000000000000000000:
print(-1) return
print(prod) main ()

A = input() B = input()
C = A *B
print(C)

A,B = map(float,input().split())
print(int(((A)*100(B)*100))/10000)

N = input()
A = list(map(int, input().split()))
import numpy as np
X = np.prod(A)
if X < 10**18 :
    print(X)
else :
    print('-1')

N = input()
A = list(map(int, input().split()))
import numpy as np
X = np.prod(A)
if X <= 10**18 :
    print(X)
else :
    print('-1')


a , b = input() . split()
c = int(a) *int(b)
print(c)


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
import math as m
a,b=list(map(float,input().split()))
print(m.floor(a*(b*10**5)/10**5)

import math as m
a,b=list(map(float,input().split()))
print(m.floor(a*(b*10**5)/10**5))

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N = int(input())
A = map(int, input().split())

r, pow = 1, 10 ** 18
for num in A:
  r *= num
  if r == 0:
    break
print(-1 if r > pow else r)


a, b = map(int, raw_input().split())
print(a * b)


a, b = map(int, input().split())
print(a * b)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
A, B = map(int, input().split())
return A*B


A, B = map(int, input().split())
print(A*B)


Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
A,B = map(int.input(),split())
print(A * B)

a,b = map(int,input().split())
print(a*b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
A, B = input.split()
A = int(A)
B = int(B*100)
print(int(A*B/100))

A, B = input().split()
A = int(A)
B = int(float(B)*100)
print(int(A*B/100))

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N = int(input())
A = [int(x) for x in input().split(" ")]
result = 1
for idx in A:
	result *= idx
if result <= 10**18:
	print(result)
else:
 	print(-1)

N = int(input())
A = [int(x) for x in input().split()]

result = 1
for idx in A:
  result *= idx
  
if result >= 10**18:
  print("-1")
else:
  print(result)

N = int(input())
A = [int(x) for x in input(" ").split()]
 
result = 1
for idx in A:
    result *= idx
if result <= 10**18:
	print(result)
else:
 	print("-1")

data = input().split(" ")
a ,b= int(data[0]) , int(data[1])
print(a*b)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N = int(input())
A = list(map(int, input().split()))
i=1
while A[0]<=10**18 and i<=N-1:
   A[0]*=A[i]
   i+=1
if A[0]>10**18:
   A[0]=-1
print(A[0])


a, b = map(int, input().split())
print(a*b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N = int(input())
A = input().split()
for i in range(len(A)):
    A[i] = int(A[i])
A.sort()

answer = A[0]
overl = False

for i in range(N-1):
    answer *= A[i+1]
    if answer > 10**18:
        overl = True
        break

if overl:
    print("-1")
else:
    print(answer)

S = input().split()

A = int(S[0])
B = int(S[1])

print(A*B)  

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a=int(input())
b=int(input())
PCM_Multiply=a*b
print(PCM_Multiply)

a=int(input())
b=int(input())
num=a*b 
print(num)

lst=[int (x) for x in input().split(' ')]
print(lst[0]*lst[1])


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
import sys

args = sys.argv
print(int(args[1])*int(args[2]))

import sys
args = sys.argv
x=args[1]
y=args[2]
print(x*y)

L, R = input().split()
print(int(L)*int(R))

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a,b = mao(int,input().split())
print(a*b)

a,b = map(int,input().split())
print(a*b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N = int(input())
 
pn=[2];A=100000
for L in range(3,A):
    chk=True
    for L2 in pn:
        if L%L2 == 0:chk=False
    if chk==True:pn.append(L)
        
A246655 = []
for p in pn:
    pe = p
    while pe < A:
        A246655.append(pe)
        pe *= p
A246655 = sorted(A246655)
 
c=0
for i in range(len(A246655)):
    if N%A246655[i]==0:
        N = N//A246655[i]
        c+=1
print(c)

A, B = map(int, input().split())
print(A*B)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N = int(input())
A = list(map(int, input().split()))
if 0 in A:
    print(0)
    exit(0)
ans = 1
for i in A:
    ans = ans * i
    if ans > pow(10, 18):
        print(-1)
        exit(0)
else:
    print(ans)

N = int(input())
A = list(map(int, input().split()))
ans = 1
if 0 in A:
	print(0)
	exit()
for i in A:
	ans = ans * i
	if ans > pow(10, 18):
		print(-1)
		exit()
else:
	print(ans)

N = int(input())
A = list(map(int, input().split()))
ans = 1
if 0 in A:
  print(0)
  exit()
for i in A:
  ans = ans * i
  if ans > pow(10, 18):
    print(-1)
    exit()
else:
  print(ans)


a,b = map(int,input().split())
print(a*b)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a, b = map(int, input().ssplit())
print(a * b)


a, b = map(int, input().split())
print(a * b)


Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
A,B = map(int, input().split())

answer = A * B
print('answer')

A, B = map(int, input().split())

answer = A * B

print(answer)


Verdicts: Wrong Answer

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a = int(input())
b = int(input())
print(a * b)

a = input().split()
print(int(a[0]) * int(a[1]))

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
print(A * B)

A, B = map(int, input().split())
print(A * B)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
num1 = int(input())
num2 = int(input())
seki = num1 * num2
print(seki)

a, b = map(int, input(). split())
print(a*b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
import math
a = input().split()
c = float(a[0])*float(a[1])
d = c // 1
print(d)

a,b = map(int,input().split())
c = a*b
print(c)

Verdicts: Wrong Answer

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a, b = map(int, input())
print(a*b)

a, b = input().split()

print(int(a) * int(b))

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a=input().split()
print(int(a[0]),int(a[1]))

a=input().split()
print(int(a[0])*int(a[1]))


Verdicts: Wrong Answer

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N = int(input())
arr = list(map(int,input().split()))
arr = sorted(arr,reverse=True)
ans = 1
idx = 0
for a in arr:
  ans *= a
  if ans > 10**18:
    print(-1)
    exit()
print(ans)

a,b = map(int,input().split())
print(a*b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
input()
int_list = list(map(int, input().split()))
max_num = 10**18
ans = 1

if 0 in int_list:
  print(0)
  exit()
  
for i in int_list:
    ans *= i
    if ans > max_num:
            print(-1)
        break
else:
    print(ans)


def factorization(n):
    arr = []
    for i in range(2, int(-(-n**0.5//1))+1):
        if n%i==0:
            cnt=0
            while n%i==0:
                cnt+=1
                n //= i
            arr.append([i, cnt])

    if n != 1:
        arr.append([n, 1])

    return arr
N = int(input())
ans = 0
if N != 1:
    fact_list = factorization(N)
    for _, i in fact_list:
        j = 1
        while i >= j:
            ans += 1
            i = i - j
            j += 1
            
print(ans)


A, B = map(float, input().split())
i = (int(A)*int(B*100))//100
print(i)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a,b = map(int,int().input())
print(a * b)

#169A


a,b = map(int, input().split())
print(a,b)

answer = a * b


print(answer)

a,b = map(int,input().split())
print(a * b)

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N = int(input())
primeNum = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997, 1009, 1013, 1019, 1021, 1031, 1033, 1039, 1049, 1051, 1061, 1063, 1069, 1087, 1091, 1093, 1097, 1103, 1109, 1117, 1123, 1129, 1151, 1153, 1163, 1171, 1181, 1187, 1193, 1201, 1213, 1217, 1223, 1229, 1231, 1237, 1249, 1259, 1277, 1279, 1283, 1289, 1291, 1297, 1301, 1303, 1307, 1319, 1321, 1327, 1361, 1367, 1373, 1381, 1399, 1409, 1423, 1427, 1429, 1433, 1439, 1447, 1451, 1453, 1459, 1471, 1481, 1483, 1487, 1489, 1493, 1499, 1511, 1523, 1531, 1543, 1549, 1553, 1559, 1567, 1571, 1579, 1583, 1597, 1601, 1607, 1609, 1613, 1619, 1621, 1627, 1637, 1657, 1663, 1667, 1669, 1693, 1697, 1699, 1709, 1721, 1723, 1733, 1741, 1747, 1753, 1759, 1777, 1783, 1787, 1789, 1801, 1811, 1823, 1831, 1847, 1861, 1867, 1871, 1873, 1877, 1879, 1889, 1901, 1907, 1913, 1931, 1933, 1949, 1951, 1973, 1979, 1987, 1993, 1997, 1999]

pow = 1
time = 0
while True:
    for p in primeNum:
        z = p**pow
        if p <= N:
            if N % z == 0:
                N = int(N / (z))
                time+=1
        else:
            break
    pow+=1
    if pow >= N:
        break

print(time)


A,B = input().split()
print(int(A)*int(B))

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
def product(a,b):
    return a*b
    
a=int(input())
b=int(input())
print(product(a,b))

def product(a,b):
    return a*b
    
a,b=map(int,input().split())
print(product(a,b))

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a,b=map(int,input()split())
c=a*b
print(c)

a,b=map(int,input().split())
c=a*b
print(c)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
n = int(input())
a = list(map(int, input().split()))
result = 1
checker =False
for j in a:
  if j > 1000000000000000000:
    result = -1
    checker =True
if 0 in a:
  result = 0
  checker=True
import numpy as np
while checker==False:
  #import numpy as np
  a = np.array(a)
  result = int(a.prod())
  checker = True
    

if result <= 1000000000000000000:
  print(result)
else:
  print(-1)


a, b = map(int, input().split())

print(a*b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
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
            else: continue
        return a

print(mult())


arr = input().split()

print(int(arr[0]) * int(arr[1]))

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):

print(2 *10)


A,B = input("計算したい2つの数字をスペース刻みで入力してください。").split()


result = int(A) * int(B)


print(result)


int A;
int B;


print(A * B)


A,B = map(int, input().split())


result = A * B


print(result)

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N =int(input())
A = list(map(int, input().split()))
 
for a in A:
    ans *= a
    if ans > 10**18:
        print(-1)
        exit()
print(ans)

N =int(input())
A = list(map(int, input().split()))
ans = 1
for a in A:
    ans *= a
    if ans > 10**18:
        print(-1)
        exit()
print(ans)

ans = A * B
print(ans)

a = input()
b = input()
printint(a * b)

a = int(input())
b = int(input())
print(a * b)

ans = a * b
print(ans)

a = input()
b = input()
print(int(a * b))

a = int(input())
b = int(input())
print(str(a * b))

a,b=map(int,input().split())
print(a*b)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a = int(input())
b = int(input())
print(a*b)

a.b=map(int,input().split())
print(a*b)

a,b=map(int,input().split())
print(a*b)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a, b =	input().split()
a = int(a)
b = b.replace(".", "")
b = int(b)
print(a * b // 100)

A, B = map(int,input().split())
print(A*B)


Verdicts: Wrong Answer

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
from collections import Counter

def prime_factor(num):
  factor_list = []
  while num % 2 == 0:
    factor_list.append(2)
    num /= 2
  f = 3
  while f * f <= num:
    if num % f == 0:
      factor_list.append(f)
      num /= f
    else:
      f += 2
  if num!=1:
    factor_list.append(num)
  return factor_list

def get_count(c):
  ans = 0
  _max = c
  for i in range(1,c+1):
    if i <= _max:
      ans += 1
      _max -= i
    else:
      break
  return ans
a = int(input())
counter = Counter(prime_factor(a))
ans = 0
for i in counter:
  ans += get_count(counter[i])
print(ans)

a,b = map(int,input().split())
print(a*b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
n = int(input())
t = list(map(int, input().strip().split()))

r = 1
for tt in t:
    r *= tt

rr = r - 10**18
if rr > 0:
    print(-1)
else:
    print(r)

a,b = map(int, input().split())

print(a * b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):

N = int(input())
A = list(map(int,input(). split ()))
  
if 0 in A:
  print(0)
  return
  
prod = 1
for a in A:
  prod *= a
  if prod > 1000000000000000000:
    print(-1)
    return
    
print(prod)
  



s,w = map(int,input().split)
print(s)

if s<=w:
  print('unsafe')
else:
  print('safe')

n = int(input())
x = input().split()
a = 0
b = 1
while 2 * a <= n - 1 :
  b = b * int(x[a]) * int(x[n-1-a])
  a += 1
if b <= 1000000000000000000:
  print(b)
else:
  print(-1)


a,b=map(int,input().split())
print(a*b)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a = input()
b = input()

A = int(a)
B = int(b)

val = A * B

print(val)


a = input()
b = input()

print(a * b)

nums = input().split()

A = int(nums[0])
B = int(nums[1])

val = A * B

print(val)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a,b,c,d = map(int,input(). split ())
print(a*b)

int a=input()
int b=input()

print(a*b)

a,b = map(int,input(). split ())
print(a*b)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
A = int(input())
B = int(input())

X =A*B
print(X)

A,B = map(int,input().split())
print(A * B)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
n = int(input())
a = list(map(int, input().split()))
a.sort(reverse = True)
res = 1
check = 10**18
if 0 in a:
    print(0)
else:
    for i in range(n):
        res *= a[i]
        if res > check:
            res = -1
            break
    print(res)

a, b = map(int, input().split())
print(a * b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
import bisect
from collections import defaultdict as dd

def factorize(n):
    b = 2
    fct = []

    while b * b <= n:
        while n % b == 0:
            n //= b
            fct.append(b)
        b += 1
    
    if n > 1:
        fct.append(n)
    
    return fct

N = int(input())
f = factorize(N)
dic = dd(int)

for val in f:
    if val != 1:
        dic[val] += 1
res = 0

ls = [1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66]

for val in dic.values():
    tmp = bisect.bisect_right(ls, val)
    res += tmp

print(res)

a,b = map(int, input().split())
print(a*b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
import numpy as np
from numpy.compat import long

n = int(input())
a = list(map(long ,input().split()))
p = np.prod(a)

if len(str(p))>=19:
    print("-1")
else:
    print(p)

import numpy as np

n = int(input())
a = list(map(int ,input().split()))
p = np.prod(a)
if len(p)>=19:
    print(-1)
else:
    print(p)

a,b = map(int ,input().split())
print(a*b)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a,b=map(float ,input().split())
print(a*b)

a,b=map(int ,input().split())
print(a*b)

Verdicts: Wrong Answer

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
num = int(input())
numbers = list(map(int,input().split()))
sum = 1
for i in range(num):
  sum *=numbers[i]
  if (sum>(10**18)):
    sum = -1
    break
if 0 in numbers:
  sum = 0
print (sum)

a,b = map(int,input().split())
print (a*b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
import numpy as np
N = int(input())
A = list(map(int,input().split()))
a = np.prod(A)
if a > 10**18:
  print(-1)
else:
  print(a)

A, B = map(int,input().split())
print(A*B)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
A, B = [int(i) for i in input()]
print(A*B)


A, B = [int(i) for i in input().split()]
print(A*B)


Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a,b=input().split()
print(a*b)

a,b=input().split()
a=int(a)
b=int(b)
print(a*b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a1 = int(input())
b2 = input().split(" ")

def check(a , b):
  score = 1
  if '0' in b:
    return 0
  else:
    for i in range(a):
      score *= int(b[i])
      if score > 10 ** 18:
        return print(-1)
    return print(score)

check(a1 , b2)

a1 = int(input())
b2 = input().split(" ")

def check(a , b):
  score = 1
  now = 10 ** 18
  if '0' in b:
    return print(0)
  else:
    for i in range(a):
      score *= int(b[i])
      if score > 10 ** 18:
        return print(-1)
    
    return print(score)

check(a1 , b2)

list = input().split(" ")

a = int(list[0])
b = int(list[1])

print(a * b)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
import math
n = int(input())

count = 0

def sosu(n,z):
    for i in range(z, int(math.sqrt(n))+1):
        if n%i == 0:
            return i
            break
    return -1

if sosu(n,2) == -1 and n != 1:
    print(1)
    exit()

ans  = 0
z = 2

def hantei(n):
    i = sosu(n,2)
    s = 0
    if sosu(n,2) == -1:
        return True
    if sosu(n,2) > 0:
        s = n ** (1/i)
        if int(s) == math.floor(s):
            #print(n,s)
            return True
        else:
            return False

memo = []

while(n != 1) :
    ans = sosu(n,z)
    print(n,ans,z)
    if ans == -1:
        if memo.count(n) == 0 and hantei(n):
            count +=1
            break
        else:
            break

    if hantei(ans) :
        memo.append(ans)
        z = ans+1
        n = n//ans
        count += 1
    else:
        z = ans +1
    #print(count)



print(count)


import math
n = int(input())

count = 0

def sosu(n,z):
    for i in range(z, int(math.sqrt(n))+1):
        if n%i == 0:
            return i
            break
    return -1

if sosu(n,2) == -1 and n != 1:
    print(1)
    exit()

ans  = 0
z = 2

def hantei(n):
    i = sosu(n,2)
    s = 0
    if sosu(n,2) == -1:
        return True
    if sosu(n,2) > 0:
        s = n ** (1/i)
        if int(s) == math.floor(s):
            print(n,s)
            return True
        else:
            return False

memo = []

while(n != 1) :
    ans = sosu(n,z)
    print(n,ans,z)
    if ans == -1:
        if memo.count(n) == 0 and hantei(n):
            count +=1
            break
        else:
            break

    if hantei(ans) :
        memo.append(ans)
        z = ans+1
        n = n//ans
        count += 1
    else:
        z = ans +1
    #print(count)



print(count)


n, m = map(int,input().split())
print(n*m)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N = int(input())
MX = 10**18
a = list(map(int, input.split()))
if 0 in a:
    print(0)
    exit(0)
ans = 1
for x in a:
    ans *= x
    if ans > MX:
        print(0)
        exit(0)
print(ans)

A, B = list(map(int, input().split()))
print(A * B)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
def kai():
    N=int(input())
    A=list(map(int,input().split()))
    
    if  0 in A:
        print(0)
        return
    
    ans=1
    for i in A:
        ans*=i
        if ans>10**18:
            print(-1)
            rerurn
    print(ans)
    return
kai()

def kai():
    N=int(input())
    A=list(map(int,input().split()))
    
    if  0 in A:
        print(0)
        return
    
    ans=1
    for i in A:
        ans*=i
        if ans>10**18:
            print(-1)
            return
    print(ans)
    return
kai()

A,B=map(int,input().split())
print(A*B)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a = int(input())
b = int(input())
print(a*b)

a = int(input())
b = int(input())
if int(a), int(b) in range(1, 100):
    print(a*b)

a, b = int(input()), int(input())
print(a*b)

a = int(input())
b = int(input())
print(int(a*b))

a, b = map(int, input().split())
print(int(a*b))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a,b=input().split()
print(a*b)

a,b=input().split()
print(int(a)*int(b))

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a,b = map(int,inout().split())
print(a*b)

import numpy
n = int(input())

#     m = int(input())

# op = 1
p = list(map(int,input().split()))

#     op = op*i
op = numpy.prod(p)
if op > 10**18:
    print(-1)
else:
    print(op)

a,b = map(int,input().split())
print(a*b)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
n=int(input())
p=1
a=list(map(int,input().split()))

for i in range(n):
    p=p*a[i]
    
if p<= 10**18:
    print(p)
    
else:
    print(-1)

n=int(input())
p=1
a=list(map(int,input().split()))

for i in a :
    p = p * i
    
if p<= 10**18:
    print(p)
else:
    print(-1)

a,b=map(int,input().split())

c=a*b
print(c)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
A, B = int(input().split())
print(A, B)

A, B = map(int, input().split())
print(A, B)

A, B = list(map(int, input().split()))
print(A, B)

print(A * B)

A, B = list(map(int, input().split()))
print(A*B)

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
n, k = map(int, input().split())
s = input()

part1 = s[:k - 1]
part2 = s[k - 1].lower()
part3 = s[k:]

print(f'{part1}{part2}{part3}')


a, b = map(int, input().split())

answer = a * b

print(answer)


Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a,b=int(input()).split()

result = a * b
print(result)

a,b=int(input()).split()

result = a * c
print(result)

a,b=(int(x) for x in input().split())

result = a * b
print(result)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
print(int(eval(input()) * eval(input()))

a, b = map(int, input().split())
print(int(a*b))

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
from sys import stdin
from functools import reduce 


inputs = [list(map(int, input().split())) for _ in range(2)]
inputs = inputs[1]

if (0 in inputs):
  output = 0
else:
  output = reduce((lambda x, y: -1 if (x * y) > 1e18 or x < 0 or y < 0  else (x * y)), inputs)

print(output)

from sys import stdin
from functools import reduce 


inputs = [list(map(int, input().split())) for _ in range(2)]
inputs = inputs[1]

if (0 in inputs):
  output = 0
else:
  output = reduce((lambda x, y: -1 if (x * y) > 1e18 or x < 0 or y < 0  else (x * y)), inputs)

print(output)

from sys import stdin


inputs = [int(x) for x in stdin.readline().rstrip().split()]

# output = input[0] * input[1]
print(inputs[0] * inputs[1])

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
n = input()
answer = 1
for i in range(int(n)):
    a = int(input())
    answer = answer * a
    if answer > 10**18:
        print("-1")
    else:
        print(answer)

n = input()
for i in range(n-1):
    a = raw_input().split()
    n *= 1
    print(n)

a = int(input())
b = int(input())

print(a * b)

import math
import numpy as np

n = input()
answer = 1
for i in range(int(n)):
    a = int(input())
    answer = answer * a
    if answer > 10**18:
        print("-1")
    else:
        print(answer)

n = input()
answer = 1
for i in range(int(n)):
    a = int(input())
    answer = answer * a
    if answer > 10**18:
        print("-1")
        break
print(answer)

import math
import sys

a,b = input().split()
k = int(a) * int(float(b))
answer = math.floor(k)
print(answer)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
A = int(input())
B = int(input())
print(A*B)


A, B = map(int, input().split())
print(A*B)


Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N = int(input())
p = [int(i) for i in input().split()]
ans = 1

if 0 in p:
  print(0)
  exit()
  
for i in range(n):
  ans*=p[i]
  
if ans > 10 ** 18:
  print(-1)
  exit()
  
print(ans)

A,B = map(int,input().split())
print(A*B)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a,b=map(int,input().split()
print(a*b)

a,b=map(int,input().split())
print(a*b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a, b = int(input().split())
print(a*b)

a, b = map(int,input().split())
print(a*b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N = int(input())
A = list(map(int,input().split()))

def f(A):
    for a in A:
        if a == 0:
            print(0)
            return
    v = 1
    for a in A:
        v *= a
        if v > int(1e+18):
            print(-1)
            return
    print(v)
    return

f(A)

A,B = list(map(int,input().split()))
print(A*B)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
import math
 
n=int(input())
ls=[int(s) for s in input().split(" ")]
 
if 0 in ls:
  print(0)
else:
  num=0
  for i in ls:
    num+=math.log10(i)
 
  if num <= 18:
    print(int(round(10**num,5)))
  else:
    print(-1)


a,b=input().split()
print(a*b)

a,b=input().split()
print(a*b)

a, b = map(int, input().split())
print(a*b)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
import numpy

N = int(input())
A = list(map(int, input().split()))

val = numpy.prod(A)

if val > 10**18:
    print('-1')
else:
    print(val)


import fractions
import math

A, B = map(fractions.Fraction, input().split())

print(int(math.floor(A*B)))


Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N = int(input()) 
s_char = list(input().split())
s = [int(n) for n in s_char]
ans = 1

for num in s:
    if len(str(ans))+len(str(num))>20:
        #print('e')
        ans = -1
        break
    ans *= num
    if ans > 10**18:
        ans = -1
        break

for num in s:
    if num == 0:
        ans = 0
        
print(ans)

import math

s = input().split()
 
num = int(s[0])
 
#num
 
num2 = float(s[1])
 
#num2
ans = num*num2

f, i = math.modf(ans)

print(i)

N = int(input()) 
s_char = list(input().split())
s = [int(n) for n in s_char]
ans = 1

for num in s:
    if len(str(ans))+len(str(num))>20:
        #print('e')
        ans = -1
        break
    ans *= num
    if ans > 10**18:
        ans = -1
        break

for num in s:
    if num ==0:
        ans =0
        
print(ans)

import math
 
s = input().split()
 
num = int(s[0])
 
#num
 
num2 = float(s[1])
 
#num2
ans = num*num2
 
f, i = math.modf(ans)

print(int(i))

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a = int(input())
b = int(input())
print(a * b)

a,b=input().split()
print(int(a) * int(b))

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a,b = map(int, input.split())

print(a * b)

a,b = map(int, input().split())

print(a * b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a = int(input())
b = [int(x) for x in input().split()]
summ = 1
for i in range(a):
    summ*=b[i]
    if(summ>1000000000000000000):
        summ=-1
        break
print(summ)

b = [int(x) for x in input().split()]
print(b[0]*b[1])

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a,b=map(int,input().split()))
print(a*b)


a,b=map(int,input().split())
print(a*b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a = int(input())
b = int(input())
print(a*b)

a = input()
b = input() 
print(a*b)

a, b = [int(i) for i in input().split()]
print(a*b)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
from math import floor as f

a, b = map(int, input().split())

print(a * b)

Verdicts: Wrong Answer

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a,b = int(input().split())

print(a*b)

a = list(map(int, input().split()))
 
print(a[0]*a[1])

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N=int(input())
A=list(map(int,input().split()))
ans=1
for i in range(N):
  ans*=i
if ans > 10**18:
  print(-1)
else:
  print(ans)

A,B=map(int,input().split())
print(A* B)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N = int(input())
A = list(map(int, input().split()))
r=1
for n in A:
    r=r*n
    if r==0:
        print(0)
    elif r>10**18:
        print(-1)
    else:
        print(r)

N = int(input())
A = list(map(int, input().split()))
r=1
if 0 in A:
    r=0
for n in A:
    r=r*n
    if r>10**18:
        r=-1
        break
print(r)

N = int(input())
A = list(map(int, input().split()))
r=1
for n in A:
    r=r*n
print(-1 if r>10**18 else r)

A,B = input().split()
print(int(A)*int(float(B)*100)//100)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
i = list(map(int, input().split()))
C = i[0]*i[1]
print(c)

import sys
input = sys.stdin.readline
c = int(1)
N = int(input())
A = [int(x) for x in input().split()]
for k in range(N):
    c*=A[k]
if c>10**18:
    print(-1)
else:
    print(c)

i = list(map(int, input().split())) 
c = i[0]*i[1]
print(c)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
A, B = map(int, input())
print(A * B)

A, B = map(int, input().split())
print(A * B)


Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
lenght = int(input())

x = list(map(int,input().split()))

for i in range(lenght-1):
  x[i+1] = x[i] * x[i+1]
if x[-1] > 1e18:
  x[-1] = -1
print(x[-1])

x = list(map(int,input().split()))
result = x[0]*x[1]
print(result)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
A*B

# -*- coding: utf-8 -*-

A = int(input())
B = int(input())

print(A*B)

print(A*B)

A,B = map(int, input().split())

print(A*B)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N=int(input())
P=[list(map(int,input().split()))]
from functools import reduce
from operator import add, mul
result =reduce(mul, P[0])

if result>10**18:
    print(-1)
else:
    print(result)


N=int(input())
P=[list(map(int,input().split()))]
import numpy
Q=numpy.array(P)
result =numpy.prod(Q[0])

if result>10**18:
    print(-1)
else:
    print(result)


N=int(input())
A=list(map(int,input().split()))
A.sort()
B=1
for i in A:
  B=i*B
  if(B>10**18):
    B=-1
    break
print(B)

N=int(input())
P=[list(map(int,input().split()))]
import numpy
P=numpy.array(P)
result =numpy.prod(P[0])

if result>10**18:
    print(-1)
else:
    print(int(result))


N=int(input())
P=list(map(int,input().split()))
import numpy
Q=numpy.array(P)
 
result =numpy.prod(Q)
 
if result>pow(10, 18):
    print('-1')
else:
    print(str(result))

a,b=map(int,input().split())
print(a*b)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
print(int(input()) * int(input()))

A, B = [int(v) for v in input().split()]
print(A * B)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
n = int(input())
a = list(map(int,input().split()))
c = 1

for i in range(len(a)):
    c = c * a[i]

if c > pow(10,18):
    print(-1)
else:
    print(c)

a,b = map(int,input().split())
print(a * b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N=int(input())
def factorization(n):
    arr = []
    temp = n
    for i in range(2, int(-(-n**0.5//1))+1):
        if temp%i==0:
            cnt=0
            while temp%i==0:
                cnt+=1
                temp //= i
            arr.append([i, cnt])

    if temp!=1:
        arr.append([temp, 1])

    if arr==[]:
        arr.append([n, 1])

    return arr
a=0
T=factorization(N)
l=len(T)
for i in range(l):
    if T[i][1]<3:
        a+=1

    elif T[i][1]<6:
        a+=2
    elif T[i][1]<10:
        a+=3
    elif T[i][1]<15:
        a+=4
    elif T[i][1]<21:
        a+=5
    elif T[i][1]<28:
        a+=6
    elif T[i][1]<36:
        a+=7
    elif T[i][1]<45:
        a+=8
    elif T[i][1]<55:
        a+=9
    elif T[i][1]<66:
        a+=10
print(a)
  


A,B=map(int,input().split())
print(A*B)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
nums = input().split()
print(float(num[0]) * float(num[1]))


nums = input().split()
print(int(num[0]) * int(num[1]))


nums = list(map(int, input().split()))

print(nums[0] * nums[1])


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
n=int(input())
a=list(map(int,input().split()))
def f():
  if 0 in a:
    print(0)
  else:
    b=1
    for i in range(0,n):
      b*=a[i]

      if b>10**8:
        print(-1)
        exit()
   
    print(b)

f()

n=int(input())
a=list(map(int,input().split()))
def main():
  if 0 in a:
    print(0)
  else:
  b=1
  for i in range(0,n):
    b*=a[i]

  if b<=10**8:
    print(b)
  else: print(-1)

a,b=map(int,input().split())
print(a*b)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a,b=int(input().split())
print(a*b)

a,b=input().split()
print(int(a)*int(b))


Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N = int(input())
A = list(map(float,input().split()))


for i in range(N):
 if(i == 0): ans = A[i]
 else: ans = ans*A[i]
  
ans = '{:.19g}'.format(ans)  
if((len(ans)>=2)and(ans[1] == 'e')):
  print('-1')
else:
  print(ans)
    

a,b = map(int,input().split())
print(a*b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
x = int(input())
y = int(input())
print(x*y)

x = input()
y = input()
a = int(x)
b = int(y)
print(a*b)

def main():
    n = int(input())
    a = list(map(int,input().split()))
    x = 1
    if 0 in a:
        print(0)
        return
    for i in a:
        x *= i
        if x > 1000000000000000000:
            print(-1)
            return
    print(x)
main()

x = input()
y = input()
return x * y

x = input()
y = input(
print(x*y)

def main():
  	from decimal import Decimal
    a,b = map(decimal,input().split())
    print(int(a*b))
    return
main()

def main():
    a,b = map(float,input().split())
    x = a*b
    y = x%1
    z = int(x-y)
    if x-y-z > z+1-(x-y):
        print(z+1)
        return
    else:
        print(z)
        return
main()

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
def main ():
    N = int(input())
    A = list(map(int,input(). split ()))
    if 0 in A:
        print(0)
        return
    prod = 1
    for a in A:
        prod *= a
        if prod > 1000000000000000000:
            print(-1)
            return
    print(prod)
main ()


A,B=map(int,input().split())
print(A*B)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
n = int(input())
values = input().split()

mult = 1
for i in range(len(values)):
  mult *= int(values[i])
  
if mult > 10**18:
  print(-1)
else:
  print(mult)


val_1 = input()
nums = val_1.split()
mult = int(nums[0]) * int(nums[1])
print(mult)


Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N = int(input())
A = list(map(int,input().split()))

ans = 1
for a in A:
    ans *= a
    if ans == 0:
        break
    elif ans > 10**18:
        ans = -1
        break

print(ans)

A, B = map(int,input().split())
print(A*B)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
input_number = int(input())
int_list = list(map(int, input().split()))

check = 10 ** 18
ans = int_list[0]
for i in int_list[1:]:
    ans = ans * i

    if ans > check:
        ans = -1
        break

for i in int_list:
    if i == 0:
        ans = 0
        break

print(ans)


int_list = list(map(int, input().split()))
print(int_list[0] * int_list[1])


Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
str_n = input()
str_an = input()

n = int(str_n)
an = [int(ai) for ai in str_an.split()]

ans = 1
for ai in an:
  ans *= ai

if ans > 1e8:
  ans = -1
  
print(ans)


from decimal import Decimal
a, b = input().split()
a = int(a)
b = float(b)

print(int(Decimal(a*b)))


Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
s=int(input())
n,m=int(s[0]),int(s[1])
print(n*m)

s=input().split()
n,m=int(s[0]),int(s[1])
print(n*m)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
print(input()*input())

a,b = map(int,input().split())
print(a*b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
x, y = input().split()
print(x * y)


x, y = map(int, input().split())
print(x * y)


Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
A,B = map(int, input.split())
print(A*B)

A,B = map(int, input().split())
print(A*B)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
input_num = map(int, input().split())

print(input_num[0]*input_num[1])

sute = input()
input_nums = input().split()

output = 1

x = map((lambda x: int(x)), input_nums)


for num in x:
    output *= num   
    if output > 10^18:
        output = -1

if output <= -1:
    output = -1


print(output)

input_nums = input().split()

output = 1

x = map((lambda x: int(x)), input_nums)

for num in x:
    output *= num
    
print(output)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


def main():
    a, b = map(int, input().split())
    print(a * b)
    

if __name__ == '__main__':
    main()
                                          ￿

#!/usr/bin/env python3
# -*- coding: utf-8 -*-


def main():
    a, b = map(int, input().split())
    print(a * b)
    

if __name__ == '__main__':
    main()


Verdicts: Runtime Error

Accepted