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

Submission attempts (in order):
N=int(input())
a1=list(map(int,input(). split ()))
x=1
if 0 in A:
    print(0)
    return
for a in A:
    x=x*a
    if x>1e18:
        print(-1)
        return
print(x)


N=int(input())
a1=list(map(int,input().split()))
x=1
if 0 in a1:
    print(0)
else:
    for a in a1:
        x=x*a
        if x>1e18:
            print(-1)
            break
if x<=1e18:
    print(x)

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()
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()
return a*b

a,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,b=int(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):
s = input().split()
float(s[0]) * float(s[1])


N = int(input())
A = map(int, input().split())
if N > len(A):
  print(0)
else:
  tmp = 1
  for i in range(N):
    tmp *= A[i]
  if np.log(tmp) > 18:
    print(tmp)
  else:
    print(-1)


import numpy as np
N = int(input())
A = list(map(int, input().split()))
if N > len(A):
  print(0)
else:
  tmp = 1
  for i in range(N):
    tmp *= A[i]
  if np.log10(tmp) > 18:
    print(-1)
  else:
    print(tmp)


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


s = input().split()
s[0] * s[1]

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

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: Compute A \times B.

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

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

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

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

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

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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

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

Alist = []
A = input()
A = A.split()
for a in A:
    Alist.append(int(a))

def program():
    ans = 1
    for a in Alist:
        ans *= a
        if ans > 10**18:
            return -1
    return ans

print(program())

AB = input()
AB = AB.split()
A = int(AB[0])
B = int(AB[1])

print(int(A*B))

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

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

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


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

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(A * B)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N = input()

ab = input( )

ab = ab.split()

if 0 in ab:
    print(0)
else:
    SUM = 1
    for i in range(int(N)):
        SUM = SUM * int(ab[i])

    if (int(SUM) < 10 ** 18):
        print(SUM)
    else:
        print(-1)


ab = input()

a,b = input()


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

a = input()
b = input()

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



ab = input( )

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

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

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

print(a * b)

import sys

n= int(input())
a = list(map(int,input().split()))
ans = a[0]
ans_max = 10 ** 18

for i in range(1, n):
    ans *= a[i]
    if ans > ans_max:
        print("-1")
        sys.exit()

print(ans)

a, b= input().split()

