ZhenlongDai/ACPR huggingface dataset:
Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())

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



Failing test case input:
1 29

Expected output:
-1


Actual output:
29


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())

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

Problem: p02879
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,B=map(int,input().split())
prod=A*B
if prod%10==0:
  print(-1)
else:
  print(prod)

Failing test case input:
33 34

Expected output:
-1


Actual output:
1122


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
if A<=9 and B<=9:
  print(A*B)
else:
  print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())

if (a > 0 and a <10) and (b > 0 and b <10):
    print(a*b)

Failing test case input:
1 29

Expected output:
-1


Actual output:

Fixed submission (verdict: Accepted):
a,b = map(int,input().split())

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

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())

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

Failing test case input:
30 2

Expected output:
-1


Actual output:
60


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
 
if a <= 9 and a >= 1 and b <= 9 and b >= 1:
  print(a * b)
else :
  print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

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)

Failing test case input:
34 74

Expected output:
-1


Actual output:

Fixed submission (verdict: Accepted):
def math(A, B):
    if A < 10:
      if B < 10:
        result = A*B
      else:
        result = -1
    else:
      result = -1
    return result
 
A, B = map(int,input().split())
result1 = math(A, B)
print(result1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
if 1 <= a <= 9 or 1 <= b <= 9:
    print(a*b)
else:
    print(-1)

Failing test case input:
7 57

Expected output:
-1


Actual output:
399


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
if 1 <= a <= 9 and 1 <= b <= 9:
    print(a*b)
else:
    print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())
if A > 9 or B > 0:
    print("-1")
else: 
    print(str(A * B))

Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())
if A > 9 or B > 9:
    print("-1")
else: 
    print(str(A * B))
Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int, input('a').split())

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

Failing test case input:
47 0

Expected output:
-1


Actual output:
a-1


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
 
if A < 10 and B < 10:
    print(A*B)
else:
    print(-1)

Problem: p02879
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
A, B = map(int, input().split())

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


Failing test case input:
47 1

Expected output:
-1


Actual output:
47


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())

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

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())
if A*B<=81:
  print(A*B)
else :
  print(-1)

Failing test case input:
66 -1

Expected output:
-1


Actual output:
-66


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())
if A<10 and B<10:
  print(A*B)
else :
  print("-1")

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
x = A*B
if(1 <= A and A <= 9):
  if(1 <= B and B <= 9):
    print(A*B)
else:
  print(-1)


Failing test case input:
6 14

Expected output:
-1


Actual output:

Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
x = A*B
if(1 <= A and A <= 9):
  if(1 <= B and B <= 9):
    print(A*B)
  else:
    print(-1)
else:
  print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a < 10 or b < 10:
  print(a*b)
else:
  print(-1)

Failing test case input:
3 11

Expected output:
-1


Actual output:
33


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a < 10 and b < 10:
  print(a*b)
else:
  print(-1)

Problem: p02879
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b =map(int,input().split())
if 1<= a<= 9:
    if 1<= b<= 9:
        print(a*b)
else:
    print(-1)




Failing test case input:
7 15

Expected output:
-1


Actual output:

Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
 
if 1 <= a <= 9:
    if 1 <= b <= 9:
        print(a * b)
    else:
        print(-1)
else:
    print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
nums = [int(e) for e in input().split()]

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

Failing test case input:
8 74

Expected output:
-1


Actual output:
592


Fixed submission (verdict: Accepted):
nums = [int(e) for e in input().split()]

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

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int, input().split())
if a < 10 & b < 10:
    print(a*b)
else: 
    print(-1)

Failing test case input:
7 29

Expected output:
-1


Actual output:
203


Fixed submission (verdict: Accepted):
a,b=map(int, input().split())
if a < 10 and b < 10:
    print(a*b)
else: 
    print(-1)
Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
if a<10 and b<10:
         print(a*b)
else:
         print("No")


Failing test case input:
1 29

Expected output:
-1


Actual output:
No


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
if a<10 and b<10:
         print(a*b)
else:
         print(-1)

Problem: p02879
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
import sys, bisect, math, itertools, string, queue, copy








def inp(): return int(input())
def inpm(): return map(int,input().split())
def inpl(): return list(map(int, input().split()))
def inpls(): return list(input().split())
def inplm(n): return list(int(input()) for _ in range(n))
def inplL(n): return [list(input()) for _ in range(n)]
def inplT(n): return [tuple(input()) for _ in range(n)]
def inpll(n): return [list(map(int, input().split())) for _ in range(n)]
def inplls(n): return sorted([list(map(int, input().split())) for _ in range(n)])

