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


ans = 0

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

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

Submission status: Accepted

Solution code:
n=int(input())
i=1
flag=0
while(i<10):
    if((n%i)==0 and (n/i)<10):
        print("Yes")
        flag=1
        break
    i+=1
if(flag==0):
    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_list = []

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

N = int(input())
if N in N_list:
    print("Yes")
else :
    print("No")

Submission status: Accepted

Solution code:
n = int(input())

kuku = []
for i in range(10):
    for j in range(10):
        kuku.append(i*j)

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

Submission status: Accepted

Solution code:
n=int(input())
i=0
flg=0
while i<10:
	j=1
	while j<10:
		if i*j==n:
			flg=1
			break
		j+=1
	i+=1

if flg==1:
	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:
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 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())
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:
num = int(input())
print("Yes" if any(num // i < 10 and not num % i for i in range(1, 10)) else "No")

Submission status: Accepted

Solution code:
import sys
import itertools
import bisect

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  # ignore trailing spaces


n = ni()
flag = 0
for i in range(1, 10):
    for j in range(1, 10):
        if n == i * j:
            flag = 1
if flag:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = int(input());
#n = [int(i) for i in input().split()];
#S = [str(s) for s in in_S]
jud='No';
for i in range(1,10):
    if n%i == 0 and n/i <= 9:
        jud ='Yes';
print(jud);

Submission status: Accepted

Solution code:
A = int(input())
count = 0
for i in range(1,10):
	if A%i == 0:
		B = A/i
		if B<10 and B > 0:
			print("Yes")
			count += 1
			break;

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

Submission status: Accepted

Solution code:
N=int(input())

flag=1

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

if(flag):
    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())

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

for i in range(1, 10):
    if N/i in arr:
        print('Yes')
        break
else:
    print('No')

Submission status: Accepted

Solution code:
import sys

[nstr] = sys.stdin.readline().split(" ")
n = int(nstr)

result = float(0)
for i in range(1, 10):
    result = n / i
    if result.is_integer() and result < 10:
        print("Yes")
        exit()

print("No")

Submission status: Accepted

Solution code:
N = int(input())

for i in range(1,10):
    if  N / i in [1, 2, 3, 4, 5, 6, 7, 8, 9]:
        print("Yes")
        exit()
print("No")

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=int(input())

if 1<=N<=9:
  print("Yes")
elif (N%2==0) and N<=18:
  print("Yes")
elif (N%3==0) and N<=27:
  print("Yes")
elif (N%4==0) and N<=36:
  print("Yes")
elif (N%5==0) and N<=45:
  print("Yes")
elif (N%6==0) and N<=54:
  print("Yes")
elif (N%7==0) and N<=63:
  print("Yes")
elif (N%8==0) and N<=72:
  print("Yes")
elif (N%9==0) and N<=81:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
n = int(input().strip())
count = 0

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

Submission status: Accepted

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

if N <= 9:
    count+=1


for i in range(2, 10):
        if N % i == 0:
            j = N / i
            if 1 <= j <= 9:
                count += 1

            else:
                count = count

        else:
            count = count

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

Submission status: Accepted

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

n = int(input())

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

def main():
    n = int(input())
    for i in range(1, 10):
        if n % i == 0 and n // i < 10:
            print('Yes')
            return None
    print('No')
if __name__ == '__main__':
    main()

Submission status: Accepted

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

YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(N: int):
    l = set([])
    
    for i in range(1, 10):
        for j in range(1, 10):
            l.add(i*j)
    
    print(YES if N in l else NO)
    return


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    solve(N)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
ans = "No"
for p in range(1, 10):
    q, r = divmod(N, p)
    if q in list(range(1, 10)) and r == 0:
        ans = "Yes"
        break
print(ans)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys

N = int(input())

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

print('No')

Submission status: Accepted

Solution code:
N = int(input())

cmd = 0

for i in range(1, 10, 1):
    for j in range(i, 10, 1):
        sample = i*j
        if(sample == N):
            cmd = 1
            break

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

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())
list = []
append = list.append
for a in range(1,10):
    for b in range(1,10):
        append(a*b)

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

Submission status: Accepted

