TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
n=int(input())
for i in range(1,10):
  for j in range(1,10):
    if i*j==n:
      print("Yes")
else:
  print("No")

n=int(input())
t=0
for i in range(1,10):
  for j in range(1,10):
    if i*j==n:
      print("Yes")
      t=1
      break
if t==0:
  print("No")

n=int(input())
for i in range(1,10):
	for j in range(1,10):
		if i*j==n:
			print("Yes")
			exit()
print("No")

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
n = int(input())
for i in range(1, 10):
    for j in range(1, 10):
        if i*j == n:
            print('YES')
            exit()
print('No')


n = int(input())
for i in range(1, 10):
    for j in range(1, 10):
        if i*j == n:
            print('Yes')
            exit()
print('No')


Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
import numpy as np
n = int(input())

ls = np.array(np.arange(1,10))
print(ls)

x = 0
for i in ls:
    x += (n / i) in ls

print("No" if x == 0 else "Yes")

import numpy as np
n = int(input())

ls = np.array(np.arange(1,10))


x = 0
for i in ls:
    x += (n / i) in ls

print("No" if x == 0 else "Yes")

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
answer = {
    "1":[1,2,3,4,5,6,7,8,9],
    "2":[2,4,6,8,10,12,14,16,18],
    "3":[3,6,9,12,15,18,21,24,27],
    "4":[4,8,12,16,20,24,28,32,36],
    "5":[5,10,15,20,25,30,35,40,45],
    "6":[6,12,18,24,30,36,42,48,54],
    "7":[7,14,21,28,35,42,49,56,63],
    "8":[8,16,24,32,40,48,56,64,72],
    "9":[9,18,27,36,45,54,63,72,81]
}

N = int(input())
a = 0
for value in answer.values():
	if N in value:
    	a = 1

if a == 1:
	print("Yes")
else:
	print("No")

answer = {
    "1":[1,2,3,4,5,6,7,8,9],
    "2":[2,4,6,8,10,12,14,16,18],
    "3":[3,6,9,12,15,18,21,24,27],
    "4":[4,8,12,16,20,24,28,32,36],
    "5":[5,10,15,20,25,30,35,40,45],
    "6":[6,12,18,24,30,36,42,48,54],
    "7":[7,14,21,28,35,42,49,56,63],
    "8":[8,16,24,32,40,48,56,64,72],
    "9":[9,18,27,36,45,54,63,72,81]
}

N = int(input())
a = 0
for value in answer.values():
  if N in value:
    a = 1

if a == 1:
	print("Yes")
else:
	print("No")

Verdicts: Runtime Error

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):

n = int(input())
array = []
for i in range(1,10):
    for j in range(1,10):
        array.append(i * j)
print(array)
if n in array:
    print("Yes")
else:
    print("No")


n = int(input())
array = []

for i in range(1,10):
    for j in range(1,10):
        if i * j == n:
            print("Yes")
        else:
            print("No")


n = int(input())
for i in range(1,10):
    for j in range(1,10):
        if i * j == n:
            print("Yes")
            exit()
print("No")

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

t = False
for i in range(1,10):
    for j in range(1, 10):
        if n == i*j:
            t = True
            quit()

if t:
    print('Yes')
else:
    print('No')   

n = int(input())

for i in range(1,10):
    for j in range(1, 10):
        if n == i*j:
            print('Yes')
            quit()

print('No')   

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

flag = True
for i in range(1,10):
    for j in range(1,10):
        if i * j == N:
            print("Yes")
            flag = False

if flag:
    print("No")


N = int(input())

flag = True
for i in range(1,10):
    for j in range(1,10):
        #print(i, j)
        if i * j == N:
            print("Yes")
            flag = False
    if flag:
        break

if flag:
    print("No")


N = int(input())

flag = True

for i in range(1,10):
    for j in range(1,10):
        #print(i, j)
        if i * j == N:
            print("Yes")
            flag = False
    if not(flag):
        break

if flag:
    print("No")


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

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)
            
print(min(divisors[-1]+divisors[-2]-2,divisors[-3]+divisors[-4]-2))

N = int(input())

import sys

for i in range(1,10):
    if N%i==0 and N//i < 10:
        print("Yes")
        sys.exit()
    
print("No")

Verdicts: Runtime Error

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
N = int(input())
for i in range(1,9):
  if N % i == 0:
    exit(0)
  print('No')
