Problem:


Score : 100 points

Problem Statement

Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together. He cannot do any other calculation.

Given are two integers A and B.

If Takahashi can calculate A \times B, print the result; if he cannot, print -1 instead.

Constraints

1 \leq A \leq 20

1 \leq B \leq 20

All values in input are integers.

Input

Input is given from Standard Input in the following format:

A B

Output

If Takahashi can calculate A \times B, print the result; if he cannot, print -1.

Sample Input 1

2 5

Sample Output 1

10

2 \times 5 = 10.

Sample Input 2

5 10

Sample Output 2

-1

5\times 10 = 50, but Takahashi cannot do this calculation, so print -1 instead.

Sample Input 3

9 9

Sample Output 3

81



Sample input:
2 5


Sample output:
10

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
bool1=False
#print(a,"to",b)
for i in range(10):
	for j in range(10):
		#print(i)
		if i*j == a*b:
			#print("a")
			bool1=True
			#print(bool1)
			break
		else:
			#print("j={0}".format(j))
			pass
	if bool1==True:
		break
#print(bool1)
if bool1==True:
	print(a*b)
else:
	print(-1)

Submission status: Wrong Answer

Solution code:
a,b=(int(x) for x in input().split())
 
if a<=10 and b<=10:
  print(a*b)
else:
  print(-1)

Submission status: Wrong Answer

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

if a > 9 and b > 9:
  ans = -1
else:
  ans = a*b
print(ans)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a*b<=81:
  print(a*b)
else:
  print(-1)

Submission status: Wrong Answer

Solution code:
from sys import stdin

a,b = [int(x) for x in stdin.readline().rstrip().split()]

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

Submission status: Wrong Answer

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

C=A*B

if C>81:
	print("-1")
elif C<1:
	print("-1")
else:
	print(C)

Submission status: Wrong Answer

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

C=A*B

if C>81:
	print(-1)
elif C<1:
	print(-1)
else:
	print(C)

Submission status: Wrong Answer

Solution code:
A, B = list(map(int, input().split()))
if 1 < A < 9 and 1 < B < 9 :
	print(A * B)
else :
	print(-1)

Submission status: Wrong Answer

Solution code:
A, B = list(map(int, input().split()))
if A < 9 and B < 9 :
	print(A * B)
else :
	print(-1)

Submission status: Wrong Answer

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

if a >= 10:
  print(-1)
if b >= 10:
  print(-1)
else:
  print(a*b)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if (a < 10) and (b << 10):
    print(a * b)
else:
    print(-1)

Submission status: Wrong Answer

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

if a < 10 or b <10:
  print(a * b)
else:
  print(-1)

Submission status: Wrong Answer

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

print(a * b)

Submission status: Wrong Answer

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

ans = -1

if A < 10 and A > 1:
    if B < 10 and B > 1:
        ans = A * B
print(ans)

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
if a * b <= 81:
  print(a * b)
else:
  print(-1)

Submission status: Wrong Answer

Solution code:

N_list = []

for i in range(1,10):
    for j in range(1,10):
        N_list.append(i*j)
A_B = list(map(int, input().split()))
s = A_B[0]*A_B[1]
if A_B[0] < 10 & A_B[1] < 10:    
    if s in N_list:
        print(s)
    else :
        print("-1")
else :
    print("-1")

Submission status: Wrong Answer

Solution code:

N_list = []

for i in range(1,10):
    for j in range(1,10):
        N_list.append(i*j)
A_B = list(map(int, input().split()))
s = A_B[0]*A_B[1]
if s in N_list:
    print(s)
else :
    print("-1")

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if(a<10 & b<10):
  print(a*b)
else:
  print(-1)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if(a*b<=81):
  print(a*b)
else:
  print(-1)

Submission status: Wrong Answer

Solution code:
inp = input()
a = inp.split(" ")[0]
b = inp.split(" ")[1]
if(len(a)==1 and len(b)==1):
  print(int(a)*int(b))

Submission status: Wrong Answer

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

if (a > 10) or (b > 10):
  print(-1)
else:
  print(a*b)

Submission status: Wrong Answer

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