print(int(a) * int(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: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
#D - Div Game
N = int(input())

def Prime_factorize(n):
    cnt = 0
    A = []
    
    z = 2
    while n%z==0 and (n>=z):
        cnt += 1
        n //= z
        A.append(z)
        
        z *= 2
    
    while n%2 == 0:
        n//=2
    f = 3
    z = 3
    
    while f*f <= n:
        if n%z == 0:
            cnt += 1
            n //= z
            A.append(z)

            
            z = z*f
        
        else:
            f += 2
            z = f

    
    if n != 1 and all((n%i != 0 for i in A)):
        A.append(z)
        cnt += 1
    
    if cnt == 0:
        cnt = 1
    return cnt
if N == 1:
    ans = 0
else:
    ans = Prime_factorize(N)
print(ans)

#D - Div Game
N = int(input())

def Prime_factorize(n):
    cnt = 0
    A = []
    
    z = 2
    while n%z==0 and (n>=z):
        cnt += 1
        n //= z
        A.append(z)
        
        z *= 2
    
    f = 3
    z = 3
    
    while 2*f <= n:
        if n%z == 0:
            cnt += 1
            n //= z
            A.append(z)

            
            z = z*f
        
        else:
            f += 2
            z = f

    
    if n != 1 and all((n%i != 0 for i in A)):
        A.append(z)
        cnt += 1
    
    if cnt == 0:
        cnt = 1
    return cnt
if N == 1:
    ans = 0
else:
    ans = Prime_factorize(N)
print(ans)

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())
arr = []
temp = N
n = 0
if N == 1:
    print(0)
else:
    for i in range(2, int(-(-N**0.5//1))+1):
        if temp%i==0:
            cnt=0
            while temp%i==0:
                cnt=cnt+1
                temp //= i
            arr.append([i, cnt])
    if temp!=1:
        arr.append([temp, 1])
 
    if arr==[]:
        arr.append([n, 1])

    for i in range(len(arr)):
        a = 0
        b = arr[i]
        while a < b[1]:
            a = a+a+1
            n = n+1
    print(n)

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())
ans=1
a=list(map(int,input().split()))
for i in range(n):
  ans*=a[i]
if ans>=10**18:
  print(-1)
else:
  print(ans)


a,b=map(float,input().split())
ans=a*100+b*100
print(int(ans//100))


n=int(input())
ans=1
check=0
a=sorted(list(map(int,input().split())))
for i in range(n):
  if ans>=10**18:
    check=1
    break
  else:
    ans*=a[i]
print([ans,-1][check])

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

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: Compute A \times B.

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

print(a*b)

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

print(a*b)

a, b = input().split()

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N=input();
N=int(N);
A=input().split();
print(A);
A = [int(s) for s in A];
sum =1;
if 0 in A:
  print(0);
  return
for i in range(N):
  if(A[i]==0):
    sum=0;
    break;
  sum=sum*A[i];
  #print(sum);
if sum> (10**18):
  sum=-1;
print(sum);

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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

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

def prime_factorise(n):
    a = []
    tmp = n
    for i in range(2, int(n**0.5//1 + 1)):
        if tmp % i == 0:
            index = 0  
            while tmp % i == 0:
                index += 1
                tmp //= i
            a.append([i, index])

    if tmp != 1:
        a.append([tmp, 1])

    print(a)
    return a

x = prime_factorise(n)
count = 0


for i in range(len(x)):
    if x[0][0] == 1:
        break

    k = x[i][1]  の値
    for j in range(k):
        if n % (x[i][0] ** (j+1)) == 0:
            n //= x[i][0] ** (j+1)
            count += 1
            k -= (j+1) 

        elif n % (x[i][0]**(j+1)) != 0:
            break
        
        if k <= 0:
            break

print(count)

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

ans = a*b
print(ans)



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())
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):
N = input()
A = list(map(int, input().split()))
A.sort()
ans = 1
for i in A:

    ans = ans * i
    if ans == 0:
        break
    if ans > 1000000000000000000:
        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):
    
    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

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a, b = int(input()), 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):
a,b=map(int,input().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):
from operator import mul
from functools import reduce

#while True:
N = int(input())
#	if N>=2 and N<=10**5:break

if 2 <= N <= 10**5:
	num = list(map(int, input().split()))
	
#print(num)
ans = reduce(mul,num)
if ans > 10**18:
	print(-1)
else:
	print(ans)

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

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
from decimal import Decimal


def main():
    A, B = map(Decimalt,input().split())

    print(int(A*B))
    return

if __name__ == '__main__':
    main()


from decimal import Decimal


def main():
    A, B = map(Decimalt,input().split())
    print(int(A*B))

if __name__ == '__main__':
    main()


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



Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

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

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

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
import functools
import operator

N = int(input())
A = list(map(int,input().split()))
result = functools.reduce(operator.mul, A)
if '0' in A :
    print(0)
else :
    if result > 10**18 :
        print('-1')
    else :
        print(result)

import functools
import operator

N = int(input())
A = list(map(int,input().split()))
result = functools.reduce(operator.mul, A)
if 0 in A :
    print(0)
else :
    if result > 10**18 :
        print('-1')
    else :
        print(result)


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 = input()
b = input()

print(a*b)

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
n = int(input())
a = list(map(int, input().split()))
total = 1
if 0 in a:
  print("0")
  exit()

for i in range(n):
  total*=a[i]
  if total > 10**18:
    print("-1")
    exit()

print(total)
  
  

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 = input().split()
print(a * b)

a,b=(int(x) for x in input().split())
print(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):
int A,B
A=6
B=6
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):
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):
def main():
    n = int(input())
    a = list(map(int, input().split()))
    if 0 in a:
        print(0)
        return
    prod = 1
    for i in a:
        prod *= i
        if prod > 1000000000000000000:
            print(-1)
            return
main()

n = int(input())
ans = 1
nums = map(int, input().split(' '))
for i in nums:
    ans *= i
if ans > 10**18:
    print(-1)
else:
    print(ans)

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 ()

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

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
n=int(input())
a=input().split()
a=list(map(int,a))
i=0
ans=1
for calc in a:
    if(0 in a==True):
        print(0)
        exit()
    ans=ans*a[i]
    i+=1
    if(i==n):
        break
if(ans>1000000000000000000):
    print(-1)
else:
    print(ans)


n=int(input())
a=input().split()
a=list(map(int,a))
i=0
ans=1
for calc in a:
    if(0 in a==True):
        print(0)
        exit()
    ans=ans*calc
    if(ans>1000000000000000000):
        print(-1)
        exit()
    i+=1
    if(i==n):
        break
if(ans>1000000000000000000):
    print(-1)
else:
    print(ans)


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

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: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N = int(input())
num = list(map(int,input().split()))
b= 0
for a in range(N):
  b = b * num[a]
  if b > 10**18:
    print('-1')
  else:
    print(b)

N = int(input())
num = list(map(int,input().split()))
b= 0
for a in range(N):
  b = b * num[a]
if b > 10**18:
  print('-1')
else:
  print(b)

N = int(input())
num = list(map(int,input().split()))
b= 1
for a in range(N):
  b = b * num[a]
  if b > 10**18:
    print(-1)
  else:
    print(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):
a, b = map(int, input().split())
print(a)
print(b)
answer = a * b
print(answer)

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

print(A * B)

Verdicts: Wrong Answer

Accepted
Problem: Compute A \times B.

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


a = input()
n = list(map(int, input().split()))
import numpy as np
if np.prod(n) =>10 ** 18:
  print('-1')
else:
  print(np.prod(n))


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)
ans = A * B
print(ans)

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

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):



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