a, b = inpm()
ans = -1
if(a < 10 or b < 10):
    ans = a * b
print(ans)




Failing test case input:
47 0

Expected output:
-1


Actual output:
0


Fixed submission (verdict: Accepted):
import sys, bisect, math, itertools, string, queue, copy








def inp(): return int(input())
def inpm(): return map(int,input().split())
def inpl(): return list(map(int, input().split()))
def inpls(): return list(input().split())
def inplm(n): return list(int(input()) for _ in range(n))
def inplL(n): return [list(input()) for _ in range(n)]
def inplT(n): return [tuple(input()) for _ in range(n)]
def inpll(n): return [list(map(int, input().split())) for _ in range(n)]
def inplls(n): return sorted([list(map(int, input().split())) for _ in range(n)])

a, b = inpm()
ans = -1
if(a < 10 and b < 10):
    ans = a * b
print(ans)

Problem: p02879
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b = map(int,input().split())
c = a*b

if 1<= c and c <= 81:
  print(c)
else:
  print("-1")

Failing test case input:
30 2

Expected output:
-1


Actual output:
60


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
c = a*b

if a>=10 or b >= 10:
  print("-1")
else:
  print(c)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int,input().split())
if a * b <= 81:
  print(a * b)
else:
  print(-1)

Failing test case input:
32 -1

Expected output:
-1


Actual output:
-32


Fixed submission (verdict: Accepted):
a, b = map(int,input().split())
if a <= 9 and b <= 9:
  print(a * b)
else:
  print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if(a<10 & b<10):
  print(a*b)
else:
  print(-1)

Failing test case input:
1 29

Expected output:
-1


Actual output:
29


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if(a<10 and b<10):
  print(a*b)
else:
  print(-1)
Problem: p02879
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a, b = map(int, input().split())

if a < 9 or b < 9:
    print(-1)
    exit()
print(a * b)


Failing test case input:
34 35

Expected output:
-1


Actual output:
1190


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())

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

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
result = a*b
if (result < 1):
    print(-1)
else:
    print(result)

Failing test case input:
34 50

Expected output:
-1


Actual output:
1700


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if (1 <= a <= 9) and (1 <= b <= 9):
    print(a*b)
else:
    print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = input().split(" ")
A = int(A)
B = int(B)

if A > 0 & A < 10:
    if B > 0 & B < 10:
        print(A * B)
    else:
        print(-1)
else:
    print(-1)


Failing test case input:
34 50

Expected output:
-1


Actual output:
1700


Fixed submission (verdict: Accepted):
A, B = input().split(" ")
A = int(A)
B = int(B)

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

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y = map(int, input().split())
ans = x * y
if ans < 82:
    print(ans)
else:
    print(-1)

Failing test case input:
3 11

Expected output:
-1


Actual output:
33


Fixed submission (verdict: Accepted):
x, y = map(int, input().split())
ans = x * y
if x<10 and y<10:
    print(ans)
else:
    print(-1)

Problem: p02879
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n,m=map(int,input().split())
if n>9 and m>9:
  print(-1)
else:
  print(n*m)

Failing test case input:
47 0

Expected output:
-1


Actual output:
0


Fixed submission (verdict: Accepted):
n,m=map(int,input().split())
if n>9 or m>9:
  print(-1)
else:
  print(n*m)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int, input().split())
if A <= 9 & B <= 9:
    ans = A*B
else: ans = "-1" 
print(ans)

Failing test case input:
7 29

Expected output:
-1


Actual output:
203


Fixed submission (verdict: Accepted):
A,B = map(int, input().split())
if A <= 9 and B <= 9:
    ans = A*B
else: ans = "-1" 
print(ans)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y = [int(i) for i in input().split()]
if x and y < 10:
  print(x * y)
else:
  print(-1)

Failing test case input:
30 2

Expected output:
-1


Actual output:
60


Fixed submission (verdict: Accepted):
x, y = [int(i) for i in input().split()]
if x < 10 and y < 10:
  print(x * y)
else:
  print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())

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

Failing test case input:
47 0

Expected output:
-1


Actual output:
0


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())

if a > 9 or b > 9:
    print(-1)
else:
    print(a*b)
Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int, input('a').split())
 
if A > 10 and B > 10:
    print(A*B)
else:
    print(-1)

Failing test case input:
34 50

Expected output:
-1


Actual output:
a1700


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
 
if A < 10 and B < 10:
    print(A*B)
else:
    print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())
if(A < 9 or B < 9):
	print("-1")
else:
	print(A*B)