if a <= 9 and b <= 0:
  print(a*b)
else:
  print(-1)

Submission status: Wrong Answer

Solution code:

class person():
  def math(self, A, B):
    if A < 10:
      if B < 10:
        result = A*B
      else:
        result = -1
    else:
      result = -1
 
    return result
 
takahashi = person()
A, B = map(int,input().split())
result = takahashi.math(A, B)

Submission status: Wrong Answer

Solution code:
import random

class person():
  def math(self, A, B):
    if A < 10:
      if B < 10:
        result = A*B
      else:
        result = -1
    else:
      result = -1

    return result

takahashi = person()

A = random.randrange(0, 20)
B = random.randrange(0, 20)
result = takahashi.math(A, B)
print(result)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
from collections import defaultdict,deque
from heapq import heappush, heappop
from bisect import bisect_left, bisect_right
import sys, random, itertools, math
sys.setrecursionlimit(10**5)
input = sys.stdin.readline
sqrt = math.sqrt
def LI(): return list(map(int, input().split()))
def LF(): return list(map(float, input().split()))
def LI_(): return list(map(lambda x: int(x)-1, input().split()))
def II(): return int(input())
def IF(): return float(input())
def LS(): return list(map(list, input().split()))
def S(): return list(input().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007
inf = float('INF')

#A
def A():
    a, b = LI()
    def c(x):
        return 1 <= x <= 9
    if c(a) and c(b):
        print(a * b)
        return
    print(0)
    return

#B
def B():
    a = set()
    for i in range(10):
        for k in range(10):
            a.add(i * k)
    x = II()
    if x in a:
        print("Yes")
    else:
        print("No")
    return

#C
def C():
    n = II()
    factlize = []
    ans = inf
    for i in range(1, int(sqrt(n)) + 1):
        if n % i == 0:
            ans = min(ans, n // i + i - 2)
    print(ans)

    return

#D
def D():
    return

#E
def E():
    def solve(m):
        a1 = a[::-1]
        f1 = f[::1]
        res = 0
        for i in range(n):
            if a1[i] * f1[i] <= m:
                continue
            k = m // f1[i]
            res += a1[i] - k
            if res > K:
                return False
        return True

    n, K = LI()
    a = LI()
    a.sort()
    f = LI()
    f.sort()
    ok = max(a) * max(f)
    ng = -1
    while ok - ng > 1:
        mid = (ok + ng) // 2
        if solve(mid):
            ok = mid
        else:
            ng = mid
    print(ok)
    return

#F
def F():
    return


#Solve
if __name__ == '__main__':
    A()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
usrInput = input()
splitedInput = usrInput.split()
clearFlag = []

for i in range(2):
    if int(splitedInput[i]) < 10:
        clearFlag.append(True)
    else:
        clearFlag.append(False)

for i in range(2):
    print(bool(clearFlag[i]))

if bool(clearFlag[0]) == True and bool(clearFlag[1]) == True:
    print(int(splitedInput[0]) * int(splitedInput[1]))
else:
    print(-1)

Submission status: Wrong Answer

Solution code:
usrInput = input()
splitedInput = usrInput.split()
clearFlag = []

for i in range(2):
    if int(splitedInput[i]) < 10:
        clearFlag.append(True)
    else:
        clearFlag.append(False)

for i in range(2):
    print(bool(clearFlag[i]))

if bool(clearFlag[0]) == True and bool(clearFlag[1]) == True:
    print(int(splitedInput[0]) * int(splitedInput[1]))
else:
    print(-1)

Submission status: Wrong Answer

Solution code:
usrInput = input()
splitedInput = usrInput.split()
clearFlag = []

for i in range(2):
    if int(splitedInput[i]) < 10:
        clearFlag.append(False)
    else:
        clearFlag.append(True)

if bool(clearFlag[0]) == True & bool(clearFlag[1]) == True:
    print(int(splitedInput[0]) * int(splitedInput[1]))
else:
    print(-1)

Submission status: Wrong Answer

Solution code:
usrInput = input()
splitedInput = usrInput.split()
clearFlag = []

for i in range(2):
    if int(splitedInput[i]) >= 10:
        splitedInput.append(False)
    else:
        splitedInput.append(True)

if bool(splitedInput[0]) == True & bool(splitedInput[1]) == True:
    print(int(splitedInput[0]) * int(splitedInput[1]))
else:
    print(-1)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a<21 and a>0 and b<21 and b>0:
    ans = a * b
    print(ans)
else:
    print(-1)

Submission status: Wrong Answer

Solution code:
A,B = (int(x) for x in input().split(' '))

if A <= 9 and B <= 9:
	print("yes")
else:
	print("no")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
c = a * b
if 1 <= c <= 81:
    print(c)
else:
    print(-1)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
c = a * b
if 1 <= c <= 81:
    print(c)
else:
    print('-1')

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
if 1 <= A and B <= 9:
    print(A*B)
else:
    print(-1)

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
if 1 <= A and B <= 9:
    print(A*B)
else:
    print('-1')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a<10&b<10:
  print(a*b)
else:
  print(-1)

Submission status: Wrong Answer

Solution code:
inp = list(map(int,input().split()))
a  = inp[0]
b = inp[1]
n = a*b
arr = []
hello = 0
for i in range(1,10):
  for x in range (1,10):
    arr.append(i*x)
for element in arr:
  if element == n:
    hello = 0
    break
  else:
    hello = 1
if hello == 1:
  print(-1)
else:
  print(n)

Submission status: Wrong Answer

Solution code:
inp = list(map(int,input().split()))
a  = inp[0]
b = inp[1]
n = a*b
arr = []
hello = 0
for i in range(2,10):
  for x in range (2,10):
    arr.append(i*x)
for element in arr:
  if element == n:
    hello = 0
    break
  else:
    hello = 1
if hello == 1:
  print(-1)
else:
  print(n)

Submission status: Wrong Answer

Solution code:
inp = list(map(int,input().split()))
a  = inp[0]
b = inp[1]
n = a*b
arr = []
hello = 0
for i in range(2,10):
  for x in range (2,10):
    arr.append(i*x)
for element in arr:
  if element == n:
    hello = 0
    break
  else:
    hello = 1
if hello == 1:
  print("-1")
else:
  print(n)

Submission status: Wrong Answer

Solution code:

try:
  A_str, B_str = input().split()
  A, B = int(A_str), int(B_str)
  print(A*B)
except:
  print(-1)

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split())
import sys

if x>10 or y>10:
    print(-1)
else:
    print(x*y)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A*B<=81:
  print(A*B)
else :
  print("-1")

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A*B<=81:
  print(A*B)
else :
  print(-1)

Submission status: Wrong Answer

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

if a >= 10 or b >= 10:
    print(-1)
else:
    print('Yes')

Submission status: Wrong Answer

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

if a <= 0 or a >= 10 or b <= 0 or b >= 10:
    print('-1')
else:
    print('Yes')

Submission status: Wrong Answer

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

if x<=10 or y<=10:
  print("-1")
else:
  print(x*y)

Submission status: Wrong Answer

Solution code:
a,b = [int(_) for _ in input().split()]
if a<10 and b<10:
    print(a*b)
else:
    print(0)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if 1 <= A & A <= 9 :
    if 1 <= B & B <= 9 :
        print(A*B)
else :
    print(-1)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if 1 <= A <= 9 & 1 <= B <= 9 :
    print(A*B)
else :
    print(-1)

Submission status: Wrong Answer

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

if ans > 81:
    print("-1")
else:
    print(ans)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print(a*b if a<10 and b<10 else 'No')

Submission status: Wrong Answer

Solution code:
n, k = map(int, raw_input().split())
print n < 10 and k < 10

Submission status: Wrong Answer

Solution code:
def m():
     num = input().split()
     l = []
     for i in num:
             l.append(int(i))
     if l[0] >= 10 or  l[1] >= 10:
             print("-1")
     else:
             a = l[0] * l[1]
             print(a)

Submission status: Wrong Answer

Solution code:
print(1)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python3
# coding: utf-8

# 整数 > 整数型
def I(): return int(input())

# 整数列 '1 2 3 4' > 整数型リスト
def IsIl(): return list(map(lambda x: int(x), input().split()))

# 改行挟む整数列　'1/n 2/n 3/n' > 整数型りすと
def InIl(n): return [input() for i in range(n)]

# 整数列 '1 2' > 整数型タプル
def IsIt(): return map(lambda x: int(x), input().split())

# 改行挟む整数列　'1\n 2\n 3\n' > 整数型たぷる
def InIl(n): return map(input() for i in range(n))

# 文字列 'abcd' > 文字型リスト
def SsSl(): return list(map(lambda x: x, input()))

# 整数 '1234' > 整数型リスト

# 文字列 'aba' > 辞書（文字型:個数）{'a':2,'b':1}
def SSd():
    from collections import defaultdict
    A = input() # [int(i) for i in input().split()]
    dd=defaultdict(int)
    for a in A:
        dd[a]+=1
    return dd

n,m=IsIt()

if n*m > 81 or n*m<1:
    print(-1)
else:
    print(n*m)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python3
# coding: utf-8

# 整数 > 整数型
def I(): return int(input())

# 整数列 '1 2 3 4' > 整数型リスト
def IsIl(): return list(map(lambda x: int(x), input().split()))

# 改行挟む整数列　'1/n 2/n 3/n' > 整数型りすと
def InIl(n): return [input() for i in range(n)]

# 整数列 '1 2' > 整数型タプル
def IsIt(): return map(lambda x: int(x), input().split())

# 改行挟む整数列　'1\n 2\n 3\n' > 整数型たぷる
def InIl(n): return map(input() for i in range(n))

# 文字列 'abcd' > 文字型リスト
def SsSl(): return list(map(lambda x: x, input()))

# 整数 '1234' > 整数型リスト

# 文字列 'aba' > 辞書（文字型:個数）{'a':2,'b':1}
def SSd():
    from collections import defaultdict
    A = input() # [int(i) for i in input().split()]
    dd=defaultdict(int)
    for a in A:
        dd[a]+=1
    return dd

n,m=IsIt()

if n*m > 81:
    print(-1)
else:
    n*m

Submission status: Wrong Answer

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

if a < 1 or a > 9:
    print(-1)

if b < 1 or b > 9:
    print(-1)

print(a * b)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a or b >= 10:
    print(-1)
    exit()
print(a*b)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if 0 <= a and b >= 10:
    print(-1)
    exit()
print(a*b)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a and b >= 10:
    print(-1)
    exit()
print(a*b)

Submission status: Wrong Answer

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

if A >= 10 and B >= 10:
    print(-1)
else:
    print(A*B)

Submission status: Wrong Answer

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

if A < 10 and B < 10:
    print(-1)
else:
    print(A*B)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A>=10 or B>10:
  print(-1)
else:
  print(A*B)

Submission status: Wrong Answer

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

if A * B <= 81:
  print(A * B)
else:
  print("-1")

Submission status: Wrong Answer

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

if A * B <= 81:
  print(A * B)
else:
  print(-1)

Submission status: Wrong Answer

Solution code:
n=list(map(int,input().split()))
a=[i for i in range(1,10)]
ans=0
if n[0] in a and n[1] in a:
  ans=n[0]*n[1]
else:
  ans=-1
  print(a)
print(ans)

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
if a > 10 or b > 10 :
  print(-1)
else:
  print(a * b)

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
if a > 10 or b > 10 :
  print("-1")
else:
  print(a * b)

Submission status: Wrong Answer

Solution code:
A,B = map(int, input('a').split())
 
if A > 10 and B > 10:
    print(A*B)
else:
    print(-1)

Submission status: Wrong Answer

Solution code:
A,B = map(int, input('a').split())

if A > 10 and B > 10:
    print(A*B)
else:
    print('-1')

Submission status: Wrong Answer

Solution code:
def takahashi(A,B):
    if A >10 and B > 10:
        print(A * B)
    else:
        print('-1')

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

takahashi(A,B)

Submission status: Wrong Answer

Solution code:
def takahashi(A,B):
    if A and B > 10:
        print(A * B)
    else:
        print('-1')

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

takahashi(A,B)

Submission status: Wrong Answer

Solution code:
def takahashi(A,B):
    if A and B >= 1:
        if A and B <= 9:
            print(A * B)
        else:
            print('-1')
    else:
        print('-1')

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

takahashi(A,B)

Submission status: Wrong Answer

Solution code:
A, B =(int(i) for i in input().split())
if A<10 & B<10:
    print(A*B)
else:
    print(-1)

Submission status: Wrong Answer

Solution code:
a = input()
b = a.split()
c1 = int(b[0])
c2 = int(b[1])
if (1 <= c1 <= 20 and 1 <= c2 <= 20 ):
    ans = c1*c2
else:
    ans = -1

print(ans)

Submission status: Wrong Answer

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

if (a < 10 or b < 10):
  print(a*b)
else:
  print(-1)

Submission status: Wrong Answer

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

if A >10 or B > 10:
    print(-1)
else:
    print(A*B)

Submission status: Wrong Answer

Solution code:
A,B = (int(nums) for nums in input().split())


if A<10  or B<10:
    print(-1)
else:
    print(A*B)

Submission status: Wrong Answer

Solution code:
A,B = (int(nums) for nums in input().split())


if (A % 10) == 0  or (B % 10) ==0:
    print(-1)
else:
    print(A*B)

Submission status: Wrong Answer

Solution code:
A,B = (int(nums) for nums in input().split())

ansA = divmod(A,10)
ansB = divmod(B,10)

if ansA[1]==0 or ansB[1]==0:
    print(-1)
else:
    print(A*B)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
a, b = map(int, input().split())
if a<10:
  if b<10:
    print(a*b)
# 文字列の入力

Submission status: Wrong Answer

Solution code:
ab = input()
a, b = ab.split(" ")
A = int(a)
B = int(b)

if "0" in a or "0" in b:
    print(-1)
else:
    print(A * B)

Submission status: Wrong Answer

Solution code:
A, B = input().split()
A = int(A)
B = int(B)
 
if(A > 10 or B > 10):
  print(-1)
else:
  print(A*B)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
if ( a > 10 or b > 10 ):
  print(-1)
  exit(0)
print( a * b )

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split())
if (x<1)|(9<x): print(-1)
if (y<1)|(9<y): print(-1)
else: print(x*y)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().rstrip("\n").split(" "))

