TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: You are given N real values A_1, A_2, \ldots, A_N. Compute the number of pairs of indices (i, j) such that i < j and the product A_i \cdot A_j is integer.

Submission attempts (in order):
from subprocess import*
c=[[0]*50for _ in range(50)]
for a in[*open(0)][1:]:
  a,b=map(run(('factor',str(round(float(a)*10**9))),stdout=PIPE).stdout.split().count,(b'2',b'5'))


c=[[0]*50for _ in range(50)]
r=0
for a in[*open(0)][1:]:
  a=round(float(a)*10**9)
  x=y=0
  while a%2<1:
    a//=2
    x+=1
  while a%5<1:
    a//=5
    y+=1
  r+=sum(sum(d[max(0,18-x):])for d in c[max(0,18-y):])
  c[x][y]+=1
print(r)

c=[[0]*50for _ in range(50)]
r=0
for a in[*open(0)][1:]:
  a=round(float(a)*10**9)
  x=y=0
  while a&1<1:
    a>>=1
    x+=1
  while a%5<1:
    a//=5
    y+=1
  r+=sum(sum(d[max(0,18-x):])for d in c[max(0,18-y):])
  c[x][y]+=1
print(r)

from numpy import*
def main():
  c=zeros((50,50),int_)
  r=0
  for a in[*open(0)][1:]:
    a=round(float(a)*1e9)
    y=0
    while a%5<1:
      a//=5
      y+=1
    x=int(log2(a&-a))
    r+=sum(c[max(0,18-x):,max(0,18-y):])
    c[x][y]+=1
  print(r)
main()

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: You are given N real values A_1, A_2, \ldots, A_N. Compute the number of pairs of indices (i, j) such that i < j and the product A_i \cdot A_j is integer.

Submission attempts (in order):
N = int(input())
A = [input() for _ in range(N)]

from collections import Counter
ctr = Counter()

for a in A:
    of = 0
    if '.' in a:
        of = a[::-1].index('.')
        a = a.replace('.', '')
    a = int(a)
    ni = go = -of
    while a%2==0:
        a//=2
        ni += 1
    while a%5==0:
        a//=5
        go += 1
    ctr[(ni,go)] += 1

ans = 0
for (ni1,go1),v1 in ctr.items():
    for (ni2,go2),v2 in ctr.items():
        if ni1+ni2 < 0 or go1+go2 < 0: continue
        print(ni1,go1, ni2,go2)
        if ni1==ni2 and go1==go2:
            ans += v1*(v1-1)
        else:
            ans += v1*v2
