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())
A=[10,20,30,40,50,60,70,80,90,100]

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

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):
n=int(input())
count=0
for i in range(1,10):
  for j in range(1,10):
    if n==i*j:
      print("Yes")
      count+=1
      pass
if count==0:
	print("No")

n=int(input())
count=0
for i in range(1,10):
  for j in range(1,10):
    if n==i*j:
      print("Yes")
      count+=1
      break
  if count==1:
      break
if count==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())
for i in range(1,10):
    if N%i==0 and N//i<10:
        print('Yes')
        break
print('No')

N = int(input())
for i in range(1, 10):
    if N%i==0 and N//i<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())
for x in range(1, 10)
  for y in range(x, 10)
    if x * y == n:
      print("Yes")
      exit()
print("No")
  

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

n = int(input())
for x in range(1, 10):
  for y in range(x, 10):
    if x * y == n:
      print("Yes")
      exit()
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):
A = int(input())
for i in 9:
  for j in 9:
    if i*j == A:
      print('Yes')
print('No')

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

A = int(input())
def calc(A):
  for i in range(1, 10):
    for j in range(1, 10):
      if i*j == A:
        return 'Yes'
  return 'No'
print(calc(A))

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):
x = int(input())
f = 0
for i in range(1,10):
  for  j in range(1,10):
    if(i*j==x):
      f = 1
      print("Yes")
      break
if(f==0):
  print("No")

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

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

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

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

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

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

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

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

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

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

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Wrong Answer

Wrong Answer

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):
s=int(input)
def c(x):
  co=0
  for i in range(1,10):
    if x%i==0 and x//i<=9:
      co+=1
  if co>0:
    return("Yes")
  else:
    return("No")
print(c(s))

num = int(input())

data = list()

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

if num in data:
    print('yes')
else:
    print('no')

numeros = [1,2,3,4,5,6,7,8,9]
multiplicaciones = []

for x in numeros:
	for z in numeros:
		multiplicaciones.append(x*z)
		pass
	pass
entrada = int(input())
si = False
for x in multiplicaciones:
	if(x==entrada):
		si=True
		break

if(si):
	print("YES")
else:
	print("NO")

N = int(input())
if(N > 81):
  print("No")
else:
  state='No'
  for i in range(1,10):
    for j in range(1,10):
      if(i*j == N):
        state='Yes'
        break
      if(i*j > N):
        break
  print(state)

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

ans = 'No'
for i in [9, 8, 7, 6, 5, 4, 3, 2]:
    if n % i == 0:
        n /= i
    if n <= 9:
        ans = 'Yes'
        break
    else:
        break
print(ans)


n = int(input())

ans = 'No'
kuku = [i*j for i in range(1, 10) for j in range(1, 10)]
if n in kuku:
    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())


print(N in[i * j for i in range(10) for j in range(10)])


N = int(input())


print("Yes" if N in[i * j for i in range(10) for j in range(10)] else "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 math
N = int(input())

list_aaa = [1,2,3,4,5,6,7,8,9]

ans = 0
_not = 0

for i in list_aaa:
    ans = math.ceil(N/i)
    if ans >=10 and N%i ==0 :
        _not +=1
    else:
        _not +=0

if _not >=1:
    print("No")
else:
    print("Yes")


import math
N = int(input())

list_aaa = [1,2,3,4,5,6,7,8,9]

ans = 0
_not = 0

for i in list_aaa:
    ans = math.ceil(N/i)
    if ans >=10 or N%i >=1 :
        _not +=1
    else:
        _not +=0

if _not >=1:
    print("No")
else:
    print("Yes")


N = int(input())

list_aaa = [1,2,3,4,5,6,7,8,9]

ans = 0
_not = 0

for i in list_aaa:
    ans = N/i
    if ans >=10 and N%i ==0 :
        _not +=1
    else:
        _not +=0

if _not >=1:
    print("No")
else:
    print("Yes")


import math
N = int(input())

list_aaa = [1,2,3,4,5,6,7,8,9]

ans = 0
_not = 0
yes =0

for i in list_aaa:
    ans = math.ceil(N/i)
    if ans >=10 or N%i >=1 :
        _not +=1
    else:
       yes +=1

if yes >=1:
    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):
a = int(input())
found = False
for i in range(1, 10):
  for j in range(1, 10):
    if i*j == a:
	  found = True
if found:
  print("Yes")