Solution code:
n = int(input())
flag = False
for x in range(1,10):
  if(n%x==0 and 1 <= n//x <= 9):
    flag = True
if flag:
  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:
import itertools
n = int(input())
a = b = list(range(1,10))
flg = False
for aa,bb in itertools.product(a,b):
  if aa * bb == n:
    flg =True
    break
print("Yes" if flg else "No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

for i in range(1, 10):
    if (n / i).is_integer() and n / i <= 9:
        print('Yes')
        exit()
print('No')

Submission status: Accepted

Solution code:
import sys

N = int(input())

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

print('No')

Submission status: Accepted

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

flg = 0
for a in nums:
    if N/a in nums:
        print('Yes')
        flg = 1
        break
if flg==0: print('No')

Submission status: Accepted

Solution code:
N = int(input())

res = "No"

if (N <= 81):
    for i in range(1,10):
        if (N % i == 0 and (N // i) < 10):
            res = "Yes"
            break

print(res)

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())
for i in range(9):
    if N%(9-i)==0:
        N=N//(9-i)
        if N<=9:
            print('Yes')
            break
        else:
          print('No')
          break
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())

a = [float(x) for x in range(1, 10)]
for i in range(1,10):
    if N / i in a:
        print('Yes')
        exit()
print('No')

Submission status: Accepted

Solution code:
n = int(input())

ans = 'No'  #初期値 

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

print(ans)

Submission status: Accepted

Solution code:
N = int(input())
if N > 81:
  print("No")
elif N <= 9:
  print("Yes")
else:
  found = False
  for i in range(2, 10):
    if N % i == 0:
      X = N // i
      if X <= 9:
        print("Yes")
        found = True
        break
  if not found:
    print("No")

Submission status: Accepted

Solution code:
inp = int(input())
flag = "No"
for i in range(1,10):
  if (str(inp/i)).split(".")[1]=="0":
    a = str((inp/i)).split(".")[0]
    
    if(len(a)==1):
      for j in range(1,10): 
        if (str(int(a)/j)).split(".")[1]=="0":
          b = str((int(a)/j)).split(".")[0]
          if (b=="1"):
            flag="Yes"
            break  
print(flag)

Submission status: Accepted

Solution code:
n=int(input())
ans=[0]*100
if n>81:
  print('No')
else:
  for i in range(1,10):
    for j in range(i,10):
      ans[(i-1)*10+(j-1)]=i*j
  if ans.count(n)==0:
    print('No')
  else:
    print('Yes')

Submission status: Accepted

Solution code:
n = int(input())

if n > 81:
  print("No")
else:
  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())
flag = 0
for i in range(1,10):
    for j in range(1,10):
        if N == i*j:
            flag = 1
if flag == 0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
for i in range(1,10):
  if n/i == n//i and n//i <= 9:
    print('Yes')
    break
else:
  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())

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

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

Submission status: Accepted

Solution code:
# https://atcoder.jp/contests/abc144/tasks/abc144_b

N = int(input())

ans = "No"

if N == 1:
   ans = "Yes"