print(ans//2)

N = int(input())
A = [input() for _ in range(N)]

from collections import Counter
ctr = Counter()

for a in A:
    of = 0
    if '.' in a:
        of = a[::-1].index('.')
        a = a.replace('.', '')
    a = int(a)
    ni = go = -of
    while a%2==0:
        a//=2
        ni += 1
    while a%5==0:
        a//=5
        go += 1
    ctr[(ni,go)] += 1

ans = 0
for (ni1,go1),v1 in ctr.items():
    for (ni2,go2),v2 in ctr.items():
        if ni1+ni2 < 0 or go1+go2 < 0: continue
        if ni1==ni2 and go1==go2:
            ans += v1*(v1-1)
        else:
            ans += v1*v2
print(ans//2)

Verdicts: Wrong Answer

Accepted
Problem: You are given N real values A_1, A_2, \ldots, A_N. Compute the number of pairs of indices (i, j) such that i < j and the product A_i \cdot A_j is integer.

Submission attempts (in order):
from decimal import *

n = int(input())
ans = 0
vec = [Decimal(input()) for i in range(n)]
vec25 = [[0 for i in range(50)] for i in range(50)]  
for i in range(n):
    a = vec[i] * 1000000000
    num2 = -9
    num5 = -9
    while a%2 == 0:
        a //= 2
        num2 += 1
    while a%5 == 0:
        a //= 5
        num5 += 1
    vec25[num2][num5] += 1
for i in range(-9, 40): 
    for j in range(-9, 40):
        for k in range(max(-9, -i), 40):
            for l in range(max(-9, -j), 40):
                if i+k >= 0 and j+l >= 0 :
                    if i != k or j != l :
                        ans += vec25[i][j] * vec25[k][l]
                    else :
                        ans += vec25[i][j] * (vec25[i][j] - 1)

print(ans)

from decimal import *

n = int(input())
ans = 0
vec = [Decimal(input()) for i in range(n)]
vec25 = [[0 for i in range(50)] for i in range(50)]  
for i in range(n):
    a = int(vec[i] * 1000000000)
    num2 = -9
    num5 = -9
    while a%2 == 0:
        a //= 2
        num2 += 1
    while a%5 == 0:
        a //= 5
        num5 += 1
    vec25[num2][num5] += 1
for i in range(-9, 40): 
    for j in range(-9, 20):
        for k in range(max(-9, -i), 40):
            for l in range(max(-9, -j), 20):
                if i+k >= 0 and j+l >= 0 :
                    if i != k or j != l :
                        ans += vec25[i][j] * vec25[k][l]
                    else :
                        ans += vec25[i][j] * (vec25[i][j] - 1)
ans //= 2
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: You are given N real values A_1, A_2, \ldots, A_N. Compute the number of pairs of indices (i, j) such that i < j and the product A_i \cdot A_j is integer.

Submission attempts (in order):
import collections
import sys
input = sys.stdin.readline
N = int(input())
A = [input() for i in range(N)]

C = collections.defaultdict(int)
for i, x in enumerate(A):
    idx = 0
    x = x[:-1]
    if '.' in x:
        idx = x[::-1].index('.')
        x = x.replace('.', '')
    x = int(x)
    count2 = -idx
    count5 = -idx
    print(x, idx)
    while(x % 2 == 0):
        x = x // 2
        count2 += 1

    while(x % 5 == 0):
        x = x // 5
        count5 += 1
    C[(count2, count5)] += 1
ans = 0
for a, b in C:
    for a2, b2 in C:
        if a+a2 >= 0 and b+b2 >= 0:
            if a == a2 and b == b2:
                ans += C[(a, b)]*(C[(a, b)]-1)
            else:
                ans += C[(a, b)]*C[(a2, b2)]
print(ans//2)


import collections
import sys
input = sys.stdin.readline
N = int(input())
A = [input() for i in range(N)]

C = collections.defaultdict(int)
for i, x in enumerate(A):
    idx = 0
    x = x[:-1]
    if '.' in x:
        idx = x[::-1].index('.')
        x = x.replace('.', '')
    x = int(x)
    count2 = -idx
    count5 = -idx
    while(x % 2 == 0):
        x = x // 2
        count2 += 1

    while(x % 5 == 0):
        x = x // 5
        count5 += 1
    C[(count2, count5)] += 1
ans = 0
for a, b in C:
    for a2, b2 in C:
        if a+a2 >= 0 and b+b2 >= 0:
            if a == a2 and b == b2:
                ans += C[(a, b)]*(C[(a, b)]-1)
            else:
                ans += C[(a, b)]*C[(a2, b2)]
print(ans//2)


Verdicts: Wrong Answer

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
import sys
xx=input("Enter a number:")
r=xx.split()
try:
    r[0]=int(r[0])
    r[1]=int(r[1])
except:
    print("Please enter a int.")
    sys.exit()
try:
    if r[0]>=0 and r[1]>=0:
        if r[0]<=100 and r[1]<=100:
            print(int(r[0])*int(r[1]))
        else:
            print("number not in range")
    else:
        print("number not in range")
except:
    print("Please enter a int.")       
    

n = int(input())
nums = list(map(int, input().split()))
if 0 in nums:
    print(0)
    quit()
mul = 1
for i in nums:
    mul *= i
    if mul > 1000000000000000000:
        print(-1)
        quit()
print(mul)

num1,num2 = [int(num) for num in input("Enter a number").split()]
print(num1*num2)

try:
    x=int(input("Enter a number:"))
    y=int(input("Enter a number:"))
except:
    print("Please enter a int.")
if x<=100 and y<=100:
    if x>=0 and y>=0:
        print(x*y)
else:
    print("number not in range")

N, S = map(int, input().split())
A = list(map(int, input().split()))
m = 0
var1 = [0] * (S + 1)
var1[0] = pow(2, N, 998244353)
var2 = pow(2, 998244353 - 2, 998244353)
def func1(xxx, xx):
    if xxx>xx:
        return xx
    else:
        return xxx
for all in A:
    m = all+m
    funcvar1=min(S, m)
    for val in reversed(range(all,funcvar1+1)):
        var1[val] = (var1[val] + var1[val - all] * var2) % 998244353
print(var1[S])

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

Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
import numpy as np
 
N = int(input())
A = list(map(np.int64, input().split()))
 
A = np.array(A)
 
ans = np.prod(A)
 
 
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())
multi = list(map(int,input().split()))
result = 1 

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

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

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

a = input()
a = [int(n) for n in a.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 = 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,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 = input()
B = input()
if 1 <= A and B <= 100
	print(A * B)

A = input()
B = input()
if 1 <= A <= 100 and 1 <= B <= 100:
  print(A*B)

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

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

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

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


c=1
for x in a:
  c=c*int(x)
  
if c > 10**18:
  print("-1")
else:  
  print(c) 


a=input()

a=a.split()

x=a[0]
y=a[1]

c=x*y

print(c)

a=input()

a=a.split()

x=int(a[0])
y=int(a[1])

c=x*y

print(c)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

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

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

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

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

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

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

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

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

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

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

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

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

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

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
Line = [int(s) for s in input().split()]

print(Liine[0]*Line[1])

Line = [int(s) for s in input().split()]

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

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

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

import time
B=INPUT[1]
Number=(INPUT[0]*INPUT[1]+1)
time.sleep(2)

print(Number)

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

import time
B=INPUT[1]
Number=(INPUT[0]*INPUT[1])
time.sleep(2)

print(Number)

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

Verdicts: Time Limit Exceeded

Time Limit Exceeded

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

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

a,b=map(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 math

R = int(input())
print(2 * R * math.pi)



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):
import math,sys
N = int(input())
A = list(map(int, input().split()))
ans = 1

if 0 in A:
    print(0)
    sys.exit()

for i in range(N):
    ans = ans*A[i]
    
    if A[i] > 10**18/ans:
        
        print(-1)
        sys.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(float, input().split())
s = (A*(B*100))/100
print(s)

n = int(input())
primeN = []
tmp = 2
for i in range(2, n):
    if primeN:
        for j in range(len(primeN)):
            if i % primeN[j] == 0:
                break
            else:
                if j == len(primeN) - 1:
                    primeN.append(i)
    else:
        if n > tmp:
            primeN.append(i)


s = 0
for j in primeN:
  k = j
  while n%k==0:
    s+=1
    n = int(n/j)
    k = k*j
print(s)

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

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

Accepted
Problem: Compute A \times B.

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

a, b = map(int, intput().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())
print(A*b)

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

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


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

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


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


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

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

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


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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

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
num = factorization(n)
kazu = []
for num_i in num:
    cnt = 1 #num_i[0]
    hoge = num_i[0]
    for i in range(num_i[1]):
        cnt *= hoge
        kazu.append(cnt)
kazu.sort()
cnt = 0
ans = 1
while ans <= n:
    ans *= kazu[cnt]
    cnt += 1
print(cnt)


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

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a, b = gets.split.map(&:to_i)
print(a*b)

num1 = A
num2 = B
print(num1 * num2)

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
import sys


N = input()


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

#print(N)
#print(A)
ans = 1
if 0 in A:
    print("-1")
    sys.exit()


for i in A:
    #print(i)
    ans *= i
    #print(ans)
    if ans > 10**18:
        print("-1")
        sys.exit()

print(ans)

import math

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

N =A*B
ans = math.floor(N)

print(ans)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a=int(input())
b=list(map(int,input().split()))
c=1
for i in range(a):
  c=c*b[i]
if(c>1000000000000000000):
  print(-1)
else:
  print(c)

a=int(input())
b=list(map(int,input().split()))
print(b)
c=1
for i in range(a):
  c=c*b[i]
if(c>1000000000000000000):
  print(-1)
else:
  print(c)

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

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

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

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):
# 169



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

print(a)
print(b)



answer = a * b


print(answer)


# 169



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

Wrong Answer

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

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
n = int(input())
a = sorted([int(i) for i in input().split()])
cnt = 1
for ai in a:
  cnt *= ai
  if cnt > 10 ** 18:
    print(-1)
    exit()
print(cnt)

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 = list(map(int,inpuut().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 = map(float, input().split())
b *= 1000
c = a*b
print(c//1000)


a,b = map(float, input().split())
b *= 1000
c = a*b
print((1+c)//1000)


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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
import math

def using_sqrt(limit,elm):
    n = 0
    if limit < 2:
        return 0

    elm.append(2)

    for k in range(3, limit+1,2):
        factor = 0

        
        if k % 2 == 0 and k != 2:
            continue

        
        for divisor in range(2, math.floor(math.sqrt(k))+1):
            if k % divisor == 0:
                factor += 1

        if factor == 0:
            elm.append(k)
            n += 1

    return n


N = int(input())
A = []

using_sqrt(N,A)

A_len=len(A)

for i in range(A_len):
    chk = A[i]
    while True:
        chk *= A[i]
        if chk <= N:
            A.append(chk)
        else:
            break

A.sort()

A_len=len(A)
cnt = 0
chk_N = N
for i in range(A_len):
    if chk_N % A[i] == 0:
        chk_N = int(chk_N / A[i])
        cnt += 1
        
    if chk_N == 1:
        break

print(cnt)


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

ans=A*B

print(ans)


Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

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

        
           


k=int(input())
mal=1
a=[]      
for i in range(1,k+1):
      n=int(input())
      a.append(n)      
for i in range(0,len(a)):
            mal=mal*a[i]
if(mal<=10**18):
    print(mal)
else:
    print(-1)


k=int(input())
mal=1      
n=list(map(int,input().split()))
      
          
for i in range(0,len(n)):
            mal=mal*n[i]
            if(mal>=10**18):
                print(-1)
                break
print(mal)

    

            


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

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

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

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

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

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

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 sys
input = sys.stdin.readline


def main():
    limit = 10**18
    N = int(input())
    A = list(map(int, input().split()))
    assert N == len(A)
    answer = 1
    for i in A:
        answer *= i
        if answer > limit:
            print("-1")
            exit()
        elif answer == 0:
            print(answer)
            exit()
    print(answer)


if __name__ == '__main__':
    main()


import sys
input = sys.stdin.readline


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):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

n, *a = map(int, read().split())
if 0 in a:
    print('0')
    exit()
ans = 1
for x in a:
    ans = ans * x
    if ans > 10 ** 18:
        print('-1')
        exit()
print(ans)

import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

import math;print(math.prod(map(int,input().split())))

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

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

listed = input().split()
mul = 1
for num in listed:
  num = int(num)
  if num == 0:
    mul = 0
    break
  if mul != -1:
    mul *= num
    if mul > 10**18:
      mul = -1
print(int(mul))

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

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

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 = int(input()), 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):
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):
if 1<=A<=100 and 1<=B<=100:
  print(A*B)

A=int(input())
B=int(input())
if 1<=A<=100 and 1<=B<=100:
  print(A*B)

str=input()
arr=str.split('　')
A=int(arr[0])
B=int(arr[1])
if 1<=A<=100 and 1<=A<=100:
  print(A*B)

input(A)
if 1<=A<=100 and 1<=B<=100:
    print(A*B)
    

str=input()
arr=str.split('')
A=int(arr[0])
B=int(arr[1])
if 1<=A<=100 and 1<=A<=100:
  print(A*B)

A=int(input())
B=int(input())
if 1<=A<=100 and 1<=B<=100:
  print(A*B)

str=input()
arr=str.split(' ')
A=int(arr[0])
B=int(arr[1])
if 1<=A<=100 and 1<=A<=100:
  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):
N = int(input())
num = list(map(int, input().split()))

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

L, R = map(int,input().split())

print(L*R)

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

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

Verdicts: Wrong Answer

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
def Multiplication1():

    
    num_a, num_b = map(int, input().split())

    output = num_a*num_b

    if (num_a >=1) & (num_a <= 100) & (num_b >= 1) & (num_b <= 100):
        print(num_a, num_b)
        print(output)

if __name__ == '__main__':
    Multiplication1()

def Multiplication1():

    
    num_a, num_b = map(int, input().split())

    output = num_a*num_b

    print(output)

if __name__ == '__main__':
    Multiplication1()

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

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
import numpy as np
N = int(input())
L = list(map(int, input().split()))
L = np.array(L)

ans = L.prod()
if (ans > pow(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):
import numpy as np

_ = input()
data = list(map(int, input().split()))
p = np.prod(data)

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

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,b)

answer = a * b


print(answer)

# 169A



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

answer = a * b


print(answer)

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


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a,b = list(map(int,input().split()))
pritn(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):
n = int(input())
a = list(map(int, input().split()))
if 0 in a:
    print(0)
else:
    ans = 1
    for i in a:
        ans *= i
        if ans > 10**18:
            print(-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 = input()
b = input()
print(a*b)

if(1<=a<=100 || 1<=b<=100)
	int(a) = input()
	int(b) = input()
	print(a*b)
else
	print("invail")

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

if(1<=a<=100 || 1<=b<=100)
	a = int(input())
	b = int(input())
	print(a*b)
else
	print("invail")

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

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):
import functools
import operator
n = int(input())
number = map(int,input().split())
X = functools.partial(functools.reduce, operator.mul)
s=X(number)
if s>=pow(10,18):
    print(-1)
else:
    print(s)

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)


mult_pair = input()

indiv = mult_pair.split(" ")
indiv = list(map(int, indiv))
product = indiv[0] * indiv[1]
print(product)


Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

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

a = list(input().split())
a = [int(i) for i in a]
ans=1

if len(a) % 2 == 1: 
  for i in range(1, int(len(a)/2)+2):
    if ans > 10**18 or ans == 0:
      break
    if a[i-1] == 1:
      continue
    if i == int(len(a)/i) + 1:
      ans = ans*a[i-1]
    else:
      ans = ans*a[i-1]*a[-1*i]
    
else:
  for i in range(0, int(len(a)/2)):
    if ans > 10**18 or ans == 0:
      break
    if a[i-1] == 1:
      continue
    ans = ans*a[i]*a[-1 - i]
    

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


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

b = b.replace('.','')

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

print(ans)

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

print(a*b)

Verdicts: Wrong Answer

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
A,B = input()
C = A * B
print(C);

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

A = input()
B = input()

print(A * B)

def main():
  
	n = int(input())
	a = list(map(int,input().split()))
	uppest = pow(10 , 18)

	ans = 1

	if 0 in a:
  		print (0)
  		return

	for s in a:
	  	ans *= s
  		if ans > uppest:
    			print(-1)
    			return
  
	print(ans)

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):
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 = 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):
n,*a=map(int,open(0).read().split())
s=1
if 0 in a:
    print(0)
    exit()