else:
  print("No")

a = int(input())
found = False
for i in range(1, 10):
  for j in range(1, 10):
    if i*j == a:
      found = True
if found:
  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())
ans = "No"
for i in range(2,10):
    if n % i = 0 and n // i < 10 :
        ans = "Yes"
        break()
print(ans)

n = int(input())
ans = "No"
for i in range(1,10):
    if n % i == 0 and n // i < 10 :
        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):
read = input 
rn = lambda :list(map(int, read().split()))
def reverse_range(r):return range(r-1, -1, -1)
def sol(a):
    s = set()
    for i in range(1, 10):
        for j in range(1, 10):
            s.add(i*j)
    if a in s:
        print("YES")
    else:
        print("NO")
a = rn()[0]
sol(a)

read = input 
rn = lambda :list(map(int, read().split()))
def reverse_range(r):return range(r-1, -1, -1)
def sol(a):
    s = set()
    for i in range(1, 10):
        for j in range(1, 10):
            s.add(i*j)
    if a in s:
        print("Yes")
    else:
        print("No")
a = rn()[0]
sol(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):
import sys
input = sys.stdin.readline

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

n=I()
count=0
anss=[]
for i in range(1,10):
    for j in range(1,10):
        anss.append(i*j)
for ans in anss:
    if ans==n:
        print("Yes")
    else:
        count+=1
if count==len(anss):
    print("No")

import sys
input = sys.stdin.readline

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

n=I()
count=0
anss=[]
for i in range(1,10):
    for j in range(1,10):
        anss.append(i*j)
for ans in anss:
    if ans==n:
        print("Yes")
        sys.exit()
    else:
        count+=1
if count==len(anss):
    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):

tmp = []

for i in range(1,10):
  for l in range(1,10):
    tmp.append(i*l)

cnt = 0
    
for n in tmp:
  if n == x:
    cnt += 1
    
if cnt == 0:
  print("No")
else:
  print("Yes")

x = int(input())

tmp = []

for i in range(1,10):
  for l in range(1,10):
    tmp.append(i*l)

cnt = 0
    
for n in tmp:
  if n == x:
    cnt += 1
    
if cnt == 0:
  print("No")
else:
  print("Yes")

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())
c=0
for i in range(1, 10):
    for j in range(1, 10):
        if i*j ==N:
            print("Yes")
            c=1
            break

if c!=1:
    print("No")

N = int(input())
c=0
for i in range(1, 10):
    for j in range(1, 10):
        if i*j ==N:
            print("Yes")
            c=1
            break
    else:
        continue
    break

if c!=1:
    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):
a = int(input())
f = False
for i in range(9):
    t = a / (i + 1)
    if t == int(t) and t < 10:
        print("Yes")
        f = True
if not f:
    print('No')


a = int(input())
for i in range(9):
  t = a / (i+1)
  f = False
  if t == int(t) && t < 10:
    print(YES)
    f = True
if f == False:
  print(No)
    

a = int(input())
f = False
for i in range(9):
    t = a / (i + 1)
    if t == int(t) and t < 10:
        print("Yes")
        f = True
        break
if not f:
    print('No')


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):
a=int(input())
b=0
c=0
for i in range(1,10)
  if a%i==0:
    b=a/i
    if b<=9:
      c=1
if c==1:
  print("Yes")
else
  print("No")

a=int(input())
b=0
c=0
for i in range(1,10):
  if a%i==0:
    b=a/i
    if b<=9:
      c=1
      break
if c==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(""))

f=0

for i in range(1,10):
    for j in range(i,10):

        print(i,j,i*j)
        a= i*j

        if n == (i*j) :
            
            print("Yes")
            f = 1
            break
        else:
            None

    if f == 1 :
        break

if f != 1 :
    print ("No")

    



n = int(input(""))

f=0

for i in range(1,10):
    for j in range(i,10):

        #print(i,j,i*j)
        a= i*j

        if n == (i*j) :
            
            print("Yes")
            f = 1
            break
        else:
            None

    if f == 1 :
        break

if f != 1 :
    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):
A=int(input())
NUMLIST = []
for i in range(1,10):
  for j in range(1,10):
    NUMLIST.append(i*j)
    
if A in NUMLIST:
  print('Yes')
print('No')

A=int(input())
NUMLIST = []
for i in range(1,10):
  for j in range(1,10):
    NUMLIST.append(i*j)
    