Failing test case input:
33 106

Expected output:
-1


Actual output:
3498


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())
if(A > 9 or B > 9):
	print("-1")
else:
	print(A*B)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())

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

Failing test case input:
3 11

Expected output:
-1


Actual output:
33


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())

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

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())

if a <= 0 or b <= 0:
    print(-1)
elif a >= 9 or b >= 9:
    print(-1)
else:
    print(a * b)


Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())

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

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a , b = list(map(int, input().split()))
if a or b >= 10:
  print("-1")
else:
  print(a*b)

Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
a , b = list(map(int, input().split()))
if a >= 10 or b >= 10:
  print("-1")
else:
  print(a*b)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
inp = input()
a = inp.split(" ")[0]
b = inp.split(" ")[1]
if(len(a)==1 and len(b)==1):
  print(int(a)*int(b))

Failing test case input:
10 29

Expected output:
-1


Actual output:

Fixed submission (verdict: Accepted):
inp = input()
a = inp.split(" ")[0]
b = inp.split(" ")[1]
if(len(a)==1 and len(b)==1):
  print(int(a)*int(b))
else:
  print("-1")

Problem: p02879
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=map(int,input().split())
if a<0 and a>9:
  print(-1)
elif b<0 and b>9:
  print(-1)
else:
  print(a*b)

Failing test case input:
34 35

Expected output:
-1


Actual output:
1190


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a<0 or a>9:
  print(-1)
elif b<0 or b>9:
  print(-1)
else:
  print(a*b)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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)

Failing test case input:
7 15

Expected output:
-1


Actual output:
105


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
if a<10 and a>0 and b<10 and b>0:
    ans = a * b
    print(ans)
else:
    print(-1)
Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
print(a*b if a<10 and b<10 else 'No')

Failing test case input:
33 106

Expected output:
-1


Actual output:
No


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
print(a*b if a<10 and b<10 else -1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
c = [1,2,3,4,5,6,7,8,9]
if a and b in c:
  print(a*b)
else:
  print('-1')

Failing test case input:
47 1

Expected output:
-1


Actual output:
47


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
c = [1,2,3,4,5,6,7,8,9]
if a in c and b in c:
  print(a*b)
else:
  print('-1')

Problem: p02879
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A, B = map(int, input().split())
if((A and B)<=9):
    print(int(A*B))
else:
    print()

Failing test case input:
47 0

Expected output:
-1


Actual output:
0


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
if(A<=9 and B<=9):
    print(int(A*B))
else:
    print('-1')

Problem: p02879
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b = map(int, input().split())
if a < 10 and b < 10:
  print('a * b')
else:
  print('-1')

Failing test case input:
9 9

Expected output:
81

Actual output:
a * b


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a < 10 and b < 10:
  print(a * b)
else:
  print('-1')

Problem: p02879
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
A, B = map(int, input().split())
if A and B <= 9:
    print(A*B)
else:
    print(-1)

Failing test case input:
32 -1

Expected output:
-1


Actual output:
-32


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
if A < 10 and B < 10:
    print(A*B)
else:
    print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
if A < 9 and B <9 :

    print ( A * B)
else :
    print (-1)



Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
if A < 10 and B <10 :

    print ( A * B)
else :
    print (-1)

Problem: p02879
Buggy submission (Python (3.8.2), verdict: Wrong Answer):


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

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

Failing test case input:
30 1

Expected output:
-1


Actual output:
30


Fixed submission (verdict: Accepted):


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

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

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())

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

Failing test case input:
7 15

Expected output:
-1


Actual output:
105


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())

if A >= 10 or B >= 10:
    print(-1)
else:
    print(A*B)
Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
AB = input().split()
A = float(AB[0])
B = float(AB[1])

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

else :
    print(-1)

Failing test case input:
9 9

Expected output:
81

Actual output:
81.0


Fixed submission (verdict: Accepted):
AB = input().split()
A = int(AB[0])
B = int(AB[1])

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

else :
    print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int, input().split())
if a<=9 & b<=9:
    print(a*b)
else:
    print(-1)

Failing test case input:
1 29

Expected output:
-1


Actual output:
29


Fixed submission (verdict: Accepted):
a,b = map(int, input().split())
if a<=9 and b<=9:
    print(a*b)
else:
    print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())

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

Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())

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

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a in range(1, 10) and a in range(1, 10):
  print(a * b)
else:
  print(-1)


Failing test case input:
7 15

Expected output:
-1


Actual output:
105


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a in range(1, 10) and b in range(1, 10):
  print(a * b)
else:
  print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())