result = a * b

if 1 <= result <= 99:
  print(result)
else:
  print("-1")

Submission status: Wrong Answer

Solution code:
import sys
 
def main():
  a = sys.argv
  i1 = int(a[1])
  i2 = int(a[2])

  if i1 < 10 and i2 < 10:
    return i1 * i2
  else:
    return -1

Submission status: Wrong Answer

Solution code:
import sys

A, B = map(int, sys.stdin.readline().split())
print(A*B)

Submission status: Wrong Answer

Solution code:
s = input().split()
A = int(s[0])
B = int(s[1])
if A <=20 and B<=20 and A>=1 and B >=1:
  multiple = A*B
else:
  multiple = -1
print(multiple)

Submission status: Wrong Answer

Solution code:
nums = [int(e) for e in input().split()]

if nums[0] <= 9 & nums[1] <= 9:
  print(nums[0]*nums[1])
else:
  print(-1)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a or b >9:
  print(-1)
else:
  print(a*b)

Submission status: Wrong Answer

Solution code:
a,b=map(int, input().split())
if a < 10 & b < 10:
    print(a*b)
else: 
    print(-1)

Submission status: Wrong Answer

Solution code:
a,b=map(int, input().split())
if a < 10 & b < 10:
    print(a,b)
else: 
    print(-1)