if A in NUMLIST:
  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 = 0
for i in range(10):
    for j in range(10):
        if N == i*j:
            ans += 1
if ans > 0:
    print("YES")
else:
    print("NO")

N = int(input())
ans = 0
for i in range(10):
    for j in range(10):
        if N == i*j:
            ans += 1
if ans > 0:
    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.append(i*j)
if n in a:
  print('Yes')
else:
  print('No')
    

n = int(input())
a = []
for i in range(1,10):
  for j in range(1,10):
    a.append(i*j)
if n in a:
  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())
ans = "No"
for i in range (1,10):
  for j in range(1,10):
    if N == i * j:
      ans = "Yes"
      break
    else:
      ans = "No"
print(ans)

N = int(input())
kuku = []
for i in range (1,10):
  for j in range(1,10):
    kuku.append(i*j)

if N in kuku:
  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):
data=int(input())
count=0
 
for i in range(10):
  c=data%(i+1)
  if c==0:
    a=data
    b=data//(i+1)
    if a<=9 and b<=9 :
      count+=1
if count>=1:
  print("Yes")
else:
  print("No")

data=int(input())
count=0

for i in range(10):
  a=i
  c=data%i
  if c==0:
    b=data//i
    if a<=9 and b<=9 :
    count+=1
if count>=1:
  print("Yes")
else:
  print("No")

data=int(input())
count=0
 
for i in range(10):
  c=data%(i+1)
  if c==0:
    a=i+1
    b=data//(i+1)
    if a<=9 and b<=9 :
      count+=1
      
if count>=1:
  print("Yes")
if count==0:
  print("No")

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())
if N > 81:
  print("No")
elif N==1 or N==2 N==3 or N==4 or N==5 or N==6 or N==8 or N==9 or N==10 or N==12 or N==14 or N==15 or N==16 or N==18 or N==20 or N==21 or N==24 or N==25 or N==27 or N==28 or N==30 or N==32 or N==35 or N==36 or N==40 or N==42 or N==45 or N==48 or N==49 or N==54 or N==56 or N==63 or N==64 or N==72 or N==81:
  print("Yes")
else:
  print("No")

N = int(input())
if N > 81:
  print("No")
elif N>=1 and N<=10:
  print("Yes")
elif N==12 or N==14 or N==15 or N==16 or N==18 or N==20 or N==21 or N==24 or N==25 or N==27 or N==28 or N==30 or N==32 or N==35 or N==36 or N==40 or N==42 or N==45 or N==48 or N==49 or N==54 or N==56 or N==63 or N==64 or N==72 or N==81:
  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 = [9,8,7,6,5,4,3,2,1]
if 0 < n and n <= 81:
    for i in range(9):
        if n % a[i] == 0:
            if n / a[i] > 9:
                print('No')
            else:
                print('Yes')
                break
else:
    print('No')


n = int(input())
D = 0
for i in range(1,10):
  for j in range(1,10):
    if j*i == n:
      D = 1
      break
if D == 1:
  print('Yes')
elif D == 0:
  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=input()
if N<11 or N==12 or 11<N<17 or N==18 or 19<N<22 or 23<N<26 or N==27 or N==30
or N==32 or 34<N<37 or N==40 or N==42 or N==45 or N==48 or N==49 or N==54 or N==63 or N==72 or N==81 or N==64 or N==56:
	print('Yes')
else:
	print('No')

N=int(input())
a=[]
for i in range(10):
	for j in range(10):
		a.append(i*j)
if N in a:
	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())

result = False
for i in range(1,10):
    q, mod = divmod(N, i)
    if mod == 0 and q < 10 and q > 0:
        result = True
if result:
    print('yes')
else:
    print('no')


import sys
N = int(input())

for i in range(1,10):
    q, mod = divmod(N, i)
    if mod == 0 and q < 10 and q > 0:
        print('yes')
        sys.exit()
print('no')


N = int(input())

result = False
for i in range(1,10):
    q, mod = divmod(N, i)
    if mod == 0 and q < 10 and q > 0:
        result = True
if result:
    print('Yes')
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):
import numpy as np

n = int(input())
answer = [[i * j for j in range(1, 10)] for i in range(1, 10)]

flag = 0
for a in answer:
    if a == n:
        flag=1
        break

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

import numpy as np

