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: Accepted

Solution code:
data = int(input())
     
ans = ""
flag = True
if __name__ == "__main__":
  for i in range(1,10):
    if flag:
      for j in range(1,10):
        ans = i*j
        if ans == data:
          print("Yes")
          flag = False
          break
    else:
      break
  if flag:
    print("No")

Submission status: Accepted

Solution code:
def main():
    n = int(input())

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N=int(input())

b=[i for i in range(1,10)]
c=[]

for i in b:
    for j in b:
        c.append(i*j)

if N in set(c) :
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
i = 1
while i < 11:
	if i == 10:
		print('No')
		break
	elif n % i == 0 and n / i < 10:
		print('Yes')
		break
	else:
		i += 1

Submission status: Accepted

Solution code:


def solve():
    N = int(input())
    for i in range(1, 10):
        q, mod = divmod(N, i)
        if q <= 9 and mod == 0:
            print('Yes')
            break
    else:
        print('No')


if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
a = int(input())
flag = 0
for i in range(9):
  if (flag == 1):
    break
  elif (a == 81):
    print('Yes')
    break
  for j in range(9):
    if (a == (i+1)*(j+1)):
      print('Yes')
      flag = 1
      break
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
 
c = 'No'
nums = [(n, N/n) for n in range(1,10,1) if N % n == 0]
for a, b in nums:
  if a < 10 and b < 10:
    c = 'Yes'
    break
print(c)

Submission status: Accepted

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

    for x in range(1, 10):
        for y in range(1, 10):
            if N == x * y:
                print('Yes')
                return

    print('No')


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N = int(readline())

se = set(x*y for x in range(1,10) for y in range(1,10))

answer = 'Yes' if N in se else 'No'
print(answer)

Submission status: Accepted

Solution code:
s = int(input())
L = []
for i in range(1,10):
  for j in range(1,10):
    L.append(i * j)
if s in L:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
n=int(input())
is_yes = False
for i in range(1,10):
    if n/i == n//i and n/i < 10:
        print('Yes')
        is_yes = True
        break
if not is_yes:    
    print('No')

Submission status: Accepted

Solution code:
N = input()
list = [str(x*y) for x in range(1,10) for y in range(1,10)]
result = str(N) in list

if result == True:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import itertools

N = int(input())

a = list(range(1,10))

dec = []
for x in a:
    for y in a:
        dec += [x*y]

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

Submission status: Accepted

Solution code:
N = int(input())
ans = ''
for i in range(1,10):
  mod = N / i
  if mod <= 9 and mod.is_integer():
    ans = 'Yes'
    break
  else:
    ans = 'No'
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
if 9*9 < N:
    print('No')
    exit()

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

print('No')

Submission status: Accepted

Solution code:
N = int(input())
n = 0
if 81 < N:
    n = "No"
elif N <= 9:
    n = "Yes"
else:
    for a in range(2, 10):
        for b in range(2, 10):
            if a * b == N:
                n = "Yes"
                break
    if n is 0:
        n = "No"
print(n)

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

N = int(input())

one_to_nine = [i for i in range(1, 10)]

# print(one_to_nine)
for i in range(1, 10):
    ans = N / i
    if ans in one_to_nine:
        print("Yes")
        quit()
print("No")

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
N = int(input())
a = 0
for i in range(1,10):
    if N % i == 0 and 1 <= N // i <= 9:
        a = 1
if a == 0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
n = int(input())

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

ans = 'No'

for i in int_list:
  n_ = n / i 
  for j in int_list:
    if n_ / j == 1:
      ans = 'Yes'
print(ans)

Submission status: Accepted

Solution code:
N = int(input())

def isPrime(n) : 
  
    # Corner cases 
    if (n <= 1) : 
        return False
    if (n <= 3) : 
        return True
  
    # This is checked so that we can skip  
    # middle five numbers in below loop 
    if (n % 2 == 0 or n % 3 == 0) : 
        return False
  
    i = 5
    while(i * i <= n) : 
        if (n % i == 0 or n % (i + 2) == 0) : 
            return False
        i = i + 6
  
    return True

if N<=9:
  print("Yes")
elif ( N == 50 or N ==60 or N == 70 or N == 80 or isPrime(N) or N>81):
  print("No")
else:
  i = 2
  while(i<=9):
    if N%i == 0 and 1<=N/i <= 9:
      print("Yes")
      break
    else:
      if i == 9:
        print("No")
        break
      else:
        i = i + 1

