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:
from sys import stdin
import math
import fractions
from collections import deque
from collections import Counter
import itertools

INF = 10 ** 10

N = int(stdin.readline().rstrip())

for i in range(1, 10):
    tmp = N // i

    if i * tmp == N and tmp < 10:
        print("Yes")
        exit()

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

def f():
    for i in range(1, int(N**(1/2))+2):
        if N%i == 0 and all(1 <= x <= 9 for x in [i, N//i]):
            return "Yes"
    return "No"

print(f())

Submission status: Accepted

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

for a in num:
    for b in num:
        l.append(a*b)
        
if (n in l) == True:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = 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: Accepted

Solution code:
n = 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: Accepted

Solution code:
a = int(input())
answers = []

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

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

Submission status: Accepted

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

Solution code:
import numpy as np

N = int(input())

x   = np.arange(1,10).reshape(1,9)
lst = np.dot(x.T, x).reshape(1, 81)

print('Yes') if N in lst else print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = int(input())
B=[]
for i in range(9):
    for j in range(9):
        B.append((i+1)*(j+1))

if A in B:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N=int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
c = 0
for i in range(10):
  for j in range(10):
    a = i * j
    if(N == a):
      print('Yes')
      c = 1
      break
  if(c == 1):
    break
if (c == 0):
  print('No')

Submission status: Accepted

Solution code:
n = int(input())
for i in range(1,10):
    m = n // i
    if m * i == n and m < 10:
        print('Yes')
        exit()
print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
N=int(input())
if N >81:
  print("No")
  sys.exit()
if N==81:
  print("Yes")
else:
  for i in range(1,9):
    a=N/i
    b=(a.is_integer())
    if a<10 and b==True:
      print("Yes")
      break
  else:
    for i in range(1,9):
      c=N/i
      d=(c.is_integer())
      if d==False:
        print("No")
        break

Submission status: Accepted

Solution code:
import sys
from bisect import *
from collections import *
from copy import deepcopy
from datetime import *
from heapq import *
from itertools import *
# from math import *
from operator import *
from pprint import *

sys.setrecursionlimit(10**8)

input = sys.stdin.readline

def main():
    """ main """
    N = int(input())
    for i in range(1,10):
        for j in range(1,10):
            if N==i*j:
                print('Yes')
                return 0

    print('No')

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import sys
input  = sys.stdin.readline
 
N = int(input())
rtn = 'No'
for i in range(9):
  a = i+1
  if N%a != 0:
    continue
  b = N/a
  if b < 10:
    rtn = 'Yes'
    break
print(rtn)

Submission status: Accepted

Solution code:
n = int(input())
clear = 0
for s in range(1, 10):
    for t in range(1, 10):
        if s*t == n:
            clear = 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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())
ans = "No"
if N <= 81:
    for i in range(1, 10):
        k = N // i
        if len(str(k)) == 1 and k != 0 and N % i == 0:
            ans = "Yes"
            break
print(ans)

Submission status: Accepted

Solution code:
N = int(input())

answer = "No"

for a in range(1,10) :
  for b in range(1,10) :
    if a * b == N :
      answer = "Yes"

print(answer)

Submission status: Accepted

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

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

if ok:
    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 <= 9:
      print ("Yes")
      break
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:
            ans = "Yes"
            break
    else:
        ans = "No"
    
print(ans)

Submission status: Accepted

Solution code:
N=int(input())
c=1
for a in range(1,10):
    if c==2:
        break
    for b in range(1,10):
        if N==a*b:
            print('Yes')
            c+=1
            break
if c==1:
    print('No')

Submission status: Accepted

Solution code:
input_number = int(input())
number_list_A = (1,2,3,4,5,6,7,8,9)
number_list_B = number_list_A
number_list_AB = []

for a in number_list_A:
	a = int(a)
	for b in number_list_B:
		b = int(b)
		number_list_AB.append(a*b)

if input_number in number_list_AB:
	print("Yes")
else:
	print("No")

Submission status: Accepted

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

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

for i in range(10):
    if a=='Yes':
        break

    for j in range(10):
        if i*j==N:
            a='Yes'
            break


print(a)

Submission status: Accepted

Solution code:
from sys import stdin

N = int(input())

C = set([i*j for i in range(1,10) for j in range(1,10)])

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

Submission status: Accepted

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

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
  else:
    continue
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

a = 0
for i in range(1, 10):
    for j in range(i, 10):
        if x == i * j:
            a = 1

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

Submission status: Accepted

Solution code:
N=int(input())

prime=[1]
for i in range(0,82):
    for j in range(2,10):
        P=i%j
        if P==0 and i/j<10:
            prime.append(i)
            break
if N in prime:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
from functools import reduce
n = int(input())

div_rem = [(n / i, n % i) for i in range(1, 10)]


def reducer(acc, x):
    return acc or (x[1] == 0 and x[0] <= 9)


possible = reduce(reducer, div_rem, False)


print('Yes') if possible else print('No')

Submission status: Accepted

Solution code:
b = set()
a = int(input())

for q in range(1,10):
    for w in range(1,10):
        b.add(q*w)

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
def get_input():
    return int(input())


def main():
    N = get_input()

    for i in range(1, 10):
        if N / i in range(1, 10):
            print("Yes")
            return
    print("No")


main()

Submission status: Accepted

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

# 整数の入力
N = int(input())

f = False
for i in range(1,10):
  if N % i == 0 :
    if N/i < 10 :
      print ("Yes")
      f = True
      break
if f is False :
  print ("No")

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
def print_ans(input_line):
    """Test Case
    >>> print_ans("10")
    Yes
    >>> print_ans("50")
    No
    >>> print_ans("81")
    Yes
    """
    N = int(input_line)
    for i in range(1,10):
        q, mod= divmod(N,i)
        if mod == 0 and 0 < q < 10:
            print("Yes")
            break
        elif i == 9:
            print("No")


if __name__ == '__main__':
    print_ans(input())

Submission status: Accepted

Solution code:
a=int(input())
for i in range(9):
    if a %(i+1)==0 and len(str(a//(i+1)))==1:
        print("Yes")
        exit()
print('No')

Submission status: Accepted

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

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
yes = 0
num = int(input())

for i in range(1, 10, 1):
  if(num%i == 0):
    tmp = int(num/i)
  else:
    continue
      
  if(0 < tmp & tmp < 10):
    yes = 1
    break

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

N = int(stdin.readline().rstrip())

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:
# -*- coding: utf-8 -*-
"""
Created on Wed Nov  6 21:49:38 2019

@author: over-
"""

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

Submission status: Accepted

Solution code:
import copy
import heapq
import math
import fractions

def j(n):
    if n:print("Yes")
    else:print("No")
    exit(0)
rem = 10 ** 9 + 7

"""
def ct(x,y):
    if (x>y):print("+")
    elif (x<y): print("-")
    else: print("?")
"""

def ip():
    return int(input())
def iprow():
    return [int(i) for i in input().split()]
def ips():
    return (int(i) for i in input().split())
def ipmultiplerow(n):
    a = []
    for i in range(n):
        a.append(ip())
    return a
def printmultiplerow(a):
    for i in a:
        print(i)
def printrow(a):
    for i in range(len(a)-1):
        print(a[i],end = " ")
    print(a[-1])


n = ip()
for i in range(10):
    for k in range(10):
        if i*k==n: j(1)
j(0)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

flag = True

if n > 81:
    print('No')
    flag = False

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

    if flag:
        print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=int(input())
a=[0]*45
k=0
for i in range(1,10):
     for j in range(i,10):
               a[k]=i*j
               k+=1
printed=False
for i in a:
     if N==i:
          print("Yes")
          printed=True
          break
if printed==False:
     print("No")

Submission status: Accepted

Solution code:
N=int(input())
for i in range(1,10):
    if N/i in range(1,10):
        print("Yes")
        break
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:
    ans = "Yes"
    break
  else:
      ans = "No"
print(ans)

Submission status: Accepted

Solution code:
N=int(input(""))
n=0
for i in range(1,10):
    if N/i in range(1,10):
        n+=1
if n>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
else:
    print("No")

Submission status: Accepted

Solution code:
a=int(input())
i=1
end=0
while(i<=9 and end ==0):
    j=1
    while(j<=9 and end==0):
        if i*j==a:
            print('Yes')
            end=1
        j+=1
    i+=1
    if end ==1:
        break
if end ==0:
    print('No')

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
s=int(input())
ci=0
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: Accepted

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

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

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

Submission status: Accepted

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 num < 100 and a[num] == 1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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
      break
if c==1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
n=float(input())
sw = True
for i in range(1,10):
  if n / i <= 9 and  (n / i).is_integer():
    print('Yes')
    sw = False
    break
if sw:
  print('No')

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)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
m = []
 
for x in range(1, 10):
  for y in range(1, 10):
    m.append(int(x*y))

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

Submission status: Accepted

Solution code:
n = int(input())
j = 1
A = "No"
while j < 10:
  i = 1
  while i < 10:
    if n / j == i:
      A = "Yes"
      break
    else:
      i += 1
  j += 1
print(A)

Submission status: Accepted

Solution code:
import sys

N = int(sys.stdin.read())

S = set(a * b for a in range(1, 10) for b in range(1, 10))
answer = "Yes" if N in S else "No"
print(answer)

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

flag = True
i = 9
while flag and i > 0:
    if a % i == 0:
        b = int(a/i)
        if b < 10:
            print('Yes')
        else :
            print('No')
        flag = False
    else :
        i -= 1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


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

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

    print('No')


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a = []
for i in range(1, 10):
    for j in range(i, 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())
flag = 0;
for i in range(1,10):
    m = n/i;
    if (n%i == 0 and m<10):
        flag = 1;
        break;
if flag: 
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())

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

print(judge)

Submission status: Accepted

Solution code:
n = int(input())
rn = int(n**0.5)+1
ans = 'No'
for i in range(1,rn):
    if n%i == 0 and (n//i) in range(10):
        ans = 'Yes'

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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))
#print(se)

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