if A > 9 and B > 9:
  print(-1)
else:
  print(A*B)
  

Failing test case input:
7 57

Expected output:
-1


Actual output:
399


Fixed submission (verdict: Accepted):
A, B = map(int,input().split())
if A>9 or B>9:
  print(-1)
else:
  print(A*B)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
if A>=9 or B>=9:
  print(-1)
else:
  print(A*B)


Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
if A>=10 or B>=10:
  print(-1)
else:
  print(A*B)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    A, B = map(int, input().split())
    p = A * B
    if p >= 82:
        print(-1)
    else:
        print(p)
main()

Failing test case input:
47 0

Expected output:
-1


Actual output:
0


Fixed submission (verdict: Accepted):
def main():
    A, B = map(int, input().split())
    if A < 10 and B < 10:
        p = A * B
        print(p)
    else:
        print(-1)
main()
Problem: p02879
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
def main():
	
	n,k = map(int,input().split())
	
	
	
	
	
 
	if n < 10 or k < 10:
		print(int(n*k))	
	else:
 		print(-1)
 
 
if __name__ == '__main__':
	main()

Failing test case input:
47 1

Expected output:
-1


Actual output:
47


Fixed submission (verdict: Accepted):
def main():
	
	n,k = map(int,input().split())
	
	
	
	
	
 
	if n < 10 and k < 10:
		print(int(n*k))
	else:
 		print(-1)
 
 
if __name__ == '__main__':
	main()

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = [i if i<10 else -i for i in map(int,input().split())]
print(A*B if A*B>0 else -1)

Failing test case input:
33 57

Expected output:
-1


Actual output:
1881


Fixed submission (verdict: Accepted):
AB = 1
for i in map(int,input().split()):
  if i<10 and AB>0: AB *= i
  else: AB = -1
print(AB)

Problem: p02879
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,B=map(int,input().split())
if A and B <10:
  print(A*B)
else:
  print("-1")


Failing test case input:
66 0

Expected output:
-1


Actual output:
0


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
if A <10 and B <10:
  print(A*B)
else:
  print("-1")

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())
if A < 10 or A > 0 or B < 10 or B > 0:
  C = A * B
else:
  C = -1

print(C)

Failing test case input:
66 -1

Expected output:
-1


Actual output:
-66


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())
if A < 10 and A > 0 and B < 10 and B > 0:
  C = A * B
else:
  C = -1

print(C)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
C=A*B
if C>81:
  print(-1)
else:
  print(C)

Failing test case input:
30 2

Expected output:
-1


Actual output:
60


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())

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

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m=map(int,input().split())
if n<10 & m<10 :
  print(n*m)
else :
  print(-1)


Failing test case input:
7 57

Expected output:
-1


Actual output:
399


Fixed submission (verdict: Accepted):
n,m=map(int,input().split())
if n<10 and m<10 :
  print(n*m)
else :
  print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
L,R = map(int,input().split())

if L <=10 or R <= 10 or L > 1 or R > 1:
    print(-1)
else:
    print(L*R)

Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
L,R = map(int,input().split())

if L >= 10 or R >= 10 or L < 1 or R < 1:
    print(-1)
else:
    print(L*R)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
AB = input().split()
A = float(AB[0])
B = float(AB[1])

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

else :
    print(-1)

Failing test case input:
11 10

Expected output:
-1


Actual output:
110.0


Fixed submission (verdict: Accepted):
AB = input().split()
A = int(AB[0])
B = int(AB[1])

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

else :
    print(-1)
Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())

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

Failing test case input:
47 1

Expected output:
-1


Actual output:
47


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())

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

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
c = a * b
if 1 <= c <= 81:
    print(c)
else:
    print('-1')



Failing test case input:
47 1

Expected output:
-1


Actual output:
47


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if 1<= a <= 9 and 1<= b <= 9:
    print(a*b)
else:
    print(-1)

Problem: p02879
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
x = list(map(str,input().split()))

if(len([0]) < 2 and len(x[1]) < 2):
  print("Yes")
else:
  print("No")

Failing test case input:
34 55

Expected output:
-1


Actual output:
No


Fixed submission (verdict: Accepted):
x = list(map(int,input().split()))

if(len(str(x[0])) < 2 and len(str(x[1])) < 2):
  print(x[0] * x[1])
else:
  print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())
if 1 <= A <= 9 & 1 <= B <= 9 :
    print(A*B)
else :
    print(-1)

Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())
if 1 <= A and A <= 9 :
    if 1 <= B and B <= 9 :
        print(A*B)
    else :
        print(-1)