Submission status: Accepted

Solution code:
N = int(input())
X = []
if N == 1:
  print("Yes")
  exit()
for i in range(1,N):
  if N % i == 0:
    a = i
    b = int(N / i)
    if a <= 9 and b <= 9:
      print("Yes")
      exit()
print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding: utf-8
# n,k = int(input())
# list = list(map(int,input().split()))
# strings = list(map(str, [input() for i in range(amount)]))

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

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

print(ans)

Submission status: Accepted

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

x = int(input())

if x in a:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
import sys
import math

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


for line in sys.stdin:
    N = int(line)

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
N = int(input())

if N == 1 or N == 2 or N == 3 or N == 4 or N == 5 or N == 6 or N == 7 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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

first = 0
second = 0
flag =0
for i in range(9):
    first +=1
    second = 0
    for j in range(9):
        second +=1
        if(first * second == N):
            flag =1
if(flag == 1):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
num = int(input())

def exe001(num):
    factor = 2
    factor_list = []
    flag = 'Yes'

    while num > 1 or factor < 10:
        if num % factor == 0:
            factor_list.append(factor)
            num //= factor
        else:
            factor += 1
    # print(factor_list)

    if len(factor_list) > 3:
        for item in factor_list:
            if item >= 5:
                flag = 'No'
                break
            else:
                if len(factor_list) > 6:
                    flag = 'No'
                    break
                elif len(factor_list) > 5:
                    if 3 in factor_list:
                        flag = 'No'
                        break                      

    elif len(factor_list) == 3:
        if factor_list[0] * factor_list[1] < 10 and factor_list[2] < 10:
            pass
        else:
            flag = 'No'

    else:
        for item in factor_list:
            if item >= 10:
                flag = 'No'
                break


    print(flag)
exe001(num)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
list1 = []
for i in range(9):
  for j in range(9):
    list1.append((i+1)*(j+1))
b = len(list1)
flag = 0
for k in range(b):
  if a == list1[k]:
    flag = 1
    break;
if flag == 1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
#B 81