for i in a:
    s*=i
    if  s > 10**18:
        print(-1)
        exit()
print(s)

print(eval(input().replace(" ", "*")))

Verdicts: Wrong Answer

Accepted
Problem: Compute A \times B.

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

if 0 in A:
  print(0)
  
for a in M:
    mult *= a
    if mult> 1000000000000000000:
        print(-1)
        
print(mult)

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)

# 169A




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



print(a * b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a = imput("please imput number 1st:")
b = imput("please imput number 2nd:")
c = a * b

if (1 <= a <= 100) and (1 <= b <= 100):
  print(c)
  else:
    print("check number again")
end

A = input("Please input 1st number: ")
B = input("Please input 2nd number: ")

if int(A) >= 1 and int(A) <= 100:
  if int(B) >= 1 and int(B) <= 100:
    C = int(A) * int(B)
    print("We have" + str(A) + " x " + str(B) + " = " + str(C) + ".")
  else:
    print("Please check Number B side")
else:
  print("Please check Number A side")

print("check end.")


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

A = input("Please input 1st number: ")
B = input("Please input 2nd number: ")

if A <= 1 and A >= 100:
  if B <= 1 and B >= 100:
    C = A * B
    print("We have" + str(A) + " x " + str(B) + " = " + str(C) + ".")
  else:
    print("Please check Number B side (1 <= 100)")
else:
  print("Please check Number A side (1 <= 100)")

print("check end.")

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

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

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


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

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

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

import decimal

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

Verdicts: Wrong Answer

Accepted
Problem: Compute A \times B.

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

A=input()
B=input()

print(int(A)*int(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):
import numpy as np
from operator import mul
from functools import reduce
N = int(input().strip())
A = list(map(int,input().split()))
x = reduce(mul, A)
if x > 1000000000000000000:
    print("-1")
else:
    print(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)


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):
#!/usr/local/bin/python3
# coding: utf-8

import math
ha = input()
kita = ha.split(" ")
a = int(kita[0])
b = int(kita[1].replace(".",""))
m = a*b
m = str(m)
print(m[:-2])

#!/usr/local/bin/python3
# coding: utf-8
n = input()
hairu = input()
kita = hairu.split(" ")
seki = 1

try:
    for c in kita:
        if seki > 10**18:
            print("-1")
            break
        else:
            seki = seki * int(c)
            if seki > 10**18:
                print("-1")
            else:
                print(seki)
except:
    print("-1")




#!/usr/local/bin/python3
# coding: utf-8
hairu = input()
kita = hairu.split(" ")
a = int(kita[0])
b = int(kita[1])

print(a*b)

Verdicts: Wrong Answer

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


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



Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
a=4
b=8

print(a*b)


a=4
b=8

answer= a*b
print(answer)


a=2
b=5

print(a*b)

a=100
b=100

print(a*b)


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):
# -*- coding: utf-8 -*-