else :
    print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
if 1 <= A and B <= 9:
    print(A*B)
else:
    print('-1')

Failing test case input:
32 -1

Expected output:
-1


Actual output:
-32


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
if 1 <= A <= 9 and 1 <= B <= 9:
    print(A*B)
else:
    print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
print(a*b if a*b<=81 else "-1")

Failing test case input:
3 11

Expected output:
-1


Actual output:
33


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
f= 0<a<10 and 0<b<10
print(a*b if f is True else "-1")

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
if 1 <= A & A <= 9 & 1 <= B & B <= 9:
    print(A*B)
else:
     print (-1)



Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
if 1 <= A <= 9 and 1 <= B <= 9:
    print(A*B)
else:
     print (-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
print(A*B) if(A < 1 or A > 9 or B < 1 or B > 9) else print(-1)

Failing test case input:
34 55

Expected output:
-1


Actual output:
1870


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
print(-1) if(A < 1 or A > 9 or B < 1 or B > 9) else print(A*B)
Problem: p02879
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
numz = input()
count = 0
numz_pair = numz.split(" ")
numz_pair = list(map(int, numz_pair))

for i in range(len(numz_pair)):
    if numz_pair[i] <= 9:
        count = count + 1
        print("True")
    else:
        print(-1)
        break

if count == len(numz_pair)+1:
    print(numz_pair[0]*numz_pair[1])


Failing test case input:
6 14

Expected output:
-1


Actual output:
True
-1


Fixed submission (verdict: Accepted):
numz = input()
count = 0
numz_pair = numz.split(" ")
numz_pair = list(map(int, numz_pair))

for i in range(len(numz_pair)):
    if numz_pair[i] <= 9:
        count = count + 1
    else:
        print(-1)
        break

if count == len(numz_pair):
    print(numz_pair[0]*numz_pair[1])

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int,input().split())
ans = 1 if (1 <= A <= 9) and (1 <= B <= 9) else -1
print(ans)

Failing test case input:
9 9

Expected output:
81

Actual output:
1


Fixed submission (verdict: Accepted):
A, B = map(int,input().split())
ans = A*B if (1 <= A <= 9) and (1 <= B <= 9) else -1
print(ans)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())

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

Failing test case input:
3 11

Expected output:
-1


Actual output:
33


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())
 
if A>=10 or B>=10:
  print(-1)
  
else:
  print(A*B)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a or b >= 10:
  print(-1)
else:
  print(a*b)
  

Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a >= 10 or b >= 10:
  print(-1)
else:
  print(a*b)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a or b >9:
  print(-1)
else:
  print(a*b)


Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a >=10:
  print(-1)
elif b >= 10:
  print(-1)
else:
  print(a*b)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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)

Failing test case input:
11 10

Expected output:
-1


Actual output:
110


Fixed submission (verdict: Accepted):
s = input().split()
A = int(s[0])
B = int(s[1])
if A <= 9 and B<= 9 and A >= 1 and B >= 1:
  multiple = A*B
else:
  multiple = -1
print(multiple)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x = list(map(int, input().split()))
a = x[0]*x[1]
if a<81:
  print(a)
else:
  print(-1)

Failing test case input:
42 -1

Expected output:
-1


Actual output:
-42


Fixed submission (verdict: Accepted):
x = list(map(int, input().split()))
a = x[0]*x[1]
if x[0]<=9 and x[1]<=9:
  print(a)
else:
  print(-1)
Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a and b == 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9:
  print(a * b)
else:
  print('-1')

Failing test case input:
34 50

Expected output:
-1


Actual output:
1700


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
c = [1,2,3,4,5,6,7,8,9]
if a in c and b in c:
  print(a*b)
else:
  print('-1')

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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)


Failing test case input:
11 10

Expected output:
-1


Actual output:
110


Fixed submission (verdict: Accepted):
a = input()
b = a.split()
c1 = int(b[0])
c2 = int(b[1])
if (1 <= c1 <= 9 and 1 <= c2 <= 9 ):
    ans = c1*c2
else:
    ans = -1

print(ans)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
if 1 <= A <= 9 & 1 <= B <= 9:
    print(A*B)
else:
     print (-1)



Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
if 1 <= A <= 9 and 1 <= B <= 9:
    print(A*B)
else:
     print (-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int, input().split())

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

else:
 print(A*B)

Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
A,B=map(int, input().split())

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

Problem: p02879
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,B=map(int,input().split())

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

Failing test case input:
32 -1

Expected output:
-1