print('Yes')

import numpy as np
N = int(input())
d = int(np.sqrt(N))
d_max = 0
for i in range(1,d+1):
  if N % i == 0:
    d_max = i
if d_max > 9:
  print('No')
elif N / d_max > 9:
  print('No')
else:
  print('Yes')

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
x = input()
for i in range(1,10,1):
    if x%i == 0 and x/i < 10 and x/i > 0:
        print("Yes")
        break
    if i == 9:
        print("No")

x = int(input())
for i in range(1,10,1):
    if x%i == 0 and x/i < 10 and x/i > 0:
        print("Yes")
        break
    if i == 9:
        print("No")

Verdicts: Runtime Error

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
n = int(input())
for i in range(1, 10):
  m = n / i
  if m.is_integer() and 1 <= m <= 9:
    print('Yes')
    break
  else:
    print('No')
    

n = int(input())
for i in range(1, 10):
  m = n / i
  if m.is_integer() and 1 <= m <= 9:
    print('Yes')
    break
else:
  print('No')
    

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
n = int(input())
i = 1
j = 1
ans = 0
for i in range(9):
#  ans 
  for j in range(9):
    if i * j == n:
      ans = 1
if ans == 1:
  print("Yes")1
else:
  print("No")

n = int(input())
i = 1
j = 1
ans = 0
for i in range(10):
#  ans 
  for j in range(10):
    if i * j == n:
      ans = 1
if ans == 1:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
N = int(input())
flag = False
for i in range(10):
    if N%i == 0 and N//i < 10:
        flag = True
if flag:
    print("Yes")
else:
    print("No")

N = int(input())
flag = False
for i in range(1, 10):
    if N%i == 0 and N//i < 10:
        flag = True
if flag:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
N=int(input())
A=0
for i in range(9):
    if N%(i+1)==0 and N//(i+1)<10:
        print("Yes")
        break
        A+=1
if A==0:
    print("No")

N=int(input())
A=0
for i in range(9):
    if N%(i+1)==0 and N//(i+1)<10:
        print("Yes")
        A+=1
        break

if A==0:
    print("No")

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

L = set()
for i in range(1,10):
    for j in range(1,10):
        result = i*j
        L.add(result)
print(L)

if n in L:
    print("Yes")
elif n not in L:
    print("No")

n = int(input())

L = set()
for i in range(1,10):
    for j in range(1,10):
        result = i*j
        L.add(result)
if n in L:
    print("Yes")
elif n not in L:
    print("No")

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
N = int(input())
ans = "No"

for i in range(1, 10):
    if N % i == 0:
        t =  N // A
        if 1 <= A <= 9:
            ans = "Yes"

print(ans)

N = int(input())
ans = "No"

for i in range(1, 10):
    if N % i == 0:
        t =  N / i
        if 1 <= t <= 9:
            print(i)
            ans = "Yes"

print(ans)

N = int(input())
ans = "No"

for i in range(1, 10):
    if N % i == 0:
        t =  N / i
        if 1 <= t <= 9:
            ans = "Yes"
            break

print(ans)

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

ans = "no"

for i in range(1,9):
    for j in range(1,9):
        if i*j == a:
            ans = "yes"
            break

print(ans)

a = int(input())

ans = "no"

for i in range(1,10):
    for j in range(1,10):
        if i*j == a:
            ans = "yes"
            break

print(ans)
            

a = int(input())

ans = "No"

for i in range(1,10):
    for j in range(1,10):
        if i*j == a:
            ans = "Yes"
            break

print(ans)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
N = int(input())
for i in range(1, 10):
    for j in range(1, 10):
        if N == i*j:
            flag = 'Yes'
            break
        else:
            flag = 'No'
print(flag)

N = int(input())

for i in range(1, 10):
    for j in range(1, 10):
        if N == i*j:
            flag = True
            break
        else:
            flag = False
    if flag:
        break

if flag:
    print('Yes')
else:
    print('No')

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
N = int(input())
ans = "No"
for i in range(1,10):
  for j in range(1,10):
    if N = i*j:
      ans = "Yes"
      break
print(ans)

N = int(input())
ans = "No"
for i in range(1,10):
  for j in range(1,10):
    if N == i*j:
      ans = "Yes"
      break
print(ans)



Verdicts: Runtime Error

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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