a = int(input())

b = int(input())


print(a*b)

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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

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

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

Verdicts: Wrong Answer

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
A, B =nap(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):
# coding: utf-8
import string
 
n = int(input())
a = list(map(int,input().split()))
res = 1
for i in range(n):
    res *= a[i]
    if(res>pow(10,18)):
      	break
 
if(res>pow(10,18)):
    print(-1)
else:
    print(res)

# coding: utf-8
import string

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

Verdicts: 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):
from sys import stdin
from math import floor

def main():
    for line in stdin:
        factors_str = line.split()
        break

    a = factor[0]
    b = factor[1] * 100
    prod = a * b / 100

    print(floor(prod))

main()

from sys import stdin
from statistics import median


def main():
    i = 0
    n = 10**10
    a = []
    b = []
    for line in stdin:
        if i == 0:
            n = int(line)
            i += 1
            continue
        (ai, bi) = line.split()
        a.append(int(ai))
        b.append(int(bi))
        i += 1
        if i > n:
            break

    a_mid = median(a)
    b_mid = median(b)
    if a_mid == b_mid:
        print(1)
        return
    if b_mid - a_mid < 1:
        print(3)
        return
    if n % 2 == 0:
        print(int(b_mid - a_mid) * 2 + 1)
    else:
        print(int(b_mid - a_mid) + 1)