N = int(input())
List = [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 81 < N:
    print('No')
elif N in List:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

b = [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,56,63,64,72,81]
if(a in b):
  print("Yes")
  
else:
  print("No")

Submission status: Accepted

Solution code:
N = int(input())

res = "No"

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

result = 'No'

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
N  = int(input())

solve = 0
for i in range(9):
    A = i+1
    for j in range(9):
        B = j+1
        if A*B == N:        
            print('Yes')
            solve = 1
            break     
    if solve == 1:
      break
if solve == 0:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
N = []
b = a
for i in reversed(range(1,10)):
  #print(i)
  if b % i == 0:
    N.append(i)
    b = b//i
    for i in reversed(range(1,10)):
        if b % i == 0:
          N.append(i)
          b = b//i
    #print(b)
if len(N) == 1:
  if a < 10:
    print("Yes")
  else:
    print("No")
else: 
  if N[0]*N[1]== a:
    print("Yes")
  else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

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

if a in mt:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
import sys

N = int(input())

if N < 10:
    print('Yes')
else:
    for p in range(2, 10):
        if N % p == 0 and N / p < 10:
            print('Yes')
            break
        elif p == 9 and (N % p != 0 or N / p > 10):
            print('No')

Submission status: Accepted

Solution code:
N=int(input())
ans=[0]*81
cnt=0
for i in range(1,10):
    for j in range(1,10):
        ans[cnt]=i*j
        cnt=cnt+1
if N in ans:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = int(input())
nine = [1,2,3,4,5,6,7,8,9]
flag = 0
for i in nine:
    amari = num % i 
    if amari == 0:
        if num // i in nine:
            print("Yes")
            flag = 1
            break
if flag == 0:
    print('No')

Submission status: Accepted

Solution code:
n = int(input())						# 5

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

print(ans)

Submission status: Accepted

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


N = int(input())

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

Submission status: Accepted

Solution code:
import sys
n = int(input())
if n > 81 or n == 0:
    print('No')
    sys.exit()
elif n == 1:
    print('Yes')
    sys.exit()
else:
    for i in reversed(range(2, 10)):
        if n % i != 0:
            pass
        elif n % i == 0 and n / i < 10:
            print('Yes')
            sys.exit()
        else:
            print('No')
            sys.exit()
print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
listA = []
for i in range(1, 10):
	for j in range(1, 10):
		listA.append( i * j )
N = int(input())
p = 'No'
if N in listA:
	p = 'Yes'
print(p)

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

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

for i  in range(9):
    atai = N / (i + 1) 
    for j in range(9):
        if atai == j + 1:
            flag = 1
            break
    if flag == 1:
        break
if flag == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
b = 0
if a<= 81:
  for i in range(9):
    for j in range(9):
      if (i+1)*(j+1)==a:
        b=1
        break
if b==0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
x=[]
i=1
while not i == 10:
    x.append(i*1)
    i+=1
i=1
while not i == 10:
    x.append(i*2)
    i+=1
i=1
while not i == 10:
    x.append(i*3)
    i+=1
i=1
while not i == 10:
    x.append(i*4)
    i+=1
i=1
while not i == 10:
    x.append(i*5)
    i+=1
i=1
while not i == 10:
    x.append(i*6)
    i+=1
i=1
while not i == 10:
    x.append(i*7)
    i+=1
i=1
while not i == 10:
    x.append(i*8)
    i+=1
i=1
while not i == 10:
    x.append(i*9)
    i+=1
i = 1
for i in range(len(x)):
    if x[i] == n:
        print('Yes')
        quit()
print('No')

Submission status: Accepted

Solution code:
num = int(input())
Flag = False
for x in range(1,10):
  for y in range(x,10):
    if x * y == num:
      Flag = True
      break
    if Flag == True:
      break

if Flag:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
a = int(input())

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

b = arr.count(a)

if b > 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
#-*- coding:utf-8 -*-
n = int(input())
check = 0
for x in range(1,10):
    for y in range(1,10):
        if n == x*y:
            print('Yes')
            quit()
print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
a = list(range(1,10))
ans = "No"
for i in a:
    s = n / i
    if s == int(s) and s < 10:
        ans = "Yes"
        break
print(ans)

Submission status: Accepted

Solution code:
def docchi(a):
	for i in range(9,0,-1):
		if (a % i == 0) and ((a / i) < 10):
			return "Yes"
	return "No"

a = int(input())
b = docchi(a)
print(b)

Submission status: Accepted

Solution code:
def solve(N):
    for i in range(1, 10):
        if N % i == 0:
            b = N // i
            if b < 10:
                return "Yes"
    return "No"


N = int(input())
print(solve(N))

Submission status: Accepted

Solution code:
num=int(input())
if num>81:
    print('No')
else:
    num_list=[]
    
    for a in range(1,10):
        for b in range(1,10):
            num_list.append(a*b)
    num_list=set(num_list)
    if num in num_list:
        print('Yes')
    else:
        print('No')

Submission status: Accepted

Solution code:
import sys
def is_integer(n):
    try:
        float(n)
    except ValueError:
        return False
    else:
        return float(n).is_integer()
a = input()
a = int(a)
if  a == 1:
 print("Yes")
 sys.exit()
k = range(1,a)
for s in k:
 res = a/s
 #print("s",s)
 #print("res",res)
 try:
  res = int(res)
 except:
  break
 if is_integer(s):
  if is_integer(res):
   if len(str(s)) == 1:
    if len(str(res)) == 1:
     #print(res,s)
     if res * s == a:
      print("Yes")
      sys.exit() 
print("No")

Submission status: Accepted

Solution code:
n = int(input())
for i in range(1, 10):
    if n / i in list(range(1, 10)):
        print('Yes')
        break
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
c =int(input())
list = []
for i in range(1,10):
  for j in range (1,10):
    list.append(i * j)
if c in list:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
n=int(input())
a=[1,2,3,4,5,6,7,8,9]
b=0

for i in a:
  if n%i==0:
    if n/i<=9:
      b+=1
      
if b>0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
if 1<=n<=9:
      print('Yes')
elif n==10:
      print('Yes')
elif n==12:
      print('Yes')
elif n==14:
      print('Yes')
elif n==15:
      print('Yes')
elif n==16:
      print('Yes')
elif n==18:
      print('Yes')
elif n==20:
      print('Yes')
elif n==21:
      print('Yes')
elif n==24:
      print('Yes')
elif n==25:
      print('Yes')
elif n==27:
      print('Yes')
elif n==28:
      print('Yes')
elif n==30:
      print('Yes')
elif n==32:
      print('Yes')
elif n==35:
      print('Yes')
elif n==36:
      print('Yes')
elif n==40:
      print('Yes')
elif n==42:
      print('Yes')
elif n==45:
      print('Yes')
elif n==48:
      print('Yes')
elif n==49:
      print('Yes')
elif n==54:
      print('Yes')
elif n==56:
      print('Yes')
elif n==63:
      print('Yes')
elif n==64:
      print('Yes')
elif n==72:
      print('Yes')
elif n==81:
      print('Yes')
else:
      print('No')

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
N = int(input())

a = False

for i in range(1, 10):
    for j in range(1, 10):
      if N == (i*j):
         a = True
      else:
         pass

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

Submission status: Accepted

Solution code:
n = int(input())
a = [9, 8, 7, 6, 5, 4, 3, 2, 1]
cnt = 0
if 1 <= n <= 81:
    for i in a:
        if n % i == 0:
            if 1 <= (n / i) <= 9:
                cnt += 1
                print("Yes")
                break

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())


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