Submission status: Accepted

Solution code:
N = int(input())
lst = []
for m in range(1, 10):
	for n in range(1, 10):
		q = m * n
		lst.append(q)
if N in lst:
	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==True:
    print('Yes')
else:
    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")
                  exit()
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 = int(input())
result = "No"
for i in range(1,10):
	if (a % i == 0) and (a / i < 10):
		result = "Yes"
		break
print(result)

Submission status: Accepted

Solution code:
N = int(input())
ret = False
for i in range(1, 9 + 1):
    for j in range(i, 9 + 1):
        if i * j == N:
            ret = True
            break
    else:
        continue
    break
print("Yes" if ret else "No")

Submission status: Accepted

Solution code:
# coding: utf-8

a = int(input())
yes = False

for i in range(1, 10):
  q, mod = divmod(a, i)
  if (mod == 0 and 1 <= q <= 9):
    yes = True
    break

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

Submission status: Accepted

Solution code:
N = int(input())

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

results_set = set(results)
if N in results_set:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import sys
N = int(input())
for i in range(1,10):
  a = N/i
  if a.is_integer() and a<10:
    print("Yes")
    sys.exit()
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")
      exit()
print("No")

Submission status: Accepted

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


def main():
    N = input_line(int)
    kuku = set(x * y for x in range(1, 10) for y in range(1, 10))
    if N in kuku:
        print("Yes")
    else:
        print("No")