Actual output:
-32


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())

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

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
inp=input().split()
A=int(inp[0])
B=int(inp[1])
if A < 10 or B < 10:
  print(str(A*B))
else:
  print("-1")

Failing test case input:
66 0

Expected output:
-1


Actual output:
0


Fixed submission (verdict: Accepted):
inp=input().split()
A=int(inp[0])
B=int(inp[1])
if A < 10 and B < 10:
  print(str(A*B))
else:
  print("-1")

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b =map(int,input().split())
if 1 <= a and b <=9:
		print(a*b)
		
else:
		print(-1)

Failing test case input:
30 2

Expected output:
-1


Actual output:
60


Fixed submission (verdict: Accepted):
a,b =map(int,input().split())
if 1 <= a <=9 and 1 <= b <=9:
		print(a*b)
		
else:
		print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int, input().split())
if a <= 1 and a <= 9 and b <= 1 and b <= 9:
    print(a*b)
else:
    print(-1)


Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
a,b = map(int, input().split())
if 1 <= a and a <= 9 and 1 <= b and b <= 9:
    print(a*b)
else:
    print(-1)
Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())

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


Failing test case input:
9 9

Expected output:
81

Actual output:
Yes


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())

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

Problem: p02879
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,B=map(int,input().split())
if A or B >=10:
  print("-1")
else:
  print(A*B)


Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
if A <10 and B <10:
  print(A*B)
else:
  print("-1")

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m=map(str,input().split())
if(len(n)<1 and len(m)<1):
	print(int(n)*int(m))
else:
	print(-1)

Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
n,m=map(str,input().split())
if(len(n)<=1 and len(m)<=1):
	print(int(n)*int(m))
else:
	print(-1)

Problem: p02879
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a,b = map(int,input().split())
if a<10&b<10:
  print(a*b)
else:
  print(-1)

Failing test case input:
7 57

Expected output:
-1


Actual output:
399


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
if a<10 and b<10:
  print(a*b)
else:
  print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int, input().split())
print(A*B if A*B >= 81 else -1)

Failing test case input:
33 57

Expected output:
-1


Actual output:
1881


Fixed submission (verdict: Accepted):
A,B = map(int, input().split())
print(A*B if A<=9 and B<=9 else -1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
 
input = sys.stdin.readline().split()
result = 1
for n in input:
  n=int(n)
  if n<10:
    result = result * n
    
  else:
    print('-1')
print(result)

Failing test case input:
34 50

Expected output:
-1


Actual output:
-1
-1
1


Fixed submission (verdict: Accepted):
import sys
 
input = sys.stdin.readline().split()
result = 1
for n in input:
  n=int(n)
  if result==-1:
    break
  if n<10:
    result = result * n
  else:
    result=-1
print(result)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())

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


Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())

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

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if 1 <= a <= 9 and 1<= b <= 9:
	c = a * b
else:
	print ('-1')

Failing test case input:
9 9

Expected output:
81

Actual output:

Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if 1 <= a <= 9 and 1 <= b <= 9:
    print(a * b)
else:
	print ('-1')
Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int, input().split())
if (9-a)*(9-b)<0:
  print(-1)
else:
  print(a*b)

Failing test case input:
34 55

Expected output:
-1


Actual output:
1870


Fixed submission (verdict: Accepted):
a,b=map(int, input().split())
if a>9 or b>9 or a<1 or b<1:
  print(-1)
else:
  print(a*b)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A , B = map(int,input().split())
if 1 <= A and A <= 9:
    if 1 <= B and B <= 9:
        print(A*B)
else:
    print(-1)


Failing test case input:
7 15

Expected output:
-1


Actual output:

Fixed submission (verdict: Accepted):
a , b = map(int,input().split())
if 1 <= a and a <= 9:
    if 1 <= b and b <= 9:
        print(a*b)
    else:
        print(-1)
else:
    print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int, input().split())
print(A, B)
if 1 <= A and A <= 9:
    if 1 <= B and B <= 9:
        print(A*B)
else:
    print('-1')

Failing test case input:
30 1

Expected output:
-1


Actual output:
30 1
-1


Fixed submission (verdict: Accepted):
A,B = map(int, input().split())
if 1 <= A and A <= 9:
    if 1 <= B and B <= 9:
        print(A*B)
    else:
        print('-1')
else:
    print('-1')

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = (int(nums) for nums in input().split())


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

Failing test case input:
12 29

Expected output:
-1


Actual output:
348


Fixed submission (verdict: Accepted):
A,B = (int(num) for num in input().split())
if A>9  or B>9:
    print(-1)
else:
    print(A*B)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