def solve(n):
    if n < 10:
        return "Yes"
    for i in range(2, 10):
        q, r = divmod(n, i)
        # print(q, r)
        if q < 10 and r == 0:
            return "Yes"

    return "No"


n = int(input())


def solve(n):
    if n < 10:
        return "Yes"
    for i in range(2, 10):
        q, r = divmod(n, i)
        # print(q, r)
        if q < 10 and r == 0:
            return "Yes"

    return "No"


print(solve(n))


Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

for i in range(2, 10):
  if n % i == 0:
    num = n / i
    if num < 10:
      exit(0)
print("No")

n = int(input())

for i in range(1, 10):
  if n % i == 0:
    num = n / i
    if num < 10:
      print("Yes")
      exit(0)
print("No")
  

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
N = int(input())
flag = True
for i in range (1,10):
  for j in range (1,10):
    if i*j == N:
      print("Yes")
      flag = False
      break
if flag:
  print("No")

N = int(input())
flag = True
for i in range (1,10):
  for j in range (1,10):
    if i*j == N:
      print("Yes")
      flag = False
      break
  if flag == False:
    break
if flag:
  print("No")

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

for i in reversed(range(1,10)):
    print(i)
    if N%i==0:
        if N/i > 9:
            print('No')
            exit(0)
        else:
            print('Yes')
            exit(0)
    

N=int(input())

for i in reversed(range(1,10)):
    print(i)
    if N%i==0:
        if N/i > 9:
            print('No')
            exit(1)
        else:
            print('Yes')
            exit(1)
    

N=int(input())

for i in reversed(range(1,10)):
    if N%i==0:
        if N/i > 9:
            print('No')
            exit(0)
        else:
            print('Yes')
            exit(0)
    

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

l = []
for i in range(n-1, 1, -1):
    if (n/i).is_integer() == True: 
        l.append(i)
        l.append(n/i)
        break
        
if l[0] < 10 and l[i] < 10:
    print('Yes')
else:
    print("No")

n = int(input())

l = []
for i in range(n-1, 0, -1):
    if (n/i).is_integer() == True: 
        l.append(i)
        l.append(n/i)
        break
print(l)        
if l[0] < 10 and l[1] < 10:
    print('Yes')
else:
    print("No")

n = int(input())
bool = False
for i in range(1, 10, 1):
    for j in range(1, 10, 1):
        if i*j == n:
            bool = True
            break
        else: 
            continue
            
if bool == True:
    print("Yes")
else: 
    print("No")

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

if N>81:
    print('NO')
    