print(a)
print(b)


answer = a * b


print(answer)





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

print(a)
print(b)


answer = a * b


print(answer)


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

print(A * B)


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


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

print(a * b) 

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
n = int(input())
a = list(map(int, input().split()))
x = 1
for i in range(n):
  x *= a[i] 
if x > 1000000000000000001:
  x = -1
print(x)


import sys
n = int(sys.stdin.readline())
a = list(map(int, sys.stdin.readline().split()))
x = 1
for i in range(n):
  x *= a[i] 
if x > 1000000000000000000:
  x = -1
print(x)

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

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


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
from sys import stdin

def main():
  read = stdin.readline
  N = int(read())
  data = list(map(int,read().split(" ")))
  ans = 1
  flg = False
  for i in data:
    if i == 0:
      print("0")
      flg = True
      break
    if ans*i > 10**18:
      print("-1")
      flg = True
      break
    else:
      ans *= i
      
  if not flg:  
    print(ans)
  
  
if __name__ == "__main__":
  main()

from sys import stdin

def main():
  read = stdin.readline
  A,B = list(read().split(" "))
  B = int(B)*100
  c = int(A) * B
  print(c//100)
  
  
  
if __name__ == "__main__":
  main()


Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

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

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

Verdicts: Wrong Answer

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
n = int(input())
ls = list(map(int, input().split()))
res = 1
if 0 in ls:
    print(0)
    quit()
for x in ls:
    res *= x
    if res > 10**18:
        print(-1)
        quit()
print(res)

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


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)

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())
a = [int(i) for i in input().split()]
number =1

for i in a:
    if i==0:
        print(0)
        exit()
    number *= i
    if number > 10**18:
            print(-1)
            exit()

print(number)

N = int(input())
a = (int(x) for x in input().split())
number =1

for i in a:
    if i==0:
        print(0)
        exit(0)
    number *= i
    if number>10**18:
            print(-1)
            exit(0)

print(number)

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
def prime(n):
    nums = [True]*n
    primes = []
    for i in range(2,n):
        if nums[i]:
            primes.append(i)
            for j in range(2*i,n,i):
                nums[j] = False
    return primes