a, b = map(int, input().split())
if a in range(1,9):
 if b in range(1,9):
  print(a*b)
  sys.exit()
 else:
  pass
print("-1")  

Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
import sys
a, b = map(int, input().split())
k = range(1,10)
if a in k:
 if b in k:
  print(a*b)
  sys.exit()
 else:
  pass
print("-1")

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

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


Failing test case input:
33 17

Expected output:
-1


Actual output:

Fixed submission (verdict: Accepted):

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

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = list(map(int, input().split()))
if A < 9 and B < 9 :
	print(A * B)
else :
	print(-1)

Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
A, B = list(map(int, input().split()))
if A <= 9 and B <= 9 :
	print(A * B)
else :
	print(-1)
Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def resolve():
    a, b = map(int, input().split())
    print("Yes" if a < 10 and b < 10 else "No")


if __name__ == '__main__':
    resolve()


Failing test case input:
32 -1

Expected output:
-1


Actual output:
No


Fixed submission (verdict: Accepted):
def resolve():
    a, b = map(int, input().split())
    print(a * b if a < 10 and b < 10 else -1)


if __name__ == '__main__':
    resolve()

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = list(map(int,input().split()))
if A[0]*A[1] > 81:
    print(-1)
else:
    print(A[0]*A[1])

Failing test case input:
30 1

Expected output:
-1


Actual output:
30


Fixed submission (verdict: Accepted):
A = list(map(int,input().split()))
if A[0] > 9 or A[1] > 9:
    print(-1)
else:
    print(A[0]*A[1])

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = (int(x) for x in input().split())
c = a * b
if c > 1 and c < 400:
    print(c)
else:
    print("-1")


Failing test case input:
6 14

Expected output:
-1


Actual output:
84


Fixed submission (verdict: Accepted):
a, b = (int(x) for x in input().split())
if a <= 9 and b<=9:
    c = a * b
    print(c)
else:
    print("-1")

Problem: p02879
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b = map(int, input().split())

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

Failing test case input:
7 15

Expected output:
-1


Actual output:
105


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())

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

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a < 10 & b < 10:
  print(a*b)
else:
  print(-1)

Failing test case input:
1 29

Expected output:
-1


Actual output:
29


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a < 10 and b < 10:
  print(a*b)
else:
  print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    A, B = map(int,input().split())
    print( A * B if (A % 10 == 0) & (B % 10 == 0) else -1) 
    return 0
    
if __name__ == '__main__':
    main()

Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
def main():
    A, B = map(int,input().split())
    print( A * B if (A 
    return 0
    
if __name__ == '__main__':
    main()

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int,input().split())
if 1 <= a < 10 and 1 <= b < 10:
  print("{}".format(a*b))
print(-1)

Failing test case input:
9 9

Expected output:
81

Actual output:
81
-1


Fixed submission (verdict: Accepted):
a, b = map(int,input().split())
if 1 <= a < 10 and 1 <= b < 10:
  print("{}".format(a*b))
else:
  print(-1)
Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int,input().split())
if A < 10 & B < 10:
  print(A * B)
else:
  print(-1)

Failing test case input:
1 29

Expected output:
-1


Actual output:
29


Fixed submission (verdict: Accepted):
A, B = map(int,input().split())
if (A < 10) & (B < 10):
  print(A * B)
else:
  print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = list(map(int, input().split()))
if 1 < A < 9 and 1 < B < 9 :
	print(A * B)
else :
	print(-1)

Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
A, B = list(map(int, input().split()))
if A <= 9 and B <= 9 :
	print(A * B)
else :
	print(-1)
Problem: p03761
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import collections
n=int(input())
a=collections.Counter(input())
for i in range(n-1):
    s=collections.Counter(input())
    a=a&s
ans=""
k=a.keys()
v=a.values()
for i,j in zip(k,v):
    ans+=i*j
new_str = ans[::-1]
print(new_str)
    

Failing test case input:
3
acba
da`cb
acacbc

Expected output:
abc


Actual output:
bca


Fixed submission (verdict: Accepted):
import collections
n=int(input())
a=collections.Counter(input())
for i in range(n-1):
    s=collections.Counter(input())
    a=a&s
ans=""
k=a.keys()
v=a.values()
for i,j in zip(k,v):
    ans+=i*j
print("".join(sorted(ans)))

Problem: p03761
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

from collections import Counter

ans = ''
n = int(input())
count = Counter(input())
for i in range(n-1):
    count &= Counter(input())

for (word, cnt) in count.items():
    ans += word*cnt

print(ans)

Failing test case input:
3
caaa
cca`d
cacaca