n = int(input())
answer = [[i * j for j in range(1, 10)] for i in range(1, 10)]

flag = 0
for ans in answer:
  for a in ans:
    if a == n:
        flag=1
        break

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):
import math
a = int(input())
flag = False
i = 0

while i <= math.sqrt(a):
  b = divmod(a)
  if b[0] < 10 and b[1] == 0:
    flag = True
  else:
    i+=1
    
if flag:
  print("Yes")
else:
  print("No")



import math
a = int(input())
flag = False
i = 1

while i <= math.sqrt(a):
  b = divmod(a,i)
  if b[0] < 10 and b[1] == 0:
    flag = True
  i+=1
    
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):
import sys
n=int(input())
for j in range(2):
    for i in range(1,10):
        if n%(10-i)==0:
            n=n/(10-i)
            sys.exit()
if n==1:
    print('Yes')
else:
    print('No')

import sys
n=int(input())
for j in range(2):
    for i in range(1,10):
        if n%(10-i)==0:
            n=n/(10-i)
            break
if n==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):
# B - 81


n = int(input())

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

print(result)


# B - 81


n = int(input())

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

print(result)


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):
 = int(input())
for i in range(1, 10):
    for j in range(1, 10):
        if i * j == n:
            print('Yes')
            quit()
else:
    print('No')


n = int(input())
for i in range(1, 10):
    for j in range(1, 10):
        if i * j == n:
            print('Yes')
            quit()
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):
import math
from functools import reduce
import itertools
import numpy as np

def solve():
    n = int(input())
    num = list(range(1,10))
    bit = 0
    for i in num:
        for j in num:
            if i * j == n:
                print("Yes")
                bit = 1
                break
    i bit == 0:
        print("No")
    return 0

if __name__ == "__main__":
    solve()


import math
from functools import reduce
import itertools
import numpy as np

def solve():
    n = int(input())
    num = list(range(1,10))
    bit = 0
    for i in num:
        for j in num:
            if i * j == n:
                print("Yes")
                bit = 1
                break
    if bit == 0:
        print("No")
    return 0

if __name__ == "__main__":
    solve()


import math
from functools import reduce
import itertools
import numpy as np

def solve():
    n = int(input())
    num = list(range(1,10))
    bit = 0
    for i in num:
        for j in num:
            if i * j == n:
                print("Yes")
                bit = 1
                break
        if bit == 1:
            break
    if bit == 0:
        print("No")
    return 0

if __name__ == "__main__":
    solve()


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):
N = int(input())
cnt = 1
while cnt <= 9:
    s = N/cnt
    if 1 <= s <= 9 and s == type(int):
        print('Yes')
        cnt += 1
else:
    print('No')


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

Verdicts: Time Limit Exceeded

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) ==i:
        ans="Yes"
        break
    else:
        pass
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
        else:
            pass
    
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):
  if N % i == 0 and N//i <= 9:
    print("Yes")
print("No")

N = int(input())
for i in range(1,10):
  if N % i == 0 and N//i <= 9:
    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())

judge = False


if N <= 81:
    for i in range(1,10,1):
        for j in range(1,10,1):
            if i*j == N:
                judge = True
                break
        if judge:
            break


if judge:
  print("YES")
else:
  print("NO")

N = int(input())

judge = False


if N <= 81:
    for i in range(1,10,1):
        for j in range(1,10,1):
            if i*j == N:
                judge = True
                break
        if judge:
            break


if judge:
  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):
k = int(input())
a = list(range(1,10))
for i in a:
     if k / i >= 10:
             print("No")
     else:
             print("Yes")

in = int(input())
for i in list(range(10)):
     if in / i >= 10:
             print("No")
     else:
             print("Yes")

k = int(input())
a = list(range(1,10))
for i in a:
     if k in / i >= 10:
             print("No")
     else:
             print("Yes")

k = int(input())
a = list(range(1,10))
for i in a:
     if k / i >= 9:
             print("No")
     else:
             print("Yes")

k = int(input())

for i in list(range(1,10)):
     if k in / i >= 10:
             print("No")
     else:
             print("Yes")

in = int(input())
for i in list(range(1,10)):
     if in / i >= 10:
             print("No")
     else:
             print("Yes")

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

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

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

print("No")


Verdicts: Wrong Answer

Runtime Error

Runtime Error

Wrong Answer

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