Submission status: Wrong Answer

Solution code:
def cul(A, B):
    if A<10 and B<10:
        print(A*B)
    else:
        print(-1)

Submission status: Wrong Answer

Solution code:
0

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
if a > 10 or b > 10:
  print(-1)
else:
  print(a*b)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if A > 9 and B > 9:
    print('-1')
else:
    print(A*B)

Submission status: Wrong Answer

Solution code:
A,B = (int(x) for x in input().split())
if A >=10 or B >10:
	print(-1)
else:
    print(A*B)

Submission status: Wrong Answer

Solution code:

a,b = list(map(int, input().split()))
  
if(1<=a<=9 & 1<=b<=9):
    print(a*b)

else:
    print(-1)

Submission status: Wrong Answer

Solution code:

a,b = list(map(int, input().split()))
  
if(0<=a<=9 & 0<=b<=9):
    print(a*b)

else:
    print(-1)

Submission status: Wrong Answer

Solution code:
a,b=map(int, input().split())
if (a<=9 & b<=9):
  print(a*b)
else:
  print("-1")

Submission status: Wrong Answer

Solution code:
try:
    A = int(input())
    B = int(input())
    if 1 <= A <= 9 and 1 <= B <= 9:
        print(A*B)
    else:
        print("-1")
except:
    print("整数ではありません")

