Problem:


Score : 100 points

Problem Statement

Compute A \times B.

Constraints

1 \leq A \leq 100

1 \leq B \leq 100

All values in input are integers.

Input

Input is given from Standard Input in the following format:

A B

Output

Print the value A \times B as an integer.

Sample Input 1

2 5

Sample Output 1

10

We have 2 \times 5 = 10.

Sample Input 2

100 100

Sample Output 2

10000



Sample input:
2 5


Sample output:
10

Submission status: Runtime Error

Solution code:
def main():
    a = int(input())
    b = input()
    lst2 = b.split()
    if '0' in lst2:
        print(0)
        return

    pro = 1
    for i in lst2:
        pro *= int(i)
        if (pro > 1000000000000000000):
            print(-1)
            return 
    print(pro)    

main()

Submission status: Runtime Error

Solution code:
a=int(input())
b=input()
lst2=b.split()

pro=1
for i in lst2:
    pro*=int(i)

if (pro > 1000000000000000000):
        print(-1)
else:print(pro)

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

Solution code:
a,b= input().split()
print(a*b)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N, M = map(int, input())

print(N*M)

Submission status: Runtime Error

Solution code:
n=input()
s=list(map(int,input().split())
sum=1
for i in s:
   sum=sum*i
if sum>10**18:
       print(-1)
else:
       print(sum)

Submission status: Runtime Error

Solution code:
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()

Submission status: Runtime Error

Solution code:
# include <bits/stdc++.h>
using namespace std;

int main(){
	int a,b;
	cin >> a >> b;
	cout << a*b << endl;
}

Submission status: Runtime Error

Solution code:
n = int(input())
l = list(map(int, input().split()))
 
def code(a):
    pro = 1
    if 0 in a:
        print(0)
    else:
        for i in a:
            pro *= i
            if pro > (10 ** 18):
                print(-1)
                return
        print(pro)
 
code(l)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b = input().split()
print(a * b)

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

Solution code:
n = int(input())
list = list(map(int, input().split()))
ans = 1

for i in range(n):
    ans = ans * list[i]

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

Submission status: Runtime Error

Solution code:
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

n = int(input())
if n==1:
  print(0)
else:
  arr = factorization(n)
  trial_list = []
  for p in arr:
    i = p[0]
    j = p[1]
    for k in range(1,j+1):
      trial_list.append(i**k)
  sorted(trial_list)
  cnt=0
  for i in trial_list:
    if n%i==0:
      cnt+=1
      n//=i
  print(cnt)

Submission status: Runtime Error

Solution code:
import sys

#入力する値の個数N
N = input()

#入力される値 A
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)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
A=int(input())
B=int(input())
if (A>=0 and A<=100) and (B>=0 and B<=100):
  print("A X B =",A*B)
else:
  print (NA)

Submission status: Runtime Error

Solution code:
n = int(input())
arr = input().split()


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

print(mult())

Submission status: Runtime Error

Solution code:
x = int(input())
y = int(input())

print(x*y)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

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)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
A = [int(x) for x in input().split()]  
A.sort(reverse=True)

if A[-1]==0:
  print(0)
  exit()
  
mul = A[0]
i = 1
while mul<=10**18 and i<N:
  mul*=A[i]
  i += 1
  
if mul>10**18:
  print(-1)
else:
  print(mul)

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

Solution code:
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])

Submission status: Runtime Error

Solution code:
N = int(input())
p = [int(i) for i in input().split()]
ans = 1

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

Submission status: Runtime Error

Solution code:
ans = A*B
print(ans)

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

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

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

print(ans)

Submission status: Runtime Error

Solution code:
x = int(input())

for i in range(x,0,-1):
  j = int(i**0.5)
  if i==j**2:
    print(i)
    exit()

Submission status: Runtime Error

Solution code:
a

Submission status: Runtime Error

Solution code:
x, y = map(int, input())
print(x * y)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A,B = input().split()
print(A*B)

Submission status: Runtime Error

Solution code:
import math
from collections import deque
from collections import defaultdict
import itertools as it

#自作関数群
def readInt():

Submission status: Runtime Error

Solution code:
a,b=input().split()
print(a*b)

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

Solution code:
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")

Submission status: Runtime Error

Solution code:
a=input()

a=a.split()

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

c=x*y

print(c)

Submission status: Runtime Error

Solution code:
# import math
n = int(input())
a = list(map(int, input().split()))


def f(list):
    a = 1
    for i in list:
        a = a*i
    return a


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

    # log_prod_a = sum(map(math.log10, a))
    # if log_prod_a < 18.0:
    #     print(f(a))
    # else:
    #     print(-1)

Submission status: Runtime Error

Solution code:
import math
n = int(input())
a = list(map(int, input().split()))