for i in range(2,10):
   #割り切れるなら
   if N % i == 0:
      waru = N / i
      # 割った値が9以下なら
      if 9 >= waru:
         ans = "Yes"

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#ABC144-B 81
print('Yes' if int(input()) in set(i*j for i in range(1,10) for j in range(1,10)) else 'No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input().strip())
kuku = {a * b: True for a in range(1, 10) for b in range(1, 10)}
if kuku.get(n):
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
flag = False
if(N > 81):
    print("No")
else:
    for i in range(1,10):
        if (N % i == 0) and (N // i < 10):
            flag = True
            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 == 0 and N // i < 10:
        print("Yes")
        exit()
print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
list = [9,8,7,6,5,4,3,2,1]
if n == 1:
    print("Yes")
    exit()

ans = ""
for item in list:
    if (n % item) == 0 and (n / item) in list:
        ans = "Yes"
        break
    else:
        ans = "No"

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import itertools
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())
for i in range(9):
    if n%(i+1) == 0:
        if n//(i+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 len(str(N//i))==1:
        print("Yes")
        exit()
print("No")

Submission status: Accepted

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

YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(N: int):
    print(YES if N in list(set([x*y for x in range(1, 10) for y in range(1, 10)])) else NO)
    return


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    solve(N)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
from collections import defaultdict,deque
from heapq import heappush, heappop
from bisect import bisect_left, bisect_right
import sys, random, itertools, math
sys.setrecursionlimit(10**5)
input = sys.stdin.readline
sqrt = math.sqrt
def LI(): return list(map(int, input().split()))
def LF(): return list(map(float, input().split()))
def LI_(): return list(map(lambda x: int(x)-1, input().split()))
def II(): return int(input())
def IF(): return float(input())
def LS(): return list(map(list, input().split()))
def S(): return list(input().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007
inf = float('INF')

#A
def A():
    a, b = LI()
    def c(x):
        return 1 <= x <= 9
    if c(a) and c(b):
        print(a * b)
        return
    print(0)
    return

#B
def B():
    a = set()
    for i in range(10):
        for k in range(10):
            a.add(i * k)
    x = II()
    if x in a:
        print("Yes")
    else:
        print("No")
    return

#C
def C():
    n = II()
    factlize = []
    ans = inf
    for i in range(1, int(sqrt(n)) + 1):
        if n % i == 0:
            ans = min(ans, n // i + i - 2)
    print(ans)

    return

#D
def D():
    return

#E
def E():
    def solve(m):
        a1 = a[::-1]
        f1 = f[::1]
        res = 0
        for i in range(n):
            if a1[i] * f1[i] <= m:
                continue
            k = m // f1[i]
            res += a1[i] - k
            if res > K:
                return False
        return True

    n, K = LI()
    a = LI()
    a.sort()
    f = LI()
    f.sort()
    ok = max(a) * max(f)
    ng = -1
    while ok - ng > 1:
        mid = (ok + ng) // 2
        if solve(mid):
            ok = mid
        else:
            ng = mid
    print(ok)
    return

#F
def F():
    return


#Solve
if __name__ == '__main__':
    B()

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

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

print("No")

Submission status: Accepted

Solution code:
import sys

N = int(input())

for x in range(1, 10):
    for y in range(1, 10):
        if(N==x*y):
            print("Yes")
            sys.exit()

print("No")

Submission status: Accepted

Solution code:
data = list(map(int,input().split()))
N = data[0]
flag = 0
for i in range(1,10,1):
  div = N / i
  pl = N % i
  if 1<=div<=9 and pl==0:
    flag = 1
    break
if flag == 0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
N = int(input())
ans = ''

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

Submission status: Accepted

Solution code:
n=int(input())

for a in range(10):
    for b in range(10):
        if a * b == n:
            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 i*j == n:
            print("Yes")
            exit()
            
print("No")

Submission status: Accepted

Solution code:
N = int(input())

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

print(ans)

Submission status: Accepted

Solution code:
n = int(input())
flag = False
for a in range(1, 10):
    for b in range(1, 10):
        if a*b == n:
            flag = True
if flag == True:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n=int(input())

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

if x==1:
  print('Yes')

else:
  print('No')

Submission status: Accepted

Solution code:
n=int(input())

x=0
for i in range(1,10):
  for ii in range(1,10):
    if n==i*ii:
      x=1

if x==1:
  print('Yes')

else:
  print('No')

Submission status: Accepted

Solution code:
n=int(input())

if n in [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]:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

if n > 81:
  print('No')
else:
  for i in reversed(range(1,10)):
    if n % i == 0 and n//i <= 9:
      print('Yes')
      sys.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')
      exit()
print('No')

Submission status: Accepted

Solution code:
N=int(input())
flag=0
for A in range(1,10):
  for B in range(1,10):
    if N==A*B:
      flag=1
      break

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

Submission status: Accepted

Solution code:
N=int(input())
flag=0
for A in range(1,10):
  for B in range(1,10):
    if N==A*B:
      flag=1
      break

print( "Yes" if flag == 1 else "No" )
#if flag==0:
#  print('NO')
#else:
#  print('YES')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

flag = 0

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

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

Submission status: Accepted

Solution code:
import sys
n = int(input())
for i in range(9,0,-1):
  for j in range(9,0,-1):
    if i*j == n:
      print('Yes')
      sys.exit()
print('No')

Submission status: Accepted

Solution code:
a=input()
a=int(a)
li1=[2,3,50,60,70,80,22,33,44,55,66,77,26,39,52,65,78,34,51,68,38,57,46,69,58,62,74,]
for i in range(4,82):
    b=0
    for k in range(2,i):
        if i%k==0:
            b=1
    if b==0:
        li1.append(i)
li2=[h for h in range(1,82)]
li3=list(set(li2)-set(li1))
li4=[2,3,5,7,9]
li5=li3+li4
if a in li5:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

N = int(input())
if N in list:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())

flag = 0

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

can = False
for i in range(1, 10):
  for j in range(1, 10):
    if i * j == a:
      can = True
      
if can:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
usrInput = input()
divisor = []
flag = []
finalFlag = False

for kuku in range(9):
    currentDivisor = kuku+1
    if int(usrInput) % currentDivisor == 0:
        divisor.append(currentDivisor)

for x in range(len(divisor)):
    anotherDivisor = int(usrInput) / divisor[x]
    if float.is_integer(anotherDivisor) == True and anotherDivisor <= 9 and anotherDivisor > 0 and int(divisor[x]) > 0:
        flag.append(True)
    else:
        flag.append(False)

for n in range(len(divisor)):
    if bool(flag[n]) == True:
        finalFlag = True

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

Submission status: Accepted

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

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

for div in range(1, 10):
    if n % div == 0 and n // div < 10:
        print('Yes')
        break
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

if N > 81:
  print('No')
  exit()

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

print('No')

Submission status: Accepted

Solution code:
N = int(input())
is81 = False
for i in range(1, 10):
    for j in range(1, 10):
        if i*j == N:
            is81 = True

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

Submission status: Accepted

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

Submission status: Accepted

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

if N>81:
    print("No") # if N>81=9*9 then don't even bother trying to factorize it
else:
    for A in range(1, 10):
        if N % A == 0:
            B = N//A
            if B <= 9:
                print("Yes")
                sys.exit()
    print("No")

Submission status: Accepted

Solution code:
n=input()
n=int(n)
a=0
b=0

for i in range(10):
    for j in range(10):
        if(n==i*j):
            a=i
            b=j
            break
            
if(a==0 or b==0):
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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())
a1=[i+1 for i in range(9)]
b1=[i+1 for i in range(9)]
c=[]
for a in a1:
  for b in b1:
    c.append(a*b)
if n in c:
  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 len(str(n // i)) == 1:
    ans = 'Yes'
    break
print(ans)

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(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:break
        if i*j==n:
            print("Yes")
            n=0
            break
    else:
        continue
    if n==0:break
if n!=0:print("No")

Submission status: Accepted

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

suc = 0
for x in range(1,10):
	for y in range(1,10):
		if a == int(x*y):
			suc = 1
			break
		else:
			continue

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