Submission status: Wrong Answer

Solution code:
number = list(map(int, input().split()))
#print(number[0])
#print(number[1])

if 1 <= number[0] and number[0] <= 9:
  if 1 <= number[1] and number[1] <= 9:
    print(number[0] * number[1])
else:
  print('-1')

Submission status: Wrong Answer

Solution code:
import random


A=random.randint(1,20)
B=random.randint(1,20)

if A>=10 or B>=10:
    print(-1)
else:
    print(A*B)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
mind = [1, 2, 3, 4, 5, 6, 7, 8, 9]
if a and b in mind:
    print(a*b)
else:
    print("-1")

Submission status: Wrong Answer

Solution code:
A, B = map(int,input().split())
ans = 1 if (1 <= A <= 9) and (1 <= B <= 9) else -1
print(ans)

Submission status: Wrong Answer

Solution code:
A, B = map(int,input().split())
print((1 <= A <= 9) and (1 <= B <= 9))

Submission status: Wrong Answer

Solution code:
input_str = input()

each_str_array = input_str.split()

# input_strが"1 2"の場合、
# each_str_array = ["1", "2"]

first = int(each_str_array[0])
second = int(each_str_array[1])

if(first > 10):
  print("-1")
elif(second > 10):
  print("-1")
else:
  print(str(first * second))

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Wed Nov  6 21:44:44 2019