ans = 'No'
for i in range(1, 10):
    if x%i==0 and x//i<=9:
        print(i)
        ans = 'Yes'
        break

x = int(input())
 
ans = 'No'
for i in range(1, 10):
    if x%i==0 and x//i<=9:
        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())
judge = 'No'
for i in range(1:10):
  for j in range(1:10):
    if i * j == N:
      judge = 'Yes'
      break
    else:
      continue
  break
print(judge)

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

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

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):
N=int(input())
for a in range(1,10):
    for b in range(1,10):
        if N==a*b:
            print("Yes")
        else:
            print("No")

N=int(input())
for a in range(1,10):
    for b in range(1,10):
        if a*b==N:
            print("Yes")
            break
        else:
            print("No")

N=input()
for a in range(1,10):
    for b in range(1,10):
        if N==a*b:
            print("Yes")
        else:
            print("No")

N=int(input())
for a in range(1,10):
    for b in range(1,10):
        if a*b==N:
            print("Yes")
        else:
            print("No")

N=int(input())
for a in range(1,10):
    for b in range(1,10):
        if a*b==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):
n=int(input())
for i in range(1,10):
  for k in range(1,10):
    list=[]
    if i*k not in list:
      list.append(i*k)
      
if n in list:
  print('Yes')
else:
  print('No')
    

n=int(input())
list=[]
for i in range(1,10):
  for k in range(1,10):
    
    if i*k not in list:
      list.append(i*k)
      
if n in list:
  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):
a = int(input())
flag = 0

for i in range(8):
  if a % (i+2) == 0:
    flag = 1

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


a = int(input())
flag = 0

for i in range(9):
  for j in range(9):
    if (i+1)*(j+1) == a:
      flag = 1

if flag == 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):
A=input().split()
a=int(A[0])
p=0
for i in range(1,10):
    for j in range(1,10):
        if a==i*j:print("Yes");p=1
if p==0:print("No")



A=input().split()
a=int(A[0])
p=0
for i in range(1,10):
    for j in range(1,10):
        if a==i*j and p==0:print("Yes");p=1
if p==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):
a=map(int,input().split())
flg=0
for i in range(9):
  if a % (9-i) == 0 and a / (9-i) < 10:
    print("YES")
    flg=1
    break

if flg==0:
  print("NO")
    

am=input()
a = int(am)
flg=0
for i in range(9):
  if a % (9-i) == 0 and a / (9-i) < 10:
    print("YES")
    flg=1
    break
 
if flg==0:
  print("NO")

am=input()
a = int(am)
flg=0
for i in range(9):
  if a % (9-i) == 0 and a / (9-i) < 10:
    print("Yes")
    flg=1
    break
 
if flg==0:
  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):
N=int(input())
result=0
for i in range(1,10):
  for j in range(1,10):
    if i*j==N:
      result=1
if result=1:
  print('Yes')
else:
  print('No')

N=int(input())
result=0
for i in range(1,10):
  for j in range(1,10):
    if i*j==N:
      result=1
if result==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())

def solve(n):
  if n > 81:
    return -1
  flag = False
  for i in range(1, 10):
    if n % i == 0:
      if n//i <= 9 and n//i >= 1:
        return "YES"
        flag = True
        break
      
  if not flag:
    return "NO"

print(solve(n))

n = int(input())
flag = False
for i in range(1, 10):
  if n % i == 0:
    if n//i <= 9 and n//i >= 1:
      print("YES")
      flag = True
      break
     
if not flag:
  print("NO")

def precompute():
  dict = {}
  for i in range(1, 10):
    for j in range(1, 10):
      dict[i*j] = 0

  return dict

n = int(input())
dict = precompute()
if n in dict:
  print("Yes")
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())

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



n = int(input())

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



n = int(input())

for i in range(1,10):
    if n % i == 0 and 1 <= n / i <= 9:
        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())
flag = 0


for i in reversed(range(2,10)):
    if N % i == 0:
        j = N / i

        if j >= 10:
            print("No")
            break
            flag = 1
        else:
            print("Yes")
            break
            flag = 1
    else:
        continue

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

N = int(input())
flag = 0


for i in reversed(range(1,10)):
    if N % i == 0:
        j = N / i

        if j >= 10:
            print("No")
            flag = 1
            break

        else:
            print("Yes")
            flag = 1
            break

    else:
        continue

if flag == 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):
x=int(input())
a=[11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79]
for i in a:
  if x%i==0:
    print('No')
    break