main()

from sys import stdin

def main():
    for line in stdin:
        factors = line.split()
        break

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

main()

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
print(map(lambda x,y: x*x, map(int, input("").split())))

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)

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

def mp(nums):
  n = 1
  limit = 10**18
  for num in nums:
    n *=num
    if n > limit:
      print(-1)
      return
  print(n)

mp([int(x) for x in inp.split(" ")])


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

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

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

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

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

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


Verdicts: 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):
a, b = input()
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(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=input().split()
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=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):
def main():
    arg = int(input())
    ans = arg + arg ** 2 + arg ** 3
    print(str(ans))


if __name__ == '__main__':
    main()


def main():
    a, b = (int(i) for i in input().split())
    print(str(a * b))


if __name__ == '__main__':
    main()


Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

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

pirnt(n*m)

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

print(n*m)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

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

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

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

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


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
%%cython
cdef int solve(int a, int b):
    return a*b

def main():
    a, b = map(int, input())
    print(solve(a,b))

if __name__ == '__main__':
    main()

cdef int solve(int a, int b):
    return a*b

def main():
    a, b = map(int, input())
    print(solve(a,b))

if __name__ == '__main__':
    main()

import sys

input = lambda: sys.stdin.readline().rstrip()


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


if __name__ == '__main__':
    solve()


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

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

