Problem:


Score : 200 points

Problem Statement

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.

Constraints

1 \leq N \leq 100

N is an integer.

Input

Input is given from Standard Input in the following format:

N

Output

If N can be represented as the product of two integers between 1 and 9 (inclusive), print Yes; if it cannot, print No.

Sample Input 1

10

Sample Output 1

Yes

10 can be represented as, for example, 2 \times 5.

Sample Input 2

50

Sample Output 2

No

50 cannot be represented as the product of two integers between 1 and 9.

Sample Input 3

81

Sample Output 3

Yes



Sample input:
10


Sample output:
Yes

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
for i in range(1, 10):
    for j in range(1, 10):
        if i * j == N:
            break
    if i * j == N:
        print("Yes")
        break
    elif i == 9 and i * j != N:
        print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
 
for i in range(1,10):
  for j in range(1,10):
    if i*j=N:
      break
  if i*j=N:
    print("Yes")
      break
  elif i==9 and i*j!=N:
    print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
 
for i in range(9,1,-1):
	if N%i==0:
      if N//i==1:
        print("Yes")
        break
      for j in range(9,1,-1):
      	if N%(i*j)==0:
          print("Yes")
          break
      	print("No")
        break

Submission status: Runtime Error

Solution code:
N = int(input())
 
for i in range(9,1,-1):
	if N%i==0:
      if N//i==1:
        print("Yes")
      for j in range(9,1,-1):
      	if N%(i*j)==0:
          print("Yes")
          break
      	print("No")
        break

Submission status: Runtime Error

Solution code:
N = int(input())

for i in range(9,0,-1):
	if N%i==0:
      for j in range(9,0,-1):
      	if N%(i*j)==0:
          print("Yes")
        else:
          print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
mark = 0

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

Submission status: Runtime Error

Solution code:
N = int(input())
mark = 0

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

Submission status: Runtime Error

Solution code:
n = int(input())
for i in range(9):
  if n % i == 0 and n / i < 10:
    print('Yes')
  else:
    print('No')

Submission status: Runtime Error

Solution code:
import math 
 
n = input()
if n <= 81:
  m = int(math.sqrt(n))
  while True:
    if n % m == 0:
      print("Yes")
      break
    else:
      m += 1
      if m >= 10:
        print("No")
        break
else:
  print("No")

Submission status: Runtime Error

Solution code:
import math 

n = input()
if n <= 81:
  m = int(math.sqrt(n))
  while True:
    if n % m == 0:
      print("Yes")
      break
    else:
      m += 1
      if m >= 10:
        print("No")
        break
else:
  print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

N = int(input())
# スペース区切りの整数の入力
for kakeru in range(1,9):
	for kakerareru in range(1,9):
  		if kakeru*kakerareru==N:
      		print("Yes")
            break:

              
if kakeru*kakerareru!=N:
	print("No")

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
n = int(input())
# スペース区切りの整数の入力
for i in range(1,9):
	for j in range(1,9):
  		if n=i*j:
      		print("Yes")
        	break:

print("No")

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
n = int(input())
# スペース区切りの整数の入力
for i in range(1,9):
	for j in range(1,9):
  		if n==i*j:
      		print("Yes")
        	break:
        else:
			print("No")

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
n = int(input())
# スペース区切りの整数の入力
for i in range(1,9):
	for j in range(1,9):
  		if n=i*j:
      		print("Yes")
        	break:
print("No")

Submission status: Runtime Error

Solution code:
n=int(input())

flag=0
for i in range(1,10):
  if n%i==0:
    flag=1

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())

flag = False
for i in range(N+1):
  if N%i == 0:
    if N//i < 10 and i < 10:
      flag = True
      break
      
if flag:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
for i in range(1,9):
  for j in range(9):
    if i*j==n:
      a+=1
if a>0:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

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

ans = -1

if A <= 9:
    if B <= 9:
        ans = A * B

print(ans)

Submission status: Runtime Error

Solution code:
a = map(int,input().split())
for i in range(2,10,1):
  if a % i == 0 and a/i < 10:
    print('Yes')
	return 0