if ans:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import math

n = int(input())

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

    divisors.sort()
    return divisors

def main(divisors, o):
    for i in range(o):
        a = divisors[i]
        b = divisors[::-1][i]
        
        if a <= 9 and b <= 9:
            return 'Yes'
    return 'No'


divs = make_divisors(n)

o = int(len(divs)/2 + len(divs) % 2)

print(main(divs, o))

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

N = int(input())

num_list = (i*j for i in range(1,10) for j in range(1,10))

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
n = int(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
frag = 0

for i in range(1, 10):
  if n / i <= 9 and n % i == 0:
    frag = 1

if frag:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

mul = [x*y for x in range(10) for y in range(10)]
a = int(input())
print("Yes" if a in mul else "No")

Submission status: Accepted

Solution code:
n = int(input())

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

print('No')

Submission status: Accepted

Solution code:
N = int(input())

ans = "No"

for x in range(1, 10):
    for y in range(1, 10):
        if N / (x * y) == 1:
            ans = "Yes"

print(ans)

Submission status: Accepted

Solution code:
N = int(input())
flg = False
for i in range(1, 10):
    if N%i==0 and N//i<10:
        flg = True
        break

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

Submission status: Accepted

Solution code:
#! /usr/bin/env python
# -*- coding: utf-8 -*-

import pdb
import sys
F = sys.stdin
N = int(F.readline())

for i in range(1, N+1):
    if N % i == 0:
        A = i
        B = N / i
        if A < 10 and B < 10:
            print('Yes')
            sys.exit()

print('No')

Submission status: Accepted

Solution code:
N = int(input())

def check(N):
    for i in range(1, 10):
        if N % i == 0:
            j = N // i
            if j >= 1 and j <= 9:
                return 'Yes'
    return 'No'

print(check(N))

Submission status: Accepted

Solution code:
n = int(input())
ans = -1
for i in range(10):
    for j in range(10):
        if (i * j == n):
            ans = 1
            break

print("Yes" if ans == 1 else 'No')

Submission status: Accepted

Solution code:
n = int(input())
if n in set([x*y for x in range(1,10) for y in range(1,10)]):
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
kuku = [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 n in kuku:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n=int(input())

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

Submission status: Accepted

Solution code:
N = int(input())

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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


if __name__ == "__main__":
    resolve()

Submission status: Accepted

Solution code:
n = int(input())
s = set()
for i in range(1, 10):
    for j in range(i, 10):
        if i*j not in s:
            s.add(i*j)

print("Yes") if n in s else print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

if n < 10:
    print("Yes")
    exit()

ans = [x * y for x in range(2, 10) for y in range(2, 10)]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

count = 0

for i in range(1,10):
    if N%i == 0 and N//i < 10:
        count+=1
        
if count > 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
x = int(input())

flg = False

for i in range(1,10):
	for j in range(1,10):
		if (i*j) == x:
			flg = True
			break

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

Submission status: Accepted

Solution code:
# B - 81
n = (int)(input())

flg = False

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

if flg == True:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
number_s = input()
num = int(number_s)
ans = "No"

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

Submission status: Accepted

Solution code:
N = int(input())

Flg = False
for i in range(1,10):
    if (N % i) == 0:
        if 1 <= (N / i)<= 9:
            Flg = True
            break

if Flg == False:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
N=int(input())

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