for i in range(n):
    s *= a[i]

if s <= 10**18:
    print(s)
elif s > 10**18:
    print("-1")


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

for i in range(n):
    s *= a[i]

if s < 10**18:
    print(s)
elif s > 10**18:
    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):
n = int(input())

def solve(n):
    res = 0
    for i in range(2, int(n ** 0.5) + 2):
        cnt = 0
        while n % pow(i, cnt + 1) == 0:
            n /= pow(i, cnt + 1)
            cnt += 1
            if n % pow(i, cnt + 1) != 0:
                res += cnt
                break
    
    if n != 1:
            res = 1
    
    return res

print(solve(n))


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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

Submission attempts (in order):
N=int(input())
A=[int(x) for x in input().strip().split(" ")]
x=1
c=pow(10,18)
for i in range(N):
    if x<c or x!=0:
        x *=A[i]
    
if x>pow(10,18):
    print("-1")
else:
    print(x)

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

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

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

answer = 1
if 0 in A:
  print(0)
else:
  for i in A:
    answer *= i
    if answer > 10**18:
      answer = -1
      break
  print(answer)
  

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

answer = 1
if 0 in A:
    print(0)
else:
    for i in A:
        answer *= i
        if answer > 10**18:
            print(-1)
            exit()
print(answer)
    


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

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