def prime_fac(n):
    fac = {}
    primes = prime(int(n**0.5)+1)
    for p in primes:
        while n%p==0:
            fac[p] = fac.get(p,0)+1
            n//=p
    if n > 1:
        fac[n] = 1
    return fac

def main():
    n = int(input())
    fac = prime_fac(n)

    ans = 0
    for i in fac.values():
        ct = 1
        while i >= ct*(ct+1)//2:
            ct += 1
            ans+=1
    print(ans)
main()

import io,sys
sys.setrecursionlimit(10**6)

def main():
    a,b =map(int,sys.stdin.readline().rstrip().split())
    print(a*b)
main()

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):

MAX_RESULT = 1000000000000000000

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

tmp = 1

for x in range(len(A1)):
    tmp = tmp * A1[x]

result = tmp

if (result > MAX_RESULT):
    result = -1

print(result)

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

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
# 169A



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



answer = a * b



print(answer)

A, B = input().split()

total = int(A) * int(B)

print(total)


Verdicts: Wrong Answer

Accepted
Problem: Compute A \times B.

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

result = 1

if 0 in Ai:
	result= '0'  
else:
  for i in range(N):
      result *= Ai[i]

  	if result > 10**18:
    	result = '-1'

print(result)

s = input()

S1, S2 = input().strip().split()
print(S1*S2)

N = int(input())
Ai = list(map(int, input().split()))
     
result = 1
     
if 0 in Ai:
	result= '0'  
else:
  for i in range(N):
      result *= Ai[i]
      if result > 10**18:
        result = '-1'
     
print(result)

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

result = 1
for i in Ai:
	result *= i

if result > 10**18:
  result = '-1'

print(result)

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

print(a*b)


Verdicts: Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
val1 = input()
val2 = input()

print(int(val1) * int(val2))


val1,val2 = (int(x) for x in input().split())

print(int(val1) * int(val2))


Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
num[]=input()
x = num[0]*num[1]
print(x)

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

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

print(A*B)

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

A*B

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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

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):
import numpy as np

n = input()

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

res = np.prod(a)

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

else:
    print(res)

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 = 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())
A*B

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

Verdicts: Wrong Answer

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
import numpy as np


def count(a):
    i = 0
    while a > 0:
        i += 1
        a -= i
        if a == 0:
            break
        if a < 0:
            i -= 1
            break
    return i


def main(N):
    num = N
    ans = 0
    A = np.zeros((1000000), np.int32)
    i = 2
    last = 0
    if N == 1:
        return 0
    while True:
        if num % i == 0:
            num = num//i
            A[i] += 1
        else:
            i += 1
            if num == 1:
                break
            if i*i > num:
                last = 1
                break
    for j in range(i):
        ans += count(A[j])
    ans += last
    return ans


N = int(input())
print(main(N))


import numpy as np


def main(A,B):

    ans = A*B
    return ans


A,B = int(input())
print(main(A,B))


import numpy as np


def main(A, B):

    ans = A*B
    return ans


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


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
A = int(input("A="))
B = int(input("B="))
if 1 <= A <=100 and 1 <= B <=100:
    c = A * B
    print(c)
else:
    print("Error")

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

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N = input()
ls = map(int, input().split())
tot = 1
for i in ls:
    tot = i*tot
    if tot > 10^18:
        break
    elif tot ==0:
        break
    
if i <= 10^18:
    print(tot)
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):
A,B = input().split()
print(A*B)

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

A,B = input().split()
print(int(A)*int(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)

answer = a * b

print(answer)


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

print(a * b)

Verdicts: Wrong Answer

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):
A,B=map(int,input())
A=A*B
print(A)

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


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


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):
def main():
    N = input()
    str_num = input()
    num_list = str_num.split()
    
    if '0' in num_list:
        print(0)
        return
    
    answer = 1
    for num in num_list:
        answer *=int(num)
        if answer > 10**18:
            answer = -1
            break

    print(answer)

main()

str_num = input()
num_list = str_num.split()