def f(list):
    a = 1
    for i in list:
        a = a*i
    return a


if 0 in a:
    print(0)
else:
    prod = 1
    for i in a:
        prod *= i
        if prod > 10**18:
            print(-1)
            return
    print(prod)

    # log_prod_a = sum(map(math.log10, a))
    # if log_prod_a < 18.0:
    #     print(f(a))
    # else:
    #     print(-1)

Submission status: Runtime Error

Solution code:
%%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()

Submission status: Runtime Error

Solution code:
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()

Submission status: Runtime Error

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

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

f()

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
A, B = input().split()
1 <= A <= 100
1 <= B <= 100
sum = A*B
print(sum)

Submission status: Runtime Error

Solution code:
1<=A<=100
1<=B<=100
A = input(int())
B = input(int())
sum = A*B
print(sum)

Submission status: Runtime Error

Solution code:
A = 1<=A<=100
B = 1<=B<=100
sum = A*B
print(sum)

Submission status: Runtime Error

Solution code:
a1 = int(input())
b2 = input().split(" ")

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

check(a1 , b2)

Submission status: Runtime Error

Solution code:
a1 = int(input())
b2 = input().split(" ")

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

check(a1 , b2)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

print(a*b)

Submission status: Runtime Error

Solution code:
A= input()
B= input()


print(int(A)*int(B))

Submission status: Runtime Error

Solution code:
A,B = input()


print(A*B)

Submission status: Runtime Error

Solution code:
A = input()
B = input()

print(A*B)

Submission status: Runtime Error

Solution code:
A

Submission status: Runtime Error

Solution code:
a, b = input().split()

print(a*b)

Submission status: Runtime Error

Solution code:
a_str = input()
b_str = input()
a = int(a_str)
b = int(b_str)
print(a*b)

Submission status: Runtime Error

Solution code:
a_str = input()
b_str = input()
a = int(a_str)
b = int(b_str)
c = a * b
print(c)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
nums = int(input().split())

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

print(a * b)

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

Solution code:
N=(int(input()))//10
if N==2 or N==4 or N==5 or N==7 or N==9:
  print("hon")
elif N==0 or N==1 or N==6 or N==8:
  print("pon")
else:
  print("bon")

Submission status: Runtime Error

Solution code:
x=int(input())
y=int(input())
print(x*y)

Submission status: Runtime Error

Solution code:
n,s=map(int,input().split())
a=list(map(int,input().split()))
d=[[0]*(s+1) for _ in range(n+1)]
d[0][0]=1
for j in range(0,s+1):
    for i in range(1,n+1):
        d[i][j]=2*d[i-1][j]
        if a[i-1]<=j:
            d[i][j]+=d[i-1][j-a[i-1]]
        d[i][j]=d[i][j]%998244353
print(d[n][s])

Submission status: Runtime Error

Solution code:
N = int(input())
A = input().split()
 
 
#リストAの要素をすべて掛け算
product = 1
for i in A:
    product *= int(i)
 
if product > 10 ** 18:
    product = -1
 
print(product)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
num[]=input()
x = num[0]*num[1]
print(x)

Submission status: Runtime Error

Solution code:
from subprocess import run
from os import path

if not path.exists("./tmp215378912379"):
  with open("./tmp215378912379.cpp", mode='w') as f:
    f.write("""
  #include <bits/stdc++.h>
  template <class T>
  concept Integral = std::is_integral_v<T>;

  int main() {
    auto f = []<Integral T>(T a, T b) { return a * b; };
    int a, b;
    std::cin >> a >> b;
    std::cout << f(a, b) << std::endl;
  }
  """)

  run("g++ -o ./tmp215378912379 -std=gnu++2a fconcepts ./tmp215378912379.cpp")

run("./tmp215378912379")

Submission status: Runtime Error

Solution code:
N=int(input())
A=list(map(int,input().split()))
result=1
for i in A:
    result*=i
    if result>10**18:
        print(-1)
        return
print(result)

Submission status: Runtime Error

Solution code:
print(A*B)

Submission status: Runtime Error

Solution code:
A*B

Submission status: Runtime Error

Solution code:
import sys

num_list=sys.stdin.split()

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

Submission status: Runtime Error

Solution code:
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()

Submission status: Runtime Error

Solution code:
A, B = input().split()
print(A * B)

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())
return A*B

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())
print(A*b)

Submission status: Runtime Error

Solution code:
A, B = [int(i) for i in input()]
print(A*B)

Submission status: Runtime Error

Solution code:
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(" ")])

Submission status: Runtime Error

Solution code:
l

Submission status: Runtime Error

Solution code:
1 1

Submission status: Runtime Error

Solution code:
f

Submission status: Runtime Error