Expected output:
ac


Actual output:
ca


Fixed submission (verdict: Accepted):

from collections import Counter

ans = ''
n = int(input())
count = Counter(input())
for i in range(n-1):
    count &= Counter(input())

for c in [chr(i) for i in range(97,97+26)]:
    ans = ans + c*count[c]

print(ans)

Problem: p03761
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
import sys
input = sys.stdin.readline
from collections import Counter,defaultdict
n=int(input())
al=[float("inf")]*26
a=ord("a")
print(a)
for i in range(n):
    s=input().strip()
    for i in range(26):
        al[i]=min(al[i],s.count(chr(i+a)))
rep=""
for i,k in enumerate(al):
    for j in range(k):
        rep+=chr(i+a)
print(rep)


Failing test case input:
3
acaa
bdb`c
acacac

Expected output:
c


Actual output:
97
c


Fixed submission (verdict: Accepted):
import sys
input = sys.stdin.readline
from collections import Counter,defaultdict
n=int(input())
al=[float("inf")]*26
a=ord("a")

for i in range(n):
    s=input().strip()
    for i in range(26):
        al[i]=min(al[i],s.count(chr(i+a)))
rep=""
for i,k in enumerate(al):
    for j in range(k):
        rep+=chr(i+a)
print(rep)
Problem: p03761
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())

s = [input() for i in range(n)]

sort_s = []

for i in range(n):
    sort_s.append(sorted(s[i]))
    
onaji = sort_s[0]
new = []
tmp = 0

for i in range(1,n):
    for j in range(len(onaji)):
        tmp = 0
        for k in range(len(s[i])):
            
            if tmp+k >= len(s[i]):
                break
            if onaji[j] == sort_s[i][tmp+k]:
                new.append(onaji[j])
                tmp = k+1
                break
    
    onaji = new
    new = []
            
print(*onaji,sep="")

Failing test case input:
3
caab
d`acc
cacaca

Expected output:
ac


Actual output:
aac


Fixed submission (verdict: Accepted):
n = int(input())

s = [input() for i in range(n)]

sort_s = []

for i in range(n):
    sort_s.append(sorted(s[i]))
    
onaji = sort_s[0]
new = []
tmp = 0

for i in range(1,n):
    new = []
    tmp = 0
    
    for j in range(len(onaji)):
        for k in range(len(s[i])):
            
            if tmp+k >= len(s[i]):
                break
            if onaji[j] == sort_s[i][tmp+k]:
                new.append(onaji[j])
                tmp = tmp+k+1
                break
    
    onaji = new
    
            
print(*onaji,sep="")

Problem: p03761
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from collections import Counter
n=int(input())
s=[input() for i in range(n)]
ans=''
l='abcdefghijklmnopqrstuvwxyz'
for i in range(len(l)):
  c=10**9
  for j in range(n):
    c=min(c,s.count(l[i]))
  for j in range(c):
    ans+=l[i]
print(ans)

Failing test case input:
3
caaa
cca`d
acacac

Expected output:
ac


Actual output:

Fixed submission (verdict: Accepted):
from collections import Counter
n=int(input())
s=[input() for i in range(n)]
ans=''
l='abcdefghijklmnopqrstuvwxyz'
for i in range(len(l)):
  c=10**9
  for j in range(n):
    c=min(c,s[j].count(l[i]))
  for j in range(c):
    ans+=l[i]
print(ans)

Problem: p03761
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from itertools import groupby, accumulate, product, permutations, combinations
from collections import Counter
def solve():
    N = int(input())
    dics = [0]*N
    S = [input() for _ in range(N)]
    for i in range(N):
        dics[i] = Counter(S[i])
    ans = ''
    for k,v in sorted(dics[0].items()):
        mincnt = v
        for i in range(1,N):
            mincnt = min(v,dics[i][k])
        ans += k*mincnt
    return ans
print(solve())

Failing test case input:
3
caa`
`cacd
cacaca

Expected output:
ac


Actual output:
aac


Fixed submission (verdict: Accepted):
from itertools import groupby, accumulate, product, permutations, combinations
from collections import Counter
def solve():
    N = int(input())
    dics = [0]*N
    S = [input() for _ in range(N)]
    dic = Counter(S[0])
    for i in range(1,N):
        new_dic = Counter(S[i])
        for k in dic.keys():
            if k in new_dic:
                dic[k] = min(dic[k],new_dic[k])
            else:
                dic[k] = 0
    ans = ''
    for k,v in sorted(dic.items()):
        ans += k*v
    return ans
print(solve())