answer = int(num_list[0]) * int(num_list[1])
print(answer)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a, b = map(int, input().split())
prinr(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())

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

a = input()
b = input()
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):
a, b = input().split()
A = int(a)
B - int(b)
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):
a, b = [*map(input().split(" "), int)]
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()))

if 0 in A:
    print(0)
else:
    x = 1
    for i in range(N):
        x = x * A[i]
        if x>10**18:
            x = -1
    print(x)

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

if 0 in A:
    print(0)

x = 1
for i in range(N):
    x = x * A[i]
    if x>10**18:
        x = -1
print(x)

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

print(a*b)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
# 169A


# ex: [2 5] a=2 b=5 

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

print(a)
print(b)

answer=a*b


print(answer)

# 169A




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

print(a)
print(b)


answer=a*b


print(answer)


# 169A




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

print(a)
print(b)


answer=a*b


print(answer)




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

answer =A * B

print(answer)


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
import numpy as np

def seachPrimeNum2(N):
    max = int(np.sqrt(N))
    seachList = [i for i in range(2,N+1)]
    primeNum = []
    primeNum2 = []
    while seachList[0] <= max:
        primeNum.append(seachList[0])
        tmp = seachList[0]
        seachList = [i for i in seachList if i % tmp != 0]
    primeNum.extend(seachList)
    for i in range(1,8):
      for j in primeNum:
        primeNum2.append(j**i)
    return primeNum2
def seachPrimeNum3(N):
    max = int(np.sqrt(N))
    seachList = [i for i in range(2,N+1)]
    primeNum = []
    primeNum2 = []
    while seachList[0] <= max:
        primeNum.append(seachList[0])
        tmp = seachList[0]
        seachList = [i for i in seachList if i % tmp != 0]
    primeNum.extend(seachList)
    for i in range(1,5):
      for j in primeNum:
        primeNum2.append(j**i)
    return primeNum2
def seachPrimeNum4(N):
    max = int(np.sqrt(N))
    seachList = [i for i in range(2,N+1)]
    primeNum = []
    primeNum2 = []
    while seachList[0] <= max:
        primeNum.append(seachList[0])
        tmp = seachList[0]
        seachList = [i for i in seachList if i % tmp != 0]
    primeNum.extend(seachList)
    for i in range(1,4):
      for j in primeNum:
        primeNum2.append(j**i)
    return primeNum2
P = seachPrimeNum2(1000)
P += seachPrimeNum3(10000)
P = set(P+seachPrimeNum4(1000000))
N = int(input())
ans = 0
for p in P:
  if N%p == 0:
    ans += 1
    N = N//p
  if N == 1:
    print(ans)
    exit()
print(max(1,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 = 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())
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 = list(map(int, input().split()))
print(a*b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

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

A, B = 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 = [int() for i in input().split()]

print(a*b)


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

print(a*b)


Verdicts: Wrong Answer

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):
a = int(input())
b = list(map(int, input().split()))

for i in range(a):
  if i != 0:
    c = c * b[i]
  else:
    c = b[i]

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


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

for i in range(a):
  if i != 0:
    c = c * b[i]
  else:
    c = b[i]

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


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


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=list(map(int,input().split()))
print(a[0]*a[1])

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a,b=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()) for _ in range(2)]
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 = map(int, input().split())

a * b = c

print(c)

num = map(int, input().split())

print(num)

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

c = a * b

print(c)

Verdicts: Runtime Error

Wrong Answer

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):
import decimal
n = int(input())
a = list(map(int, input().split()))
ans = decimal.Decimal(1)
if 0 in a:
  print(-1)
else:
  for i in a:
    ans *= i
  if ans < (10 ** 18 + 1):
    print(ans)
  else:
    print(-1)


import decimal
n = int(input())
a = list(map(int, input().split()))
ans = 1
if 0 in a:
  print(-1)