@author: over-
"""

A,B=map(int,input().split())
if A>10 and B>10:
    print(A*B)
else:
    print(-1)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print(-1 if a>9 or b>10 else a*b)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
ans = -1 if 0 < a < 10 or 0 < b < 10 else a*b
print(ans)

Submission status: Wrong Answer

Solution code:
from sys import stdin, stdout
num = stdin.readline()
a = int(num[0])
b = int(num[2:])

if a < 10 and b < 10:
    print(a * b)
else:
    print(-1)

Submission status: Wrong Answer

Solution code:
A,B = [int(i) for i in input().split()]
if 1 <= A <= 9 and 1 <= B <= 9:
  print(A * B)

Submission status: Wrong Answer

Solution code:
import copy
def deg(a):return len(a)-1
def div(aa,b,p):
	a=copy.deepcopy(aa)
	A=deg(a)
	B=deg(b)
	if A<B:
		return[0]
	else:
		q=[0]*(A-B+1)
		for i in range(A-B+1):
			for j in range(p):
				if (b[0]*j-a[i])%p==0:
					q[i]=j
			for j in range(0,B+1):
				a[i+j]=(a[i+j]-b[j]*q[i]+p*p)%p
		for i in range(A+1):
			if a[i]!=0:
				return[0]
		return q
def fac(a,p):
	if deg(a)==0:
		return 0
	elif deg(a)==1:
		print(a)
		return 0
	for i in range(1,deg(a)//2+1):
		f=[0]*(i+1)
		c=p**i
		for pp in range(c,c+c):
			for j in range(i+1):
				f[j]=pp%p
				pp//=p
			if f[0]!=0:
				g=div(a,f,p)
				if g!=[0]:
					print(f)
					fac(g,p)
					return 0
	print(a)
	return 0

Submission status: Wrong Answer

Solution code:
#div()内でリストをコピーする必要があるのでインポート
import copy

def deg(a):return len(a)-1

def mul(a,b):
	A=deg(a)
	B=deg(b)
	f=[0]*(A+B+1)
	for i in range(A+B+1):
		for j in range(max(0,i-B),min(i,A)+1):
			f[i]=(f[i]+a[j]*b[i-j])%p
	return f

#mod pにおいて多項式aを多項式bでで割った商を返す(余る場合は[0]を返す)
def div(aa,b,p):
	
	#この関数内でaaを変更すると、使用時に引数として与えたリストにも反映されてしまうので、コピーを作ってそれを扱う
	a=copy.deepcopy(aa)

	#次数を計算しておく
	A=deg(a)
	B=deg(b)

	#自明
	if A<B:
		return[0]
	
	#非自明を含む
	else:
	
		#商を格納するリストqを用意
		q=[0]*(A-B+1)

		#商を最高次から順に定める
		for i in range(A-B+1):

			#(bの最高次係数)*(商の定めたい係数)とa[i]とがpを法として合同であるように商の係数を定める
			for j in range(p):
				if (b[0]*j-a[i])%p==0:
					q[i]=j
			
			#被除多項式aの次数を落とす
			for j in range(0,B+1):
				a[i+j]=(a[i+j]-b[j]*q[i]+p*p)%p

		#余りをチェックして0でない係数があれば[0]を返す
		for i in range(A+1):
			if a[i]!=0:
				return[0]

		#商を返す
		return q


def gau(a):return deg(a)//2

def bun(a,p):
	if deg(a)==0:
		return 0
	elif deg(a)==1:
		print(a)
		return 0
	for i in range(1,gau(a)+1):
		
		#因数の候補fを格納するリストを用意
		f=[0]*(i+1)

		#因数全探索
		c=p**i
		for pp in range(c,c+c):
			
			#p進数からfを構成する
			for j in range(i+1):
				f[j]=pp%p
				pp//=p

			#fの最高次の係数が0でなければ除算以降の処理を行う
			if f[0]!=0:
				
				#除算した結果をgに格納
				g=div(a,f,p)

				#割り切れていれば([0]が返っていなければ)fはaの因数であり、商gを因数分解する
				if g!=[0]:
					print(f)
					bun(g,p)
					return 0
	
	print(a)
	return 0

Submission status: Wrong Answer

Solution code:
import copy
def deg(a):return len(a)-1
def div(aa,b,p):
	a=copy.deepcopy(aa)
	A=deg(a)
	B=deg(b)
	if A<B:
		return[0]
	else:
		q=[0]*(A-B+1)
		for i in range(A-B+1):
			for j in range(p):
				if (b[0]*j-a[i])%p==0:
					q[i]=j
			for j in range(0,B+1):
				a[i+j]=(a[i+j]-b[j]*q[i]+p*p)%p
		for i in range(A+1):
			if a[i]!=0:
				return[0]
		return q
def fac(a,p):
	if deg(a)==0:
		return 0
	elif deg(a)==1:
		print(a)
		return 0
	for i in range(1,deg(a)//2+1):
		f=[0]*(i+1)
		c=p**i
		for pp in range(c,c+c):
			for j in range(i+1):
				f[j]=pp%p
				pp//=p
			if f[0]!=0:
				g=div(a,f,p)
				if g!=[0]:
					print(f)
					bun(g,p)
					return 0
	print(a)
	return 0

Submission status: Wrong Answer

Solution code:
s = input().split() #標準入力　sに値を入れる

def sort(A):
    if len(A) < 2:
        return A
    c = len(A)//2
    return merge(sort(A[:c]), sort(A[c:]))

def merge(X, Y):
    if len(X) < 1:
        return Y
    if len(Y) < 1:
        return X
    if (X[0] > Y[0]):
        return [Y[0]]+ merge(X, Y[1:])
    else:
        return [X[0]] + merge(X[1:], Y)

n = int(s[0])
divisors = []
for i in range(1, int(n**0.5)+1):
    if n % i == 0:
        divisors.append(i)
        if i != n // i:
            divisors.append(n//i)

divisors = sort(divisors)
l = len(divisors)
n1 = divisors[l // 2 - 1]
n2 = divisors[l // 2]
ans = n1 + n2 - 2
print(n2)

Submission status: Wrong Answer

Solution code:
s = input().split() #標準入力　sに値を入れる

def make_divisors(n):
    divisors = []
    for i in range(1, int(n**0.5)+1):
        if n % i == 0:
            divisors.append(i)
            if i != n // i:
                divisors.append(n//i)

    divisors.sort()
    return divisors

n = int(s[0])
newdivisors = make_divisors(n)
l = len(newdivisors)
n1 = newdivisors[l // 2 - 1]
n2 = newdivisors[l // 2]
ans = n1 + n2 - 2
print(ans)

Submission status: Wrong Answer

Solution code:
num=list(map(int,input().split()))
#print(num)
for i in num:
  if i>9:
    print('-1')
print(num[0]*num[1])

Submission status: Wrong Answer

Solution code:
aaa,baa=map(int, input().split()) 
caa=aaa*baa
if baa>10 or aaa>10:
  print('-1')
else:
  print(caa)

Submission status: Wrong Answer

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

if A > 10 or B > 10:
    print(-1)
elif A*B == 0:
    print(-1)
else:
    print(A*B)

Submission status: Wrong Answer

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

if A > 10 or B > 10:
    print(-1)
else:
    print(A*B)

Submission status: Wrong Answer

Solution code:
def resolve():
    A, B = map(int,input().split())
    if A<10 and B<10:
        C = int(A*B)
    else:
        C = -1
    print(C)

Submission status: Wrong Answer

Solution code:
def p_a():
    A, B = map(int, input().split())
    print(A * B if A < 10 and B < 10 else -1)

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
if 1<=A<=9:
        if 1<=B<=9:
            print(A*B)
        else:
            print(-1)

Submission status: Wrong Answer

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

if A < 9 and B < 9:
    print(A*B)
else:
    print(-1)

Submission status: Wrong Answer

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

if A or B>=10:
 print("-1")

else:
 print(A*B)

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split()))
if a[0] >10 or a[1]>10:
  print(-1)
else:
  print(a[0]*a[1])

Submission status: Wrong Answer

Solution code:
n = 50
ans = 10**12
for i in range(2,int(n**0.5)+1):
    if n%i == 0:
        if (i+n/i)<ans:
            ans = i+n/i
print(int(ans-2))

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print(-1 if a>10 or b>10 else a*b)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a > 10 or b > 10:
 	print (-1)
else:
  	print(a * b)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
a, b = map(int, input().split())

if a >= 9 and b >= 9:
  print(a * b)
else:
  print(-1)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if 1 <= A <= 9 & 1 <= B <= 9:
    print(A*B)
else:
     print (-1)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if 1 <= A & A <= 9 & 1 <= B & B <= 9:
    print(A*B)
else:
     print (-1)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if 1<=A & A<=9 & 1<=B & B<=9:
    if 1<=A*B & A*B<=81:
        print (A*B)
    else:
        print (-1)
else:
     print (-1)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if 1<=A & A<=9 & 1<=B & B<=9:
    if 1<=A*B & A*B<=81:
        print (A*B)
    else:
        print (-1)
else:
        print (-1)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if 1<=A & A<=9 & 1<=B & B<=9:
    if 1<=A*B & A*B<=81:
        print (A*B)
    else:
        print (-1)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if 1<=A | A<=9 | 1<=B | B<=9:
    if 1<=A*B | A*B<=81:
        print (A*B)
    else:
        print (-1)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if 1<=A & A<=9 | 1<=B & B<=9:
    if 1<=A*B & A*B<=81:
        print (A*B)
    else:
        print (-1)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if (a or b) > 9:
    print(-1)
else:
    print(a * b)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if (a or b) >= 10:
    print(-1)
else:
    print(a * b)

Submission status: Wrong Answer

Solution code:
a, b = [int(i) for i in input().split()]
if 1 < a < 9 and 1 < b < 9:
  print(a*b)
else:
  print(-1)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a<0 or a>10 or b<0 or b>10:
  print(-1)
else:
  print(a*b)