if x<82:
  print('No')
else:print('Yes')

x=int(input())
#a=[11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79]
for i in range(1,10):
  for k in range(1,i+1):
    if k*i==x:
      print('Yes')
      break
else:print('No')


x=int(input())
t=1
#a=[11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79]
for i in range(1,10):
  for k in range(1,i+1):
    if k*i==x:
      print('Yes')
      t=0
      break
  if t==0: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())
def f(N):
	for i in range(1,10):
  		j=N//i
        if i*j==N and j>=1 and j<=9:
          return(True)
   	return(False)
if f(N):
  print("YES")
else:
  print("NO")
      


N=int(input())
def f(N):
	for i in range(1,10):
  		for j in range(1,10):
    		if i*j==N:
              return(True)
   	return(False)
if f(N):
  print("YES")
else:
  print("NO")
      

N=int(input())
def f(N):
  for i in range(1,10):
    j=N//i
    if i*j==N and (j>=1 and j<=9):
      return(True)
  return(False)
if f(N):
  print("YES")
else:
  print("NO")
      

N=int(input())
def f(N):
  for i in range(1,10):
    j=N//i
    if i*j==N and (j>=1 and j<=9):
      return(True)
  return(False)
if f(N):
  print("Yes")
else:
  print("No")
      


Verdicts: Runtime Error

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):
n = int(input())
 
for i in range(1, 9)
	for j in range(1, 9)
		if n == i * j:
			print("Yes")
			break
 
print("No")

n = int(input())

for i in range(1, 9)
	for j in range(1, 9)
    	if n == i * j:
        	print("Yes")
            break

print("No")


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


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



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



n = int(input())

for i in range(1, 9)
	for j in range(1, 9)
    	if n == i * j:
        	print("Yes")
            exit

print("No")

n = int(input())

for i in range(1, 9)
	for j in range(1, 9)
    	if n == i * j:
			print("Yes")
			break

print("No")


def solve():
    N = int(input())
    ans = False
    for i in range(1, 10):
        if N % i == 0 and N / i < 10:
            ans = True
    return 'Yes' if ans else 'No'

print(solve())

Verdicts: Runtime Error

Runtime Error

Runtime Error

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 range(10):
    num = n % i
    if num != 0:
        print('No')
else:
    print('Yes')


n = int(input())
for i in range(1, 10):
    num = n % i
    if num != 0:
        print('No')
else:
    print('Yes')


n = int(input())
for i in range(1, 10):
    if n % i ==0 and n/i <10:
        print('Yes')
        break
else:
    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):
n=int(input())
a=0
b=0
for i in range(2,10,1):
  if n%i=0 and n/i<=9:
    a=1
  else:
    b+=1
    
if a==1:
  print("Yes")
else:
  print("No")
    
    
  

n=int(input())
a=1
b=0
for i in range(1,10,1):
  if n%i==0 and n/i<=9:
    a=a*0
  else:
    b+=1
    
if a==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):
N = int(input())
num = [1, 2, 3, 4, 5, 6, 7, 8, 9]

for i in range(8):
  if N/(i+1) in num:
    print("Yes")
    break
  else:
    print("No")
    break
    

N = int(input())
num = [1, 2, 3, 4, 5, 6, 7, 8, 9]

for i in range(9):
  if N/(i+1) in num:
    print("Yes")
    break
  else:
    print("No")
    break
    

N = int(input())
num = [1, 2, 3, 4, 5, 6, 7, 8, 9]
x = 0
for i in range(9):
  if N/(9-i) in num:
    x += 1
  else:
    x += 0
    
if x!= 0:
  print("Yes")
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())
count=0
for i in range(9):
    if n/(i+1)<=10:
        count+=1
if count>=1:
    print("No")
else:
    print("Yes")

n= int(input())
count=0
for i in range(9):
    for j in range(9):
        if (i+1)*(j+1)==n:
            count+=1
            break
if count>=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(10):
    for j in range(10):
        if N == i*j:
            print('Yes')
        if i*j == 81 and N!=81:
            print('No')
        

N = int(input())

for i in range(10):
    for j in range(10):
        if N == i*j:
            print('Yes')
        if i*j == 81 and N!=81:
            print('No')
        if N == i*j:
            break
    if N== i*j:
        break


Verdicts: Wrong Answer

Accepted