else:
  flag = True
  for i in a:
    ans *= i
    if ans > (10 ** 18):
      print(-1)
      flag = False
      break
  if flag:
    print(ans)


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 = int(input()), 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):
A=list(map(int,input().split)
print(A[0]*A[1])

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

A=list(map(int,input().split()))
print(A[0]*A[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()))
B = 1
for i in range(N):
    B = B * A[i]
    if B > 10 ** 18:
        print(-1)
        break
print(B)

N = int(input())
A = list(map(int, input().split()))
import numpy as np
B = np.prod(A)
if B <= 10 ** 18:
    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):
int A=input()
int B=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):
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):
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):
A, 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):
import math
str = input()

str2 = str.split(" ")

A = int(str2[0])
B = round(float(str2[1])-0.05, 2)

res = int(float(A)*float(B))

print(res)

str = input()

str2 = str.split(" ")

res = 1
for str3 in str2:
    res *= int(str3)

print(res)

Verdicts: Wrong Answer

Accepted
Problem: Compute A \times B.

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

for i in range(N):
  x*= A[i]
  
if x>pow(10,18):
  print(-1)
else:
  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())

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

sum = 1
for i in n1:
    sum *= i
    if sum > 10 ** 18:
        print('-1') 
        break

print(sum)

n = int(input())

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

i = 0
sum = 1

for su in n1:
    sum *= su





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

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 = input().split(" ")
print(a[0]*a[1])

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

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a,b = map(input().split(), int)
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(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=float(b)
x=a*b//1
print(x)

n=int,input()
a=list(map(int,input().split()))
from operator import mul
from functools import reduce
x=reduce(mul, a)
if x>=10**18:
    print('-1')
else:
    print(x)

n=int(input()) 
alist=list(map(int,input().split()))
a=1
if 0 in alist:
    print("0")
else:
    for i in alist:
        if a<=10**18:
            a=a*i
        else:
            break
    if a>10**18:
        print('-1')
    else:
        print(a)

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 = input().split()

C = A * B
print(C)

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

print(A * B)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
in_str = input().split(" ")
in_int = int(in_str)
result = in_int[0]*in_int[1]
print(result)

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


Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
input()
b = [int(i) for i in input().split()]

if 0 not in b:
  last = 1
  for i in b:
      last*=i
      if last > 10**18:
        last = -1
        break
    
else:
  last = 0
    
print(last)

input()
b = [int(i) for i in input().split()]

if 0 not in b:
  last = 1
  for i in b:
      last*=i
      if last > 10**18:
        last = -1
        break
    
else:
  last = 0
    
print(last)

input()
b = [int(i) for i in input().split()]

if 0 not in b:
  last = 1
  for i in b:
      last*=i
      if last > 10**18:
      	last = -1
        break
else:
  last = 0
    
print(last)

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

Verdicts: Runtime Error

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(iny.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 = int(input())
B = int(input())
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())
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())
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)


tmp=input().split(" ")
A=int(tmp[0])
B=int(tmp[1])

print(A*B)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

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

(a,b)=[int(x) for x in 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

n = int(input())
a = list(map(int, input().split()))
m = 1
for i in a:
  m = m*i
if m<= 10**18:
  print(m)
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 = input().split()
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 = input()
b = input()

print(a * b)

n1 = input()
n2 = input()

print(n1 * n2)

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
a, b = map(int,input().split())

print( a* b)
return

main()

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

main()

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):
import heapq as hp
n = int(input())
if n%2 ==0:
    m = n//2 + 1
else:
    m = (n+1) //2
a,b = [],[]
for i in range(0,n):
    c = list(map(int, input().split()))
    a.append(c[0])
    b.append(c[1])
la = hp.nlargest(m,a)
lb = hp.nlargest(m,b)
if n%2 == 0:
    c = la[-1] + la[-2] 
    d = lb[-1] + lb[-2] 
    print(d-c+1)
else:
    print(lb[-1]-la[-1]+1)



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


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=input()
B=input()
a=int(A)
b=int(B)
x=a*b
print(x)


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


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