print('No)

Submission status: Runtime Error

Solution code:
N = int(input())

lst = [a * b for a, b in range(1,10)]
if N in lst:
  print(Yes)
else:
  print(No)

Submission status: Runtime Error

Solution code:
N = int(input())

lst = [a * b for a, b in range(10)]
if N in lst:
  print(Yes)
else:
  print(No)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x = int(input())
flag = 0
if x < 10:
    print("Yes")
    sys.exit(0)
for l in range(1,10,1):
    num =x/l
    mod = x % l
    if num < 10 and mod == 0:
        flag =1
        break
if flag == 1:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
number = []
    for a in range(1,10):
        for b in range(1,10):
            number.append(b*a)
if N in number :
    print("Yes")
else :
    print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
number = []
    for A in range(1,10):
        for B in range(1,10):
            number.append(A*B)
if N in number :
    print("Yes")
else :
    print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
number = []
    for A in range(1,10):
        for B in range(1,10):
            number.append(A*B)
if N in number :
  print("Yes")
else :
  print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
number = []
    for A in range(1,10):
      for B in range(1,10):
        number.append(A*B)
if N in number :
  print("Yes")
else :
  print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
number = []
    for A in range(1,10):
    for B in range(1,10):
      number.append(A*B)
if N in number :
  print("Yes")
else :
  print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
number = []
    for A in range(1,10)
    for B in range(1,10)
    number.append(A*B)
if N in number :
  print("Yes")
else :
  print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
number = []
    A in range(1,10)
    B in range(1,10)
    number.append(A*B)
if N in number :
  print("Yes")
else :
  print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
for A in range(1,9) :
  if N / A < 10 and N % A == 0 :
    print("Yes")
    
    else :
    print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
for A in range(1,10) :
  if N / A < 10 and N % A == 0 :
    print("Yes")
    
  else :
  print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
for A in range(9) :
  if N / A < 10 and N % A == 0 
    print("Yes")
    
  else :
  print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
for B in range(9) :
  for A in N :
  if A / B < 10 and A % B =0 :
    print("Yes")
    
else :
  print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
number = [1,2,3,4,5,6,7,8,9]
for B in number :
  for A in N :
  if A / 9 < 10 and A % B :
    print("Yes")
    
else :
  print("No")

Submission status: Runtime Error

Solution code:
a,b,*c = input();print('YNeos'[((c>[])|((int(b)==0)&(int(a)>4)))::2])

Submission status: Runtime Error

Solution code:
N = int(input())
A=(1,2,3,4,5,6,7,8,9)
B=(1,2,3,4,5,6,7,8,9)
count=0
for a in A:
  for b in B:
    if N/A*B == 1 and N%A*B==0:
      count=count+1
if count=1:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=input()

if N>9*9:
    print('No')
else:
    print('Yes')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
input_num = input()
input_num = int(input_num)
for i in range(1,100,1):
  flag = False
  for j in range(1,100,1):
    if input_num == i * J:
      print("Yes")
      flag = True
      break
  if flag:
    break
if not flag:
	print("No")

Submission status: Runtime Error

Solution code:
input_num = input()
input_num = int(input_num)
ans_flag = False;
for i in range(1,100,1):
  for j in range(1,100,1):
    if input_num == i * J:
      print("Yes")
      ans_flag = True
      break;
if not ans_flag:
	print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=input()
n=int(N)
if n==100:
  print('No')
else:
  if n%2==0 and n<=18:
    print('Yes')
  elif n%3==0 and n<=27:
    print('Yes')
  elif n%4==0 and n<=36:
    print('Yes')
  elif n%5==0 and n<=45:
    print('Yes')
  elif n%6==0 and n<=54:
    print('Yes')
  elif n%7==0 and n<=63:
    print('Yes')
  elif n%8==0 and n<=72:
    print('Yes')
  elif n%9==0 and n<=81:
    print('Yes')
  else:
    print('No)

Submission status: Runtime Error

Solution code:
n=int(input())
if n==100:
  print('No')
else:
  if n%2==0 and n<=18:
    print('Yes')
  elif n%3==0 and n<=27:
    print('Yes')
  elif n%4==0 and n<=36:
    print('Yes')
  elif n%5==0 and n<=45:
    print('Yes')
  elif n%6==0 and n<=54:
    print('Yes')
  elif n%7==0 and n<=63:
    print('Yes')
  elif n%8==0 and n<=72:
    print('Yes')
  elif n%9==0 and n<=81:
    print('Yes')
  else:
    print('No)

Submission status: Runtime Error

Solution code:
n=int(input())
if n=100:
  print('No')
else:
  if n%2==0 and n<=18:
    print('Yes')
  elif n%3==0 and n<=27:
    print('Yes')
  elif n%4==0 and n<=36:
    print('Yes')
  elif n%5==0 and n<=45:
    print('Yes')
  elif n%6==0 and n<=54:
    print('Yes')
  elif n%7==0 and n<=63:
    print('Yes')
  elif n%8==0 and n<=72:
    print('Yes')
  elif n%9==0 and n<=81:
    print('Yes')
  else:
    print('No)

Submission status: Runtime Error

Solution code:
s=int(input)
def c(x):
  co=0
  for i in range(1,9):
    if x%i==0 and x//i<=9:
      co+=1
  if co>0:
    return("Yes")
  else:
    return("No")
print(c(s))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = [0] * 100
for i in range(1, 10):
    for j in range(1, 10):
        a[i * j] = 1
num = int(input())
if a[num] == 1:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
for i in range(1, N + 1):
  	if (N % i == 0):
    	N = N // i
        break
else:
  print('No')
  exit()

for i in range(1, N + 1):
  if (N % i == 0):
    print('Yes')
    exit()
else:
  print('No')
  exit()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
lst = []
for i in range(1,10):
	for k in range(1, 10):
		m = i * k
    	lst.append(m)
if N in lst:
	print('Yes')
else:
	print('No')

Submission status: Runtime Error

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


if a//10!=0:
    print(-1)

elif b//10!=0:
    print(-1)

else:
    print(a*b)

Submission status: Runtime Error

Solution code:
n=int(input())
L=[]
for i in [1,...,9]:
    for j in [1,...,9]:
        L.append(i*j)

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import collections
import sys

def prime_factorize(n):
    a = []
    while n % 2 == 0:
        a.append(2)
        n //= 2
    f = 3
    while f * f <= n:
        if n % f == 0:
            a.append(f)
            n //= f
        else:
            f += 2
    if n != 1:
        a.append(n)
    return a


N = int(input())
if N>81 or N==50:
  	print("No")
else:
  	c = collections.Counter(prime_factorize(N))
   	if max(c.keys())>8:
    	print("No")
  	else:
        print("Yes")

Submission status: Runtime Error

Solution code:
import collections
def prime_factorize(n):
    a = []
    while n % 2 == 0:
        a.append(2)
        n //= 2
    f = 3
    while f * f <= n:
        if n % f == 0:
            a.append(f)
            n //= f
        else:
            f += 2
    if n != 1:
        a.append(n)
    return a


N = int(input())
if N>81 or N==50:
  	print("No")
else:
  	c = collections.Counter(prime_factorize(N))
   	if max(c.keys())>8:
    	print("No")
  	else:
        print("Yes")

Submission status: Runtime Error

Solution code:
N=int(input())
for i in range(1,10):
  if N/i==N//i and N/i<10:
    print("Yes")
    sys.exit()
  else:
    print("No")

Submission status: Runtime Error

Solution code:
import sys

N=int(input())
for i in range(1,10):
  if n/i==n//i<10:
    print("Yes")
    sys.exit()
  else:
    print("No")

Submission status: Runtime Error

Solution code:
N=int(input())
for i in range(1,10):
  if n/i==n//i<10:
    print("Yes")
  else:
    print("No")

Submission status: Runtime Error

Solution code:
n = int(input())

def is_product_of_two_digits(n):
  for i in range(10):
    if n % i == 0 and 1 <= n // i <= 9:
      return True
  return False
    
if is_product_of_two_digits(n):
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input)
isDiv = 'No'
for i in range(1, 10):
  if N % i == 0:
    isDiv = 'Yes'
    break
print(isDiv)

Submission status: Runtime Error

Solution code:
l = [0]*100
for i in range(1, 10):
    for j in range(1, 10):
        l[i*j] = 1
n = int(input())
if l[n] == 1:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
a = int (input())
if a>81:
  print("No")
else:
  c = 1
  for i in range(7):
    b = a/(9-i)
    
    if b.is_integer()==True and b<10:
      c = 0
    else:
      c = c*1
if c==0:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
a = int (input())
if a>81:
  print("No")
else:
  c = 1
  for i in range(7):
    b = a/(9-i)
    print(b)
    
    if b.is_integer()==True and b<10:
      c = 0
      print(c)
    else:
      c = c*1
      print(c)
if c==0:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n=int(input())
for i in range(1,10):
  if n%i==0:
    if n/i <=9:
      f=1
      break
if f==0:
  print('No')
else:
  print('YES')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
flag=0
for i in range(9):
  nn=n/(i+1)
  if(nn<10 and type(nn)==int):
    flag=1
    break:
if(flag):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
flag = False
a, b = 0
for i in range(2, 9):
    if(n % i): continue
    else: flag = True
if(flag and (n/i <= 9)): print('Yes')
else: print('No')

Submission status: Runtime Error

Solution code:
num = int(input())
for i in range(1, 9):
    if num / i in lst:
        print('Yes')
    else:
        print('No')

Submission status: Runtime Error

Solution code:
a = int(input())

key = True
for i in range(1, 10):
  for j in range(1, 10):
    if(a == i * j):
      print('YES')
      key = False
  if(!key):
    break
if(key):
  print('NO')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
if a <= 81:
    for i in range(8):
        if ((a % (i+2)) == 0) and ((a / (i+2)) <= 9):
            print("Yes")
            b = False

if b:
    print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
for i in range(9):
  for j in range(9):
    if (i+1)*(j+1) == n:
      print('Yes')
      exit()
Print('No')

Submission status: Runtime Error

Solution code:
n = int(input())
a = 9
for i in range(a+1):
  for j in range(a+1):
    if i*j == n:
      print('Yes')
      exit()
Print('No')

Submission status: Runtime Error

Solution code:
n = int(input())
for i in range(9):
  for j in range(9):
    if i*j == n:
      print('Yes')
      exit()
Print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n1 = int(input())
for i in range(1, 10):
  if n1 % i == 0 and n1 / i < 10:
    print("Yes")
    return
print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
line = [9,8,7,6,5,4,3,2,1]
a = 0
for i in line:
  if ((N % i) % 1) == 0 and (N % i) <= 9 and a = 0:
    print("Yes")
    a = 1
if a = 0:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
if not isinstance(n, int):
    print("No")
else:
    ran = list(range(1,10))
	product = [x*y for x in ran for y in ran]
    print("Yes") if n in product else print("No")

Submission status: Runtime Error

Solution code:
n =int(input())
if n<10:
    input("Yes")
    exit()

for i in range(9) :
    if n%(i+1)==0 and n/(i+1)<10:
        input("Yes\n")
        exit()

input("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
input() = N
for i in range(10):
  if N==i**2:
    print("Yes")
  else:
    print("No")

Submission status: Runtime Error

Solution code:
import numpy as np
N = input()
kuku_array = np.zeros((9, 9))
for i in range(9):
  for j in range(9):
    kuku_array[i][j] = i*j
if np.any(kuku_array = N) == True:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n=int(input())
 
i=1
l=0
for i range (9):
    if n/i==n//i and n//i<10:
      l=l+1
print("Yes" if l>0 else "No")

Submission status: Runtime Error

Solution code:
n = int(input())

for a in range(1, 10):
  for b in range(a, 10):
    if n = a * b:
      print('Yes')
      exit()

print('No')

Submission status: Runtime Error

Solution code:
import numpy as np
N = list(input().split())[0]

li = np.array(range(1,10), int)
p = np.outer(li, li)
p = np.unique(p)

if np.isin(N, p):
	print("Yes")
else:
	print("No")

Submission status: Runtime Error

Solution code:
n=int(input())
i=1
while i < 10:
  if n%i==0:
    if n/i < 10:
      print(Yes)
      i=10
  i=i+1
if i=10:
  print(No)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from sys import exit

n = int(input())

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

print('No')

Submission status: Runtime Error

Solution code:
num = int(input())

answer = ['No']*100

for i in range(1,10):
    for j in range(1,10):
        answer[i*j]='Yes'

print(answer[num])

Submission status: Runtime Error

Solution code:
n = int(input())
check = True
for i in range(10):
  if n % i == 0 :
    check = True if n / i < 10 else False
    
if check:
  print("Yes")
else
  print("No")

Submission status: Runtime Error

Solution code:
n=int(input())
ifbreak = "FALSE"
for i in range(n**0.5):
  for j in range(**0.5):
    print(i,j)

Submission status: Runtime Error

Solution code:
a = input()

int(a)

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

Submission status: Runtime Error

Solution code:
N = int(input())
a = [ ]
for i in range(1:10):
    for j in range(i:10):
        b = i*j
        a.append(b)
if a.count(N) == 0:
    print('No')
else:
    print('Yes')

Submission status: Runtime Error

Solution code:
N = int(input())
a = [ ]
for i in range(1:10):
    for j in range(i:10):
        b = i*j
        a.append(b)
if a.count(N) == 0:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
N = int(input())
a = [ ]
for i in range(1:10):
    for j in range(i:10):
        b = i*j
        a.append(b)
if list.count(N) == 0:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
N = int(input())
a = [ ]
for i in range(1:10):
	for j in range(i:10):
		b = i*j
        a.append(b)
if list.count(N) == 0:
	print('Yes')
else:
	print('No')

Submission status: Runtime Error

Solution code:
N = int(input())
res = False
for i in range(N):
  if i * i > N:
    break
  else:
    q = N // i
    if i * q == N and 1 <= i <= 9 and 1 <= q <= 9:
      res = True
      break
print('Yes' if res else 'No')

Submission status: Runtime Error

Solution code:
N = int(input())

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

Submission status: Runtime Error

Solution code:
n = int(input())

if n>81:
    print("No")
    exit()
elif n<10:
    print("Yes")
    exit()
elif n%2==0:
    a = n/2
    if a<10:
        print("Yes")
        exit()
    else n%3==0:
        a = n/3
        if a<10:
            print("Yes")
            exit()
        else n%4==0:
            a = n/4
            if a<10:
                print("Yes")
                exit()
            else n%5==0:
                a = n/5
                if a<10:
                    print("Yes")
                    exit()
                else n%6==0:
                    a = n/6
                    if a<10:
                        print("Yes")
                        exit()
                    else n%7==0:
                        a = n/7
                        if a<10:
                            print("Yes")
                            exit()
                        else n%8==0:
                            a = n/8
                            if a<10:
                                print("Yes")
                                exit()
                            else n%9==0:
                                a = n/9
                                if a<10:
                                    print("Yes")
                                    exit()
                                else:
                                    print("No")

Submission status: Runtime Error

Solution code:
m = int(input())
a = {}
for i in range(2, int(m**0.5)+1):
    if m % i == 0:
        n = m // i
        a[i] = n
b = min(a.values())
if b < 10: print("Yes")
else: print("No")

Submission status: Runtime Error

Solution code:
for a in range(1, 10):
    for b in range(1, 10):
        if a * b == N:
            print('yes')
        else:
            print('No')

Submission status: Runtime Error

Solution code:
N = int(input())
List_9 = []
for i in range(1, 10):
    for j in range(1, 10):
        List_9.append(i * j)
        
if A * B in List_9:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
"""
制約
1≦N≦100
Nは整数
"""

#入力
n = int(input())

#九九リストの作成
list = []
for i in range(1, 10):
  for j in range(1, 10):
    list.append(i * j) #リストに追加　list.append()

#リスト内にNが存在するかどうかで判別＆出力
if N in list:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input().split())
flag = False
for i in range(1, 10):
	for j in range(1, 10):
		if i*j == n:
        	flag = True
if flag is True:
    print("Yes")
else:
	print("No")