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

Solution code:
N = int(input())
list_a=list()
for i in range(1,10):
    for j in range(1,i+1):
        list_a.append(i*j)
if N in list_a :
    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 i * j == n:
      ans = 'Yes'
      
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Solution code:
N = int(input())

def Checker(N):
  for A in range(1, 10):
    for B in range(1, 10):
      if A*B == N:
        print('Yes')
        return 0
  print('No')

Checker(N)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np
n = int(input())

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


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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush, heapify
import math
import itertools
import random
 
# NO, PAY-PAY
#import numpy as np
#import statistics
#from statistics import mean, median,variance,stdev
 
INF = float('inf')
def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))
 
def main():
    N = inputInt()
    
    for i in range(1,10):
        for j in range(1,10):
            ans = i*j
            if ans == N:
                print("Yes")
                sys.exit()
                
    print("No")
    
if __name__ == "__main__":
	main()

Submission status: Accepted

Solution code:
n = int(input())

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

print('No')

Submission status: Accepted

Solution code:
n = int(input())

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

if n in num:
    print("Yes")
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:
			flag = True
if flag is True:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
N = int(input())
dict = {}

for i in range(1, 10):
    for j in range(i, 10):
        dict[i*j] = True
print('Yes' if dict.get(N) else 'No')

Submission status: Accepted

Solution code:
n = int(input())
flag = "No"

for i in range(1,10):
    if n % i == 0 and n //i < 10:
        flag = "Yes"

print(flag)

Submission status: Accepted

Solution code:
a=int(input())
p = 'No'

for i in range(9):
    b = a % (i+1)
    c = a / (i+1)
    if b == 0 and c <= 9:
        p = 'Yes'
        break

print(p)

Submission status: Accepted

Solution code:
n = int(input())
flag = False

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

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

Submission status: Accepted

Solution code:
#abc144a
import sys

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

Submission status: Accepted

Solution code:
N=int(input())
l={i*j for i in range(10) for j in range(10)}
print('Yes' if N in l else 'No')

Submission status: Accepted

Solution code:
n = int(input())

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

if n in my_set:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
a = 9
if N > 81:
    print("No")
    exit()

while a > 0:
    if (N % a == 0) and (N <= a * a):
        print("Yes")
        exit()
    a -= 1

print("No")

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
def main():
  n = int(input())
  for f in range(9, 0, -1):
    if n % f == 0:
      n = n // f
      break
  print('Yes' if 1 <= n <= 9 else 'No')


main()

Submission status: Accepted

Solution code:
N = int(input())

count = 0

for i in range(1,10):
    for j in range(1, 10):
        if N == i*j:
            count += 1
        else:
            continue

if count != 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
b = False
i=1
while i<=9:
    j=1
    while j<=i:
        if j*i==n:
            print('Yes')
            b = True
            break
        j+=1
    if b==True:
        break
    i+=1
if b==False:
    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")

main()

Submission status: Accepted

Solution code:
n=int(input())
check=False;
i=1
while i<10:
    j=1
    while j<10:
        if (i*j==n):
            print('Yes')
            check=True
            break;
        j+=1;
    if check:
        break
    i+=1


if not check:
    print("No")

Submission status: Accepted

Solution code:
# ABC144B - 81
def main():
    N = int(input())
    cand = set(i * j for i in range(1, 10) for j in range(1, 10))
    flg = N in cand
    print("Yes" if flg else "No")


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
n = int(input())
t = 'No'
for i in range (1,10):
    nn = n/i
    if (nn.is_integer()) == True and nn < 10 and nn > 0:
        t = 'Yes'
    else:
        pass

print(t)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n=int(input())
check=False;
i=1
while i<10:
    j=1
    while j<10:
        if (i*j==n):
            print('Yes')
            check=True
            break;
        j+=1;
    if check:
        break
    i+=1
 
 
if not check:
    print("No")

Submission status: Accepted

Solution code:
n=int(input())
i=1
check=False
while i<int(n**.5+1):
    if n/i<10 and n%i==0:
        print("Yes")
        check=True
        break
    i+=1