Solution code:
count = int(input())
if count == 0:
  result = 0
else:
  nums_str = input().split()
  nums_int = []
  for strn in nums_str:
    nums_int.append(int(strn))
 
    result = 1

    if 0 in nums_int:
      result = 0
    else:
      for intn in nums_int:
        result *= intn
        if result > 1000000000000000000:
          result = -1
          break
    
print(result)

Submission status: Runtime Error

Solution code:
a, b = map(int, input())

print(a*b)

Submission status: Runtime Error

Solution code:
N = int(input())
A = map(int, input().split())

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

Submission status: Runtime Error

Solution code:
# Name: Md. Obyedullahil Mamum
# ID: 1111050
# Date of submission: 13.6.2020


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

print(A * B)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))
s = 1
for i in a :
  s *= i
  if s > 10**18:
    print("-1")
  else:
    print(s)

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))
s = 1
for i in a :
  s *= i
if s > 10**18:
  print("-1")
else:
  print(s)

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

Solution code:
N = input()
A = input().split()
if '0' in A:
    print(0)
else:
    N = int(N)
    sum = 1
    for i in range(N):
        sum *= int(A[i])
        if sum > 1000000000000000000:
            sum = -1
            break
    print(sum)

Submission status: Runtime Error

Solution code:
a,b,c,d = map(int,input(). split ())
print(a*b)

Submission status: Runtime Error

Solution code:
int a=input()
int b=input()

print(a*b)

Submission status: Runtime Error

Solution code:
m,n = map(int(input().split()))

print(m*n)

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

Solution code:
N = int(input())
nums = map(int, input().split())

ans = 1
for n in nums:
  ans *= n

if ans == 0:
  print(0)
elif ans > 10**18:
  print(-1)
else:
  print(ans)

Submission status: Runtime Error

Solution code:
import numpy as np

#リスト内包表記
N = int(input())
A = [int(x) for x in input().split()]

#リストの総積を計算する
seki = np.prod(A)

#出力
if seki > 10**18:
    print("-1")
elif 0 in A:
    print("0")
else:
    print(seki)

Submission status: Runtime Error

Solution code:
import operator

#リスト内包表記
N = int(input())
A = [int(x) for x in input().split()]

#リストの総積を計算する
seki = reduce(operator.mul, A, 1)

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

Submission status: Runtime Error

Solution code:
import operator

#リスト内包表記
N = int(input())
A = [int(x) for x in input().split()]

#リストの総積を計算する
seki = reduce(operator.mul, a, 1)

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

Submission status: Runtime Error

Solution code:
tmp = input().split()
   ans = tmp[0] * tmp[1]
  print(ans)

Submission status: Runtime Error

Solution code:
if __name__ == '__main__':
    n = int(input())
    arr = list(map(int, input().split()))
    product = arr[0]
    if 0 in arr:
        product = 0
    else:
        for i in range(1, n):
            product *= arr[i]
            if product > (10**18):
                product = -1
                break
    print(product)

Submission status: Runtime Error

Solution code:

Submission status: Runtime Error

Solution code:
a = int(input()) b = int(input())
print(int(a * b))

Submission status: Runtime Error

Solution code:
a = int(input()) b = int(input())
print(a * b)

Submission status: Runtime Error

Solution code:

l=[]
for i in range(2):
    b = input().split()
    b = [ int(b[j]) for j in range(len(b))]
    l.append(b)

N = l[0][0]
X = l[0][1]
li =l[1]
li.sort()
s,count = 0,0
import itertools
import math
for i, _ in enumerate(li, 1):
    for j in itertools.combinations(li, r=i): 
        s = sum(j)
        p = X-s
        if s == X:
            count+=2**(N-i)
            if p < 0:
                break
    if sum(li[:i]) > X:
        break
print(count % 998244353)

Submission status: Runtime Error

Solution code:
def main():
  N = int(input())
  A = list(map(int, input().split()))
  
  if 0 in A:
    print(0)
    return
  
  prod = 1
  for el in A:
    prod *= el
    if prod > 1e18:
      print(-1)
      return
  print (prod)
  
main()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
c=input()
A,B=split(c)
print(int(A)+int(B))

Submission status: Runtime Error

Solution code:
c=input()
A,B=split(c)
print(A+B)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A=input()
B=input()
x=int(A)
y=int(B)
print(x*y)

Submission status: Runtime Error

Solution code:
A=input()
B=input()
x=int(A)
y=int(B)

print(x*y)

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def prime_factors(n):
    i = 2
    factors = []
    while i * i <= n:
        if n % i:
            i += 1
        else:
            a=n//i 
            if (a+1)*i<=n:
              a+=1
            n=a
            factors.append(i)
    if n > 1:
        factors.append(n)
    return factors