else:
    if N<10 or (N % 2)==0:
        print('YES')
    else:    
        for div in range(3,10,2):
            if (N % div)== 0 and (N // div)<10:
                print('YES')
                flag =True
                break
          
        if not flag:     
            print('NO')    

N = int(input())

flag = False

if N>81:
    print('No')
    
else:
    if N<10 :
        print('Yes')
    else:    
        for div in range(2,10):
            if (N % div)== 0 and (N // div)<10:
                print('Yes')
                flag =True
                break
          
        if not flag:     
            print('No')    


Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
N=int(input())
for i in range(1,10):
    if N%i==0 and N//i<=9:
        print('Yes')
else:print('No')


N=int(input())
for i range(1,10):
    if N%i==0 and N//i<=9:
        print('Yes')
else:print('No')


N=int(input())
for i range(1,int(int(N**0.5)+1):
    if N%i==0 and N//i<=9:
        print('Yes')
else:print('No')

for i range(1,int(int(input())**0.5)+1):
    if N%i==0 and N//i<=9:
        print('Yes')
else:print('No')


N=int(input())
for i in range(1,10):
    if N%i==0 and N//i<=9:
        print('Yes')
        break
else:print('No')

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
print('NYoe s'[0x20101814325195b35d400>>int(input())&1])

print(' YNeos'[int(input())in[a//9*(a%10)for a in range(90)]::2])

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
#  --*-coding:utf-8-*--


def main():
    N = int(input())

    for i in range(1, 10):
        if N%i == 0 and N//i < 10:
            print('YES')
            return

    print('NO')


if __name__ == '__main__':
    main()


#  --*-coding:utf-8-*--


def main():
    N = int(input())

    for i in range(1, 10):
        if N%i == 0 and N//i < 10:
            print('Yes')
            return

    print('No')


if __name__ == '__main__':
    main()


Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
N = int(input())
for i in range(9):
  for j in range(9):
    if (i + 1) * (j + 1) == N:
      print("Yes")
print("No")

N = int(input())
for i in range(9):
  for j in range(9):
    if (i + 1) * (j + 1) == N:
      print("Yes")
      exit()
print("No")

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
r=range(1,10);print('YNeos'[not(int(input())in[i*j for i,j in zip(r,r)])::2])

r=range(1,10);print('YNeos'[not(int(input())in[i*j for i,j in zip(r,r)])::2])

r=range(1,10);print('YNeos'[not(int(input())in[i*j for i,j in zip(r,r)])::2])

r=range(1,10);print(' YNeos'[int(input())in[i*j for i in r for j in r]::2])

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
N=int(input())
ans='No'
for x in range(1,10):
    if N%x==0 and (N/x)<=9:
        ans='Yes'
        print(ans)
        break
print(ans)

N=int(input())
for x in range(1,10):
    if N%x==0 and (N/x)<=9:
        print('Yes')
        break
    else:
        print('No')

N=int(input())
for x in range(1,10):
    if N%x==0 and (N/x)<=9:
        print('Yes')
        break
else:
            print('No')

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

while i in range(1, 9):
  num = N / i
  if 0<num<10:
    print('Yes')
    break
print('No')
    


N = input()
N = int(N)

i = 1

while i < 10:
  num = N / i
  if 0<num<10:
    print('Yes')
    break
  i += 1
  
print('No')


N = input()
N = int(N)

i = 1

while i<10:
  num = N / i 
  if  N%i ==0:
    if 0<num<10:
    	print('Yes')
    	break
  i +=1
    
if i>=10:
  print('No')

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
a, b = list(map(int, input().split()))
if a >= 10 or b >= 10:
    print('-1')
else:
    print(a*b)


n = int(input())
for i in range(1, 10):
    if n % i == 0 and n // i < 10:
        print('Yes')
        exit()
print('No')


Verdicts: Runtime Error

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

ans = "No"
for i in range(1, 10):
    for j in range(1, 10):
        if i*j == n:
            ans = "Yse"

print(ans)


n = int(input())

ans = "No"
for i in range(1, 10):
    for j in range(1, 10):
        if i*j == n:
            ans = "Yes"

print(ans)


Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
n = int(input())
for i in range(1,10):
  for j in range(1,10):
    if i*j = n:
      print(Yes)
      return
print(No)

n = int(input())
for i in range(1,10):
  for j in range(1,10):
    if i*j == n:
      print(Yes)
      return 0;
print(No)

n = int(input())
for i in range(1,10):
  for j in range(1,10):
    if i*j == n:
      print(Yes)
      exit()
print(No)

n = int(input())
for i in range(1,10):
  for j in range(1,10):
    if i*j == n:
      print(Yes)
      return;
print(No)

n = int(input())
for i in range(1,10):
  for j in range(1,10):
    if i*j == n:
      print("Yes")
      exit()
print("No")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
N=int(input())
for i in range(9):
  if N%i==0:
    tmp = N/i
    if tmp<10:
      print("Yes")
print("No")

N=int(input())
for i in range(1,10):
    if N%i==0:
        tmp = N/i
        if tmp<10:
                print("Yes")
                break
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
n = int(input())
s = input()
if n%2 == 0:
    cnt = 0
    for i in range(n//2):
        if s[i] == s[i + n//2]:
            cnt += 1
            if cnt == n//2:
                print("Yes")
                break
        else:
            print("No")  
            break
else:
    print("No")

n = int(input())
def f():
    for i in range(1, 10):
        for j in range(1, 10):
            if i*j == n:
                return "Yes"
    return "No"
print(f())

Verdicts: Runtime Error

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
    def main():
        num = int(input())
        for i in range(1,10):
            q, mod = divmod(num, i)
            if mod == 0 and q < 10:
                return "Yes"
     
        return "No"
    if __name__ == "__main__":
        print(main())

num = int(input())
    for i in range(1,9):
        q, mod = divmod(num, i)
        if mod == 0 and 1 < q < 10:
            print("Yes")
            return

    print("No")

    def main(num):
        num = int(input())
        for i in range(1,10):
            q, mod = divmod(num, i)
            if mod == 0 and q < 10:
                return "Yes"
     
        return "No"
    if __name__ == "__main__":
        result = main()
        print(result)

def main(num):
    num = int(input())
    for i in range(1,10):
        q, mod = divmod(num, i)
        if mod == 0 and q < 10:
            return "Yes"

    return "No"
if __name__ == "__main__":
    print(main())

def main(num):
    num = int(input())
    for i in range(1,10):
        q, mod = divmod(num, i)
        if mod == 0 and q < 10:
            return "Yes"

    return "No"
if __name__ == "__main__":
    print(main())

def main():
    num = int(input())
    for i in range(1,10):
        print(i)
        q, mod = divmod(num, i)
        if mod == 0 and 1 < q < 10:
            print("Yes")
            return

    print("No")
if __name__ == "__main__":
    main()


num = input()

for i in range(1,9):
    q, mod = divmod(num, i)
    if q == 0 and 1 < q < 10:
        print("Yes")
        return
print("No")


def main():
	num = int(input())
	for i in range(1,10):
		q, mod = divmod(num, i)
		if mod == 0 and q < 10:
			return "Yes"

	return "No"
if __name__ == "__main__":
    print(main())

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
import sys
N=int(input(''))
for i in range(1,10,1):
    if N%i==0 and N/i <= 9:
        print('yes')
        sys.exit()
print('no')

import sys
N=int(input(''))
for i in range(1,10,1):
    if N%i==0 and N/i <= 9:
        print('Yes')
        sys.exit()
print('No')

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
n = int(input())
ans = 'No'

for i in range(1,10):
    for j in range(1,10):
        
if n == i*j:
    ans = 'Yes'
    break
    
print(ans)

n = int(input())
ans = 'No'

for i in range(1,10):
    for j in range(1,10):
        if n == i*j:
            ans = 'Yes'
            break
    
print(ans)


Verdicts: Runtime Error

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

if N !=0 and N <10:
  print("Yes")
  exit()

for i in range(2:10):
  if N % i ==0:
    print("Yes")


    
print("No")

N =int(input())

if N !=0 and N <10:
  print("Yes")
  exit()

for i in [1,9]:
  if N % i ==0 and N //i <=9 :
    print("Yes")
    exit()


    
print("No")



N =int(input())

if N !=0 and N <10:
  print("Yes")
  exit()

for i in [2,10]:
  if N % i ==0:
    print("Yes")


    
print("No")



list = []

for i in range(1, 10):
  for j in range(1, 10):
    list.append(i * j)

N = int(input())

if N in list:
  print('Yes')
else:
  print('No')


Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
n = input()
for i in range(10):
  for j in range(i,10):
    if i**j == n:
      print("Yes")
      exit()
      
print("No")

n = input()
for i in range(10):
  for j in range(i,10):
    if i*j == n:
      print("Yes")
      exit()
      
print("No")


n = int(input())
for i in range(1,10):
  for j in range(i,10):
    if i*j == n:
      print("Yes")
      
print("No")

n = int(input())
for i in range(1,10):
  for j in range(i,10):
    if i*j == n:
      print("Yes")
      exit()
      
print("No")


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
n = int(input())
list = list(range(9, 1, -1))
ans = 0
flag = 0

while n > 1:
    for i in list:
        if n % i == 0:
            n = n / i
            ans += 1
            break
        else:
            flag = 1

    if flag == 1:
        ans = 0
        break


if 0 < ans <= 2:
    print("Yes")
else:
    print("No")


n = int(input())
list = list(range(9, 1, -1))
ans = 0

while n > 1:
    for i in list:
        if n % i == 0:
            n = n / i
            ans += 1
            break

if ans > 2:
    print("no")
else:
    print("yes")


n = int(input())
list = list(range(9, 1, -1))
ans = 0

while n > 1:
    for i in list:
        if n % i == 0:
            n = n / i
            ans += 1
            break
    if ans == 0:
        break


if 0 < ans < 2:
    print("Yes")
else:
    print("No")


n = int(input())
list = list(range(9, 1, -1))
ans = 0

if n > 1:
    while n > 1:
        flag = 1
        for i in list:
            if n % i == 0:
                n = n / i
                ans += 1
                flag = 0
                break

        if flag == 1:
            ans = 0
            break
elif n == 1:
    ans = 2

if 0 < ans <= 2:
    print("Yes")
else:
    print("No")


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

for i in range(1, 11, 1):
	for j in range(1, 11, 1):
		if N==i*j:
			print("Yes")
		else:
			print("No")

N = int(input())

for i in range(1,10):
    if (N%i==0 and N/i<10):
        print("Yes")
        exit()
print("No")


Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

for i in range(10):
  for j in range(10):
    if i*j == n:
      print("Yes")


n = int(input())
print(n)

for i in range(10):
  for j in range(10):
    if i*j == n:
      break
  else:
     continue
  break    

if i*j == n:
  print("Yes")
else:
  print("No")


n = int(input())
 
for i in range(10):
  for j in range(10):
    if i*j == n:
      break
if i*j ==n:
  print("Yes")
else:
  print("No")

n = int(input())
for i in range(10):
  for j in range(10):
    if i*j == n:
      break
  else:
     continue
  break    

if i*j == n:
  print("Yes")
else:
  print("No")


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
N=int(input())
a=True 
while a:
  for i in range(10):
    for j in range(10):
      if i*j==N:
        print("Yes")
        break
  print("No")
  a=False

xlist=[]
for a in range(10):
    for b in range(10):
        xlist.append(a*b)

if n in xlist:
    print("Yes")
else:
    print("No")
    


n=int(input())

for a in range(10):
    for b in range(10):
        if a*b==n:
            print("Yes")
            break 
    if a*b==81:
        print("No")




n = int(input())


list = []
for i in range(1, 10):
  for j in range(1, 10):
    list.append(i * j) 


if N in list:
  print("Yes")
else:
  print("No")

n=int(input())

for a in range(10):
    for b in range(10):
        if a*b==n:
            print("Yes")
            break 
    if a*b==81:
    print("No")

n=int(input())

for a in range(10):
    for b in range(10):
        if a*b==n:
            print("Yes")
            break 
print("No")

N=int(input())

while a=True:
  for i in range(10):
    for j in range(10):
      if i*j==N:
        print("Yes")
        break
  print("No")
  a=False

  
    

N=int(input())

for i in range(1,10):
  for j in range(1,10):
    check=i*j
    if check==N:
      print("yes")
      break
  if i*j==81:
    print("No")
    

N=int(input())


for i in range(1,10):
  if N%i==0 and N<=i*9:
    print("Yes")
    break

  print("No")




N = int(input())


list = []
for i in range(1, 10):
  for j in range(1, 10):
    list.append(i * j) 


if N in list:
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
li=[]
ok=False
a=int(input())
for i in range(1,10):
    for j in range(1,10):
        if(i*j==a and a%j==0 and a%j==0 ):
            li.append({i,j})
            break
if(len(li)>=1):
    print('YES')
else:
    print('NO')

li=[]
ok=False
a=int(input())
for i in range(1,10):
    for j in range(1,10):
        if(i*j==a and a%i==0 and a%j==0 ):
            li.append({i,j})
            break
if(len(li)>=1):
    print('Yes')
else:
    print('No')

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
N = int(input())
for i in range(8):
    for j in range(8):
        if(N== i*j):
            print('Yes')
print('No')

N = int(input())
for i in range(9):
    for j in range(9):
        if(N== i*j):
            print('Yes')
print('No')

N = int(input())
for i in range(1,10):
    for j in range(1,10):
        if(N== i*j):
            print('Yes')
            exit()
print('No')

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

for i in range(1, 10):
    for j in range(1, 10):
        if i * j == N:
            print("YES")
            exit()
print("NO")


N = int(input())

for i in range(10):
    for j in range(10):
        if i * j == N:
            print("YES")
            exit()
print("NO")


N = int(input())

for i in range(9):
    for j in range(9):
        if i * j == N:
            print("YES")
            exit()
print("NO")


N = int(input())

for i in range(1, 10):
    for j in range(1, 10):
        print(i, j)
        if i * j == N:
            print("YES")
            exit()
print("NO")


N = int(input())

for i in range(1, 10):
    for j in range(1, 10):
        if i * j == N:
            print("Yes")
            exit()
print("No")


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
if __name__ == '__main__':
    x = int(input())
    for i in range(9, 0 , -1):
        if(x % i == 0):
            q = x / i
            if (q > 9):
                print("NO")
            else:
                print("YES")
            break

if __name__ == '__main__':
    x = int(input())
    for i in range(9, 0 , -1):
        if(x % i == 0):
            q = x / i
            if (q > 9):
                print("No")
            else:
                print("Yes")
            break

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
# -*- coding: utf-8 -*-

N = int(input())

ans = 'no'
for n in range(10):
    if n == 0:
        continue
    if N / n < 10 and N % n == 0:
        #print('N, nxm: ', N, n, N/n)
        ans = 'yes'
        break

print(ans)


# -*- coding: utf-8 -*-
N = int(input())

ans = 'No'
for n in range(10):
    if n == 0:
        continue
    if N / n < 10 and N % n == 0:
        #print('N, nxm: ', N, n, N/n)
        ans = 'Yes'
        break

print(ans)


Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
N=int(input())
for i in range(9):
    for r in range(9):
        if (i+1)*(r+1)==N:
            print("Yes")
            break
        elif (i+1)*(r+1)==81 :
            print("No")
        else:
            continue

N=int(input())
for i in range(9):
    for r in range(9):
        if (i+1)*(r+1)==N:
            print("Yes")
            exit()

print("No")

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
n = int(input())
a = 0
for i in range(1, 10):
    for j in range(1, 10):
        if n == i*j:
            print('Yes')
            break
        else :
            a += 1
            continue
if a == 81:
    print('No')

n = int(input())
a = 'No'
for i in range(1, 10):
    for j in range(1, 10):
        if n == i*j:
            a = 'Yes'
            break
print(a)

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

for i in range(1,10):
  r = (n/i)//1
  if len(str(r)) < 2 and r <= 9:
    print("Yes")
    exit()
    
print("No")

n = int(input())

for i in range(1,10):
  r = n/i
  if len(str(r)) < 2 and r <= 9:
    print("Yes")
    exit()
    
print("No")

n = int(input())

for i in range(1,10):
  r = n/i
  if 1 <= r <= 9 and r == int(r):
    print("Yes")
    exit()
    
print("No")

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
N = int(input())
for i in range(1, 10):
    if N // i < 10:
        print("YES")
        exit()
print("NO")


N = int(input())
for i in range(1, 10):
    if N // i < 10:
        print("YES")
    else:
        print("NO")


N = int(input())
for i in range(1, 10):
    if N % i == 0 and N // i < 10:
        print("Yes")
        exit()
print("No")


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):

  import sympy
A= sympy.factorint(int(input()))
X = list(A)
E = max(X)
if sum(list(A.values()))>2:
  print("NO")
elif E > 9:
  print("No")
else:
  print("Yes")

N = int(input())
t = 0
for i in range(1,10):
  if N % i == 0:
    if N / i < 10:
      t = 1
      break
if t >0:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
a=int(input())
if (a%2==0 or a%3==0 or a%5==0 or a%7==0) and a<=81 and(a!=10 or a!=20 or a!=30 or a!=40 or a!=50 or a!=60 or a!=70 or a!=80):
  print("yes")
else:
  print("no")

a=int(input())
flag = 0
for i in range(1,10):
  for j in range(1,10):
    if a == i*j:
      flag =1
if flag==1:
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
lists=[]
for i in range(1,10):
    for j in range(1,10):
        if i*j  not in lists:
            lists.append(i*j)
print(lists)
n=int(input())
if n in lists:
    print("Yes")
else:
    print("No")

n=int(input())
flag=False
for i in range(1,10):
    if n%i==0 and 1<=n//i<=9:
        flag=True
if flag:
    print("Yes")
else:
    print("No")

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

a = set()
for i in range(1, 10):
    for j in range(1, 10):
        a.add(i*j)
if N in a:
    print('Yse')
else:
    print('No')

N = int(input())
 
a = set()
for i in range(1, 10):
    for j in range(1, 10):
        a.add(i*j)
if N in a:
    print('Yes')
else:
    print('No')

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
str = input()
if str == [1,2,3,4,5,6,7,8,9,10,12,14,15,16,18,20,21,24,25,27,28,30,32,35,36,40,42,45,48,49,54,56,63,64,72,81]:
  print('Yes')
else:
  print('No')

int = int(input())
l = [1,2,3,4,5,6,7,8,9,10,12,14,15,16,18,20,21,24,25,27,28,30,32,35,36,40,42,45,48,49,54,56,63,64,72,81]
if int in l:
  print('Yes')
else:
  print('No')

Verdicts: Wrong Answer

Accepted