answer = 1
if 0 in A:
    print(0)
else:
    for i in A:
        answer *= i
        if answer > 10**18:
            print(-1)
            exit()
    print(answer)
    

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

answer = 1
if 0 in A:
  print(0)
else:
  for i in A:
    answer *= i
    if answer > 10**18:
      print(-1)
      exit()
	print(answer)

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


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Compute A \times B.

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

print(x*y)

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

def main()
A=input()
B=input()
x=int(A)
y=int(B)
print(x*y)

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

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

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

print(A*B)

import math
from decimal import Decimal
A,B = input().split()
A = int(A)
B = Decimal(B)
print(int(A*B))

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

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

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):
from operator import mul
from functools import reduce

n = int(input().rstrip())
nums = map(int,input().rstrip().split(' '))

print(reduce(mul, nums))

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

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

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

print(a*b)

input_num = input()
a,b = list(map(lambda x:int(x),input_num.split(" ")))
print(a*b)

Verdicts: Runtime Error

Accepted
Problem: Compute A \times B.

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

a=N%10

if a==2 or a==4 or a==5 or a==7 or a==9:
  print('hon')
elif a==0 or a==1 or a==6 or a==8:
  print('pon')
else:
  print('bon')

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())
r = a * b
print(r)

print(A*B)

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

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

answer　= a * b

print(answer)




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



answer = a * b


print(answer)

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

ans = functools.reduce(operator.mul, a)
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):
import sys
from collections import deque
import copy
def main():
    A,B = map(int, input())
    print(A * B)

if __name__ == '__main__':
    main()


import sys
from collections import deque
import copy
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):
a,b = [int(e) for e in input().split()]
print(a*b)2 5

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

Verdicts: Runtime Error

Accepted