def input_line(*types):
    if len(types) == 1:
        return types[0](input())
    else:
        return [t(x) for t, x in zip(types, input().split())]


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
N = int(input())
l = [1,2,3,4,5,6,7,8,9]
ans = 0
for i in range(1,10):
        if l.count(N/i)>0:
                print('Yes')
                ans += 1
                break
if ans== 0:
        print('No')

Submission status: Accepted

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

Solution code:
import sys
N=int(input())
for i in range(9):
  i=i+1
  for j in range(9):
    j=j+1
    if i*j==N:
      print('Yes')
      sys.exit()
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:
N = int(input())

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

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

Submission status: Accepted

Solution code:
n =int(input())
yes = True
primesand10=[10,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97]
if n <= 10:
  yes = True
elif n <= 81:
  for prime in primesand10:
    if n%prime == 0:
      yes = False
      break
else:
  yes = False

if yes: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 N == i*j:
            flag = True

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

Submission status: Accepted

Solution code:
n = int(input())

flag = 0
for i  in range(81):
    a, b = i//9+1, i%9+1
    if a * b == n:
        flag = 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

arr1 = list(range(1, 10))
arr2 = list(range(1, 10))

arr3 = []
for i in arr1:
    for j in arr2:
        arr3.append(i*j)

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

Submission status: Accepted

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

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:
#ABC144: B - 81

N = int(input())

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

print('No')

Submission status: Accepted

Solution code:
#coding:utf-8
n = int(input())
flag = 'No'

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

print(flag)

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

ch  = 0

if(n>81):
    ch  = 0
else:
    for i in range(1,10):
        if(n%i==0):
            k = n//i
            if(k>=1 and k<=9):
                ch = 1
                
if(ch==1):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

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

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

Submission status: Accepted

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

for i in range(1,10):
  for j in range(1,10):
    if i*j==N and i<10 and j<10:
      cnt=1
      break
    else:
      continue
if cnt==1:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
def p_a():
    A, B = map(int, input().split())
    print(A * B if A < 10 and B < 10 else -1)


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


def p_c():
    pass


def p_d():
    pass


def p_e():
    pass


def p_f():
    pass


if __name__ == '__main__':
    p_b()

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

main()

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
#入力
a = int(input())

check=0
for i in range(1,10):
	for j in range(1,10):
		if (i*j==a):
			check = 1

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

Submission status: Accepted

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

Submission status: Accepted

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

MOD = 10 ** 9 + 7

n = int(input())
yes_num = [i * j for j in range(1, 10) for i in range(1, 10)]
ans = 'Yes' if n in yes_num else 'No'

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
 
def is_product_of_two_digits(n):
  for i in range(1, 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: Accepted

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

Submission status: Accepted

Solution code:
l = [i+1 for i in range(9)]

N = int(input())

end = 0

for i in range(9):
    if N % l[i] == 0:
        q = N / l[i]
        if 0 < q < 10:
            print('Yes')
            end = 1
            break

if not end:
    print('No')

Submission status: Accepted

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

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