N=int(input())
a=prime_factors(N)
current=0
index=0
anslist=[]
for i in a:
  if i!=current:
    current=i
    anslist.append(1)
  else:
    anslist[-1]+=1
ans=0
for i in anslist:
  k=1
  while (k*(k+1))<=2*i:
    k+=1
  k-=1
  ans+=k
print(ans)

Submission status: Runtime Error

Solution code:
lenght = int(input())

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

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

Submission status: Runtime Error

Solution code:
lenght = int(input())

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

でf

first_val = x[0]
for i in range(lenght-1):
  first_val *= x[i+1]

if first_val > 1e18:
  first_val = -1

print(first_val)

Submission status: Runtime Error

Solution code:
N = int(input())
A = [int(ai) for ai in input().split()]
ans = 1
if 0 in A:
  print(0)
else:
  for ai in A:
    ans *= ai
    if ans > 10**18:
      print(-1)
      break
  
  print(ans)

Submission status: Runtime Error

Solution code:
N = int(input())
 
A=[int(i) for i in input().split()]
 
answer=1
if 0 in A:
  print(0)
else:
  for i in range(N):
    answer = answer*A[i]
    if answer>10**18:
      print(-1)
      break
  else:
    print(answer)

Submission status: Runtime Error

Solution code:
a = input()
b = input()
print(a*b)

Submission status: Runtime Error

Solution code:
a,b = map(int,intput().split())
p = a * b
print(p)

Submission status: Runtime Error

Solution code:
num1 = int(input())
num2 = int(input())
seki = num1 * num2
print(seki)

Submission status: Runtime Error

Solution code:
a, b = int(input())
print(a * b)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b = map(int, input().string())
return a*b

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
str_n = input()
str_an = input()

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

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

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

Submission status: Runtime Error

Solution code:
int A=input()
int B=input()

print(A*B)

Submission status: Runtime Error

Solution code:
def main(x,y):
    return x*y

main(A,B)

Submission status: Runtime Error

Solution code:
def main():
    return A*B

main()

Submission status: Runtime Error

Solution code:
1 10000

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a b=int(input())
c=a*b
print(c)

Submission status: Runtime Error

Solution code:
a,b= int(input())
c= a*b
print(c)

Submission status: Runtime Error

Solution code:
a= int(input())
b= int(input())
c=a*b
print(c)

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
c=a*b
print(c)

Submission status: Runtime Error

Solution code:
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()

Submission status: Runtime Error

Solution code:
import bisect
from collections import defaultdict as dd

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

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

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

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

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

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

print(res)

Submission status: Runtime Error

Solution code:
a, b = input().split()
print(a*b)

Submission status: Runtime Error

Solution code:
n = int(input())
l = list(map(int,input(). split ()))
 
a = 1
for i in l:
	a *= i
	if a > 1e18:
		a = -1
		break
print(a)

Submission status: Runtime Error

Solution code:
l = map(int, input())
 
a = 1
for i in l:
	a *= i
	if a > 1e18:
		a = -1
		break
print(a)

Submission status: Runtime Error

Solution code:
n, *l = map(int, open(0).read().split())

a = 1
for i in l:
	a *= i
	if a > 1e18:
		a =-1
		break
ptint(a)

Submission status: Runtime Error

Solution code:
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.")

Submission status: Runtime Error

Solution code:
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.")

Submission status: Runtime Error

Solution code:
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

Submission status: Runtime Error

Solution code:
print(a*b)

Submission status: Runtime Error

Solution code:
a,b = [int(input()) for _ in range(2)]
print(a*b)

Submission status: Runtime Error

Solution code:
N=int(input())
A_list=list(map(int,input().split()))
ans=1
for i in A_list:
    ans*=i
    if ans>10**18:
        ans=-1
        break 
for i in A_list:
    if i==0:
        ans=0
print(ans)

Submission status: Runtime Error

Solution code:
N=int(input())
A_list=list(map(int,input().split()))
ans=1
for i in range(N):
    ans=ans*A_list[i]
    if ans>10**18:
        ans=-1
        break 
for i in A_list:
    if i==0:
        ans=0
print(ans)

Submission status: Runtime Error

Solution code:
A,B=map(int,input().split())
c=a*b
print(c)

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
c=a*b
print(c)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
import sys

# スペース区切りの整数の入力
N, *d = map(int, open(0).read().split())

if 0 in d:
  print(0)
  return
  
for O in d:
	A = A * O
	#print(O)
	if A > 1000000000000000000:
		A = -1
		break

print(A)

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

print(a*b)

Submission status: Runtime Error

Solution code:
a, b: int = map(int, input().split())

print(a * b)

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())

X =A*B
print(X)