x=a*b
print(x)


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

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

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

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
from sys import stdin,stdout
from collections import deque,defaultdict
from math import ceil,floor,inf,sqrt,factorial,gcd,log2
from copy import deepcopy
ii1=lambda:int(stdin.readline().strip())
is1=lambda:stdin.readline().strip()
iia=lambda:list(map(int,stdin.readline().strip().split()))
isa=lambda:stdin.readline().strip().split()
mod=1000000007
a,b=map(float,input().split())
b=b*100
ans=a*b
ans=ans//100
print(ans)

from sys import stdin,stdout
from collections import deque,defaultdict
from math import ceil,floor,inf,sqrt,factorial,gcd,log2
from copy import deepcopy
ii1=lambda:int(stdin.readline().strip())
is1=lambda:stdin.readline().strip()
iia=lambda:list(map(int,stdin.readline().strip().split()))
isa=lambda:stdin.readline().strip().split()
mod=1000000007
n = ii1()
m = int(n**0.5)+1
count = 0
flag=0
for i in range(2,m):
    if n%i == 0:
        flag=1
        count+=1
        n=n//i
if flag == 1:
    print(1)
else:
    print(count)

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

Verdicts: 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 = map(int,input().split())
print(a*b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

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

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

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
   a169



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


answer = a * b


print(answer)

#   AtCoder abc169_a


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 = input.trim().split()
C = int(A) * float(B)
D = C // 1
print(round(C))

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

print(int(C))

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

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

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

print(a, b, a * b, a * b // 1000)
ans = int(a * b // 1000)
print(ans)

import math
a, b = map(str, input().split())
a = int(a)
b = float(b)

b = int(b * 100)
ans = a * b // 100
print(ans)


Verdicts: Wrong Answer

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
A,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())
a = list(map(int, input().split()))

if 0 in a:
    print(0)
    exit()

ans = 1
for i in range(n):
    ans *= a[i]
    if ans > 1000000000000000000:
        print(-1)
        exit()

print(ans)


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

if 0 in a:
    print(0)
    exit()

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

print(ans)


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,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 = input().split()
print(a*b)

a, b = (int(x)
        for x in input().split)
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):
S = input().split()
A = int(S[0])
B = float(S[1])
 
print(((A*B)))


import sys
N = int(input())
A = list(map(int, input().split()))
 
ans = 1

if A.count(0) != 0:
    print(0)
    sys.exit()

for i in A:

    ans = ans*i
    if ans > int(10**18):
        print(-1)
        sys.exit()
 
if ans > int(10**18):
    print(-1)
else:
    print(ans)

import decimal
decimal.getcontext().prec = 5
S = input().split()
A = int(S[0])
B = float(S[1])

B = decimal.Decimal(B)

print(int((A*B)/1))


Verdicts: Wrong Answer

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):
a,b = int(input().split())
print(int(a*b))

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

ans = 1
if 0 in int_list:
  ans = 0
else:
  for i in range(n):
    ans *= int_list[i]
    if ans > 10 ** 18:
      ans = -1
      break

print(ans)

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 = input().split()
print(A*B)

import numpy as np
N = int(input())
num = np.array(list(map(int,input().split())))

a = np.prod(num)
if a> 10**18:
  a=-1
print(a)

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


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
import itertools
N,S = map(int,input().split( ))
A = list(map(int,input().split( )))
a = [i for i in range(N)]
C = []
for i in range(1,N+1):
    C += list(itertools.combinations(a,i))
ans = 0
for c in C:
    wa = 0
    for i in c:
        wa += A[i]
    if wa == S:
        for cc in C:
            if set(c) <= set(cc):
                ans += 1
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=input().split()
a=int(a)
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):
print(A*B)

print(a*b)

A,B=(int(x) for x in input().split())
num = A * B
print(num)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N = int(input())
A = list(map(int,input().split()))
#res = A[0]
for i in range(1,N): 
	A[0] *= A[i]
if A[0] <= 10**18:
	print(A[0])
else:
	print("-1")


N = int(input())
A = list(map(int,input().split()))
for i in range(1,N): 
	A[0] *= A[i]
if A[0] < 10**18:
	print(A[0])
else:
	print("-1")


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


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

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

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

Verdicts: Runtime Error

Accepted