if not check:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print(' YNeos'[int(input())in[a//10*(a%10)for a in range(100)]::2])

Submission status: Accepted

Solution code:
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(N=None): return list(MAP()) if N is None else [INT() for i in range(N)]

N = INT()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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")

Submission status: Accepted

Solution code:
# B - TAKOYAKI FESTIVAL 2019
N = int(input())
ans = False
for a in range(1, 10):
    for b in range(1, 10):
        if a * b == N:
            ans = True
            break
            
if ans:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
possible=set()
for x in range(1,10):
  for y in range(1,10):
    possible.add(x*y)
if n in possible:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
n = int(input())

for i in range(1, 10):
    if n%i == 0:
        j = int(n / i)
        if j <= 9:
            ans = "Yes"
        else:
            ans = "No"
    else:
        ans = "No"
    if ans == "Yes":
        break

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(9):
  if N / (i+1) <= 9 and N/(i+1)-N//(i+1)==0:
    print('Yes')
    flag=False
    break
  
if flag:
  print('No')

Submission status: Accepted

Solution code:
s = set([])
for i in range(1, 10):
  for j in range(1, 10):
    s.add(i * j)
a = int(raw_input())
print 'Yes' if a in s else 'No'

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
my_set = set()
for i in range(1, 10):
  for j in range(i, 10):
    my_set.add(i*j)
if n in my_set:
  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 i*j == N:
            ans = 'Yes'
print(ans)

Submission status: Accepted

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

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:
"""
author : dokueki
"""
import math
n = int(input())
f = 0
for i in range(1,10):
    if (n/i)-math.floor(n/i)==0 and (n//i) in range(1,10):
        f+=1
if f>0:
    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 <= 9:
		print('Yes')
		break
if i == 9 and N % i != 0:
	print('No')

Submission status: Accepted

Solution code:
print ("Yes" if int(input()) in [i*m for i in range(1,10) for m in range(1,10)] else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
n=int(input())

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

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

Submission status: Accepted

Solution code:
print(' YNeos'[input()in[str(a//10*(a%10))for a in range(100)]::2])

Submission status: Accepted

Solution code:
n = int(input())
a = 1
while a <= 9:
    b = n // a
    mod = n % a
    
    if mod == 0 and 1 <= b <=9:
        print("Yes")
        exit()
    else:
        a += 1
print("No")

Submission status: Accepted

Solution code:
r=range(10);print(' YNeos'[input()in[str(a*b)for a in r for b in r]::2])

Submission status: Accepted

Solution code:
r=range(10);print(' YNeos'[int(input())in[a*b for a in r for b in r]::2])

Submission status: Accepted

Solution code:
n=int(input());print('YNeos'[all(n//~i<-9or n%~i<0for i in range(9))::2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
import sys

N = int(input())

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

print('No')

Submission status: Accepted

Solution code:
def solve():
    n = read()
    result = think(n)
    write(result)


def read():
    return read_int(1)[0]


def read_int(n):
    return list(map(lambda x: int(x), read_line().split(' ')))[:n]


def read_float(n):
    return list(map(lambda x: float(x), read_line().split(' ')))[:n]


def read_line(n=0):
    if n == 0:
        return input().rstrip()
    else:
        return input().rstrip()[:n]


def think(n):
    floor = 1
    ceil = 10
    for x in range(floor, ceil):
        if n % x == 0:
            if n // x in range(floor, ceil):
                return 'Yes'
    return 'No'


def write(result):
    print(result)


if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
N = int(input())

kuku = [i*j for i in range(1,10) for j in range(i, 10)]
if N in kuku:
  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
else:
  print("No")

Submission status: Accepted

Solution code:
n = int(input())
list = []

for i in range(10):
    for j in range(10):
        c = i*j
        list.append(c)
if n in list:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
list = []

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

Submission status: Accepted

Solution code:
#input
N = int(input())

#temp
while(1):
  #temp=N
  #2
  temp1 = N/1
  if(temp1<=9 and N%1==0):
    print('Yes')
    break
  temp2 = N/2
  if(temp2<=9 and N%2==0):
    print('Yes')
    break
  temp3 = N/3
  if(temp3<=9 and N%3==0):
    print('Yes')
    break
  temp4 = N/4
  if(temp4<=9 and N%4==0):
    print('Yes')
    break
  temp5 = N/5
  if(temp5<=9 and N%5==0):
    print('Yes')
    break
  temp6 = N/6
  if(temp6<=9 and N%6==0):
    print('Yes')
    break
  temp7 = N/7
  if(temp7<=9 and N%7==0):
    print('Yes')
    break
  temp8 = N/8
  if(temp8<=9 and N%8==0):
    print('Yes')
    break
  temp9 = N/9
  if(temp9<=9 and N%9==0):
    print('Yes')
    break
  
  print('No')
  break

#print('result')
#if answer 
#
#print(N)

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
n = int(input())
if n % 9 == 0:
    a = n/9
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 8 == 0:
    a = n/8
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 7 == 0:
    a = n/7
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 6 == 0:
    a = n/6
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 5 == 0:
    a = n/5
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 4 == 0:
    a = n/4
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 3 == 0:
    a = n/3
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 2 == 0:
    a = n/2
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n == 1:
    print("Yes")
else :
    print("No")

Submission status: Accepted

Solution code:
table = set([(i*j) for j in range(1, 9+1) for i in range(1, 9+1)])
N = int(input())

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
#ABC144 B

import sys
import math
from bisect import bisect_right as br
from bisect import bisect_left as bl
sys.setrecursionlimit(1000000)
from heapq import heappush, heappop,heappushpop
from collections import defaultdict
from itertools import accumulate
from collections import Counter
from collections import deque
from operator import itemgetter
from itertools import permutations
mod = 10**9 + 7
inf = float('inf')
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))

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

Submission status: Accepted

Solution code:
A = int(input())

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

print("No")

Submission status: Accepted

Solution code:
n = int(input())

ln = []

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

Submission status: Accepted

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

    return divisors

div = make_divisors(N)
ans='No'
for i in range(len(div)//2):
  a=div[2*i]
  b=div[2*i+1]
  if (a<10) and (b<10):
    ans='Yes'
    break
if len(div)%2==1:
  if div[-1] <10:
    ans='Yes'
print(ans)

Submission status: Accepted

Solution code:
def is_integer_num(n):
    if isinstance(n, int):
        return True
    if isinstance(n, float):
        return n.is_integer()
    return False
  
n = int(input())

flag=0
for i in range(1, 10):
    m = n/i
    if is_integer_num(m) and m<10:
        flag = 1
        print("Yes")
        break
if flag == 0:
    print("No")

Submission status: Accepted

Solution code:
def input_int():
    hoge = input()
    return int(hoge)

if __name__ == "__main__":
    hoge = input_int()
    for i in range(10):
        for k in range(10):
            piyo = i * k
            if piyo == hoge:
                print("Yes")
                exit(0)
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

#+++++
		
def main():
	a=int(input())
	for i in range(1,10):
		for j in range(1,10):
			if i*j==a:
				return 'Yes'
	return 'No'
	
	
#+++++
isTest=False

def pa(v):
	if isTest:
		print(v)

if __name__ == "__main__":
	if sys.platform =='ios':
		sys.stdin=open('inputFile.txt')
		isTest=True
	else:
		pass
		#input = sys.stdin.readline
			
	ret = main()
	if ret is not None:
		print(ret)

Submission status: Accepted

Solution code:
n = int(input())
num = [1, 2, 3, 4, 5, 6, 7, 8, 9]
for nu in num:
    if n % nu == 0 and n / nu < 10:
        print('Yes')
        exit()
print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = raw_input().split()
[N] = s
N = int(N)

if (N == 1):
    print "Yes"
    exit(0)

for i in range(8):
    if (N % (i+2) == 0 and N / (i+2) <= 9):
        print "Yes"
        exit(0)

print "No"

Submission status: Accepted

Solution code:
#input
N = int(input())

#output
M = []
for i in range(1, 10):
    for j in range(1, 10):
        M.append(i*j)
M
if N in M:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
i = int(input())
list = []

for m in range(1,10):
    for n in range(1,10):
        multi = m * n
        list.append(multi)

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

Submission status: Accepted

Solution code:
num = int(input().rstrip())
flag = 0
for i in range(1, 10):
  if num%i == 0:
    if num//i < 10:
      print("Yes")
      flag = 1
      break
  else:
    continue
if flag == 0:
  print("No")

Submission status: Accepted

Solution code:
num = int(input())

ans = "No"
for i in range(9):
	if num % (i+1) == 0 and num / (i+1) < 10:
		ans = "Yes"


print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

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)
    a.sort(reverse = True)
    return a

a = prime_factorize(n = N)
ans = 'Yes'


if len(a) == 0:
    if N > 9:
        ans = 'No'
elif len(a) > 4:
    if N / 8 > 9:
        ans = 'No'
elif len(a) == 3:
    if a[1] * a[2] > 9:
        ans = 'No'
else:
    n = N
    b = []
    for i in a:
        n = n / i
        b.append(n)

    if a[0] > 9:
        ans = 'No'
    if N > 81:
        ans = 'No'
    
print(ans)

Submission status: Accepted

Solution code:
import sys
N = int(input())

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

Submission status: Accepted

Solution code:
N = int(input())

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

    if N % i == 0:
        if N / i <= 9:
            c = "Yes"
            break
        else:
            c = "No"
    else:
        c = "No"
print(c)

Submission status: Accepted

Solution code:
N = int(input())
# N>81のときはn*nで表せないので不敵
if N>81:
    print('No')
else:
    import numpy as np
    n=np.array([1,2,3,4,5,6,7,8,9])
    amari=N%n
    shou=N//n
    if np.any((amari==0)*(shou<=9)):
        print('Yes')
    else:
        print('No')

Submission status: Accepted

Solution code:
n = int(input())

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

if s <= 9:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
n = int(input())
flag = True
for i in range(9):
  if n / (i + 1) <= 9 and n % (i + 1) == 0:
    print("Yes")
    flag = False
    break
if flag:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
mat99 = [i * j for j in range(1, 10) for i in range(j,10)]
if N in mat99:
  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 <= 9:
    print('Yes')
    exit()
print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

l = []
for a in range(10):
    for b in range(10):
        if a*b==N :
            p='Yes'
            l.append(p)
            
        else:
            q='No'
            l.append(q)
if 'Yes' in l:
    print(p)
else:
    print(q)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

if (N <= 81):
    if (N <= 9):
        print("Yes")
    elif (N < 20 and N & 1 == 0):
        print("Yes")
    elif (N < 30 and N % 3 == 0):
        print("Yes")
    elif (N < 40 and N % 4 == 0):
        print("Yes")
    elif (N < 50 and N % 5 == 0):
        print("Yes")
    elif (N < 60 and N % 6 == 0):
        print("Yes")
    elif (N < 70 and N % 7 == 0):
        print("Yes")
    elif (N < 80 and N % 8 == 0):
        print("Yes")
    elif (N == 81):
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
_output = False
for n in range(1,10):
  if N % n == 0:
      tmp = N/n
      if tmp <= 9:
          print("Yes")
          _output = True
          break
if not _output:
    print("No")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import math
a = int(input())
if a == 1: print('Yes')
else:
    if a <= 81:
        b = round(math.sqrt(a))
        while a % b != 0: b -= 1
        c = int(a / b)
        if b < 10 and c < 10: print('Yes')
        else: print('No')
    else: print('No')

Submission status: Accepted

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

Submission status: Accepted

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

kuku = []

for a in range(1, 10):
    for b in range(1, 10):
        kuku.append(a * b)

for x in range(0, 81):
    if N == kuku[x]:
        check = 0
        break
    else:
        check = 1

if check == 0:
    print("Yes")
elif check == 1:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

for i in range(1, 10):
    if N % i == 0:
        div = int(N / i)
        if div >= 1 and div <= 9:
            print('{}'.format('Yes'))
            # print(div, i, sep=', ')
            exit()

print('{}'.format('No'))

Submission status: Accepted

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

    # divisors.sort()
    return divisors


N = int(input())

div = make_divisors(N)
div2 = [True if i[0] < 10 and i[1]  < 10 else False for i in div]

if div and all(div):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()
a = int(a)
n = 0
for i in range(1,10):
    if a % i == 0:
        for j in range(1,10):
            if (a/i) < 10 and (a/i) % j == 0:
                n = n + 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# N = int(open(0).read())
N = int(input())
# print(N)
flg = False
for i in range(1,10):
    for j in range(i,10):
        if N == i*j:
            flg = True
            break
print('Yes' if flg == True else 'No')

Submission status: Accepted

Solution code:
def allmultiply():
	setmulti = set()
	for i in range(1,10):
		for j in range(1,10):
			setmulti.add(i*j)
	return setmulti

if __name__ == '__main__':
  N = int(input())
  setmulti = allmultiply()
  if N in setmulti:
  	print('Yes')
  else:
  	print('No')