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:
possible = False
a = int(input())
for m in range(1, 10):
    if a % m == 0 and a / m < 10:
        print("Yes")
        possible = True
        break
if not possible:
    print("No")

Submission status: Accepted

Solution code:
def b81_re(N):
    if N>81:
        return 'No'
    for i in reversed(range(1,10)):
        if N%i == 0:
            if N/i<=9:
                return 'Yes'
    return 'No'


if __name__ == "__main__":
    N = int(input())
    print(b81_re(N))

Submission status: Accepted

Solution code:
def b81(N):
    for i in range(1,10):
        for j in range(1,10):
            if i*j == N:
                return "Yes"
    return "No"


if __name__ == "__main__":
    N = int(input())
    print(b81(N))

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
N = int(input())
O = False
for i in range(10):
    for l in range(10):
        V = i * l
        if V == N:
            O = True
if O:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

N = int(input())

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

Submission status: Accepted

Solution code:
n=int(input())
s=[[0]*9]*9
x=0
for i in range(1,10):
  for j in range(1,10):
    if i*j==n and x==0:
      x+=1
      print("Yes")
      
if x==0:
  print("No")

Submission status: Accepted

Solution code:


n = int(input())

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

Submission status: Accepted

Solution code:
N=int(input())

K=[i*j for i in range(10) for j in range(10)]

print("Yes" if N in K else "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)
print("Yes" if N in a else "No")

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

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


def solve(N: int):
    a = []
    for i in range(1,10):
        for j in range(1,10):
            a.append(i*j)
    b = list(set(a))
    if N in b:
        print(YES)
    else:
        print(NO)


# 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:
def main():
    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")

if __name__ == "__main__":
    main()

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

Submission status: Accepted

Solution code:
c = int(input())

x = 0
for i  in range(9):
    data = c / (i+1)
    if 1 <= data <=9:
        if int(data) * (i +1) == c: 
            print("Yes")
            x = 1
            break

if x == 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())
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())
prime = [2]
for i in range(3, 101):
  for j in range(2, i + 1):
    if (i % j) == 0:
      break
  if i == j:
    prime.append(i)
pflag = True
for k in prime:
  if k >= 10:
    if (n % k == 0):
      pflag = False
for l in range(50, 101, 10):
  if (n % l) == 0:
    pflag = False
if n > 81:
  pflag = False
if(pflag):
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
N=int(input())

ans=False
for a in range(1,10):
    for b in range(1,10):
        if a*b==N:
            ans=True
        else:
            pass

if ans==True:
    print('Yes')
else:
    print("No")

Submission status: Accepted

Solution code:
def check(n):
    for i in range(1,10):
        div, mod = divmod(n, i)
        if (div<10) and (mod==0): return 'Yes'
    return 'No'

n = int(input())
print(check(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())
flag = True
for i in range(10):
    for j in range(10):
        kuku = i * j
        if n == kuku:
            print("Yes")
            flag = False
            break
    else:
        continue  # yes がみつからずにｊのループが終了したとき次のiループにcontinue
    break  # yesが見つかったらbreakでｊのループ抜け出す。そのあとこのbreakでiのループも抜け出す

if flag:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

if count == 1:
    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 == 0:
		print("Yes")
		break
	elif i == 9:
		print("No")
		break

Submission status: Accepted

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

Submission status: Accepted

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

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

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

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

def judge(N):
    for i in range(1, 10):
        for j in range(1, 10):
            if i * j == N:
                return "Yes"
    return "No"

print(judge(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:
def q2():
    N = int(input())
    ans = 'No'
    for i in range(1,10):
        d,m = divmod(N,i)
        if m == 0 and d < 10:
            ans = 'Yes'
    print(ans)


if __name__ == '__main__':
    q2()

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

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

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

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

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())
flag = "ng"
for i in range(1,10):
  dum1,dum2 = divmod(n,i)
  if dum2 == 0 and dum1 < 10:
    flag = "ok"
    break
if flag == "ok":
  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())

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())
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:
n=int(input())
l=[]
for i in range(1,10):
  for k in range(i,10):
    l.append(i*k)
if n in l:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
n = int(input())

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

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

Submission status: Accepted

Solution code:
N = int(input())
flag = False
for i in range(10):
    for j in range(10):
        if i * j == N:
            flag = True
            break
    else:
        continue
    break

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

Submission status: Accepted

Solution code:
N=int(input())
d=[]
for i in range(10):
    for k in range(10):
        d.append(i*k)
if N in d:
    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):
    syou,mod=divmod(N,i)
    if syou<10 and mod ==0:
        ans ="Yes"
        break
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
"""
int(input())
map(int,input().split())
list(map(int,input().split()))

"""

x=int(input())
ans="No"
for  i  in range(1,10):
    for j in range(1,10):
        # print(i,j,x)
        if((i*j)==x):
            ans="Yes"
print(ans)

Submission status: Accepted

Solution code:
n = int(input())

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

if flg:
  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:
import sys

# 入力を整数に変換して受け取る
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def MI1(): return map(int1, sys.stdin.readline().split())
# 入力全てを整数に変換したものの配列を受け取る
def LI(): return list(map(int, sys.stdin.readline().split()))
# 入力全てを整数に変換して1引いたものの配列を受け取る
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def SR(): return sys.stdin.readline().rstrip()

ascii_lowercase = 'abcdefghijklmnopqrstuvwxyz'
ascii_uppercase = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
ascii_uppercase2 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ'

# リストを改行区切りで出力する
p2D = lambda x: print(*x, sep="\n")
p2E = lambda x: print(''.join(x))


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

Submission status: Accepted

Solution code:
N=int(input())

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

Submission status: Accepted

Solution code:
N = int(input())
a = [1, 2, 3, 4, 5, 6, 7, 8, 9]
b = [1, 2, 3, 4, 5, 6, 7, 8, 9]
C = [x * y for x in a for y in b ]

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

Submission status: Accepted

Solution code:
N=int(input())
a=list()
for i in range(9):
    for j in range(9):
        a.append((i+1)*(j+1))
print('Yes' if N in a else 'No')

Submission status: Accepted

Solution code:
def main():
    import sys
    input = sys.stdin.readline
    sys.setrecursionlimit(10**7)
    from collections import Counter, deque
    #from collections import defaultdict
    from itertools import combinations, permutations, accumulate, groupby
    #from itertools import product
    from bisect import bisect_left,bisect_right
    from heapq import heapify, heappop, heappush
    from math import floor, ceil
    #from operator import itemgetter

    #inf = 10**17
    #mod = 10**9 + 7

    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:
n = int(input())
for i in range(1,10):
    if n % i == 0:
        if 1 <= n // i <= 9:
            print("Yes")
            break
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np
N = int(input())
d = int(np.sqrt(N))
d_max = 0
for i in range(1,d+1):
  if N % i == 0:
    d_max = i
if d_max > 9:
  print('No')
elif N / d_max > 9:
  print('No')
else:
  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())
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())
res = False
for i in range(1, 10):
    for j in range(i, 10):
        if N == i * j:
            res = True
            break
if res:
    print("Yes")
else:
    print("No")

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

for i in range(1,10):
  if n%i == 0:
    if int(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(i, 10):
        kuku.append(i * j)
ans = "Yes" if n in kuku else "No"
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()
print("No")

Submission status: Accepted

Solution code:
n=int(input())
list = [j*i for j in range(1, 10) for i in range(1,10)]

print('Yes' if n in list else 'No')

Submission status: Accepted

Solution code:
N = int(input())

i = 1
for x in range(1,10):
    for y in range(1,10):
        if x*y == N:
            i = 0

print("YNeos"[i::2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import itertools as itr
import operator  as op

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

	if N in itr.starmap(op.mul, itr.combinations_with_replacement(range(1, 10), r = 2)):
		print("Yes")
	else:
		print("No")
	
	return


main()

Submission status: Accepted

Solution code:
import itertools as itr

def main():
	N = int(input())
	
	if N in [x * y for x, y in itr.product(range(1, 10), repeat = 2)]:
		print("Yes")
	else:
		print("No")
	
	return


main()

Submission status: Accepted

Solution code:
import itertools

def main():
	N = int(input())
	
	if N in [x * y for x, y in itertools.product(range(1, 10), repeat = 2)]:
		print("Yes")
	else:
		print("No")
	
	return


main()

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:
import sys
N = int(input())

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

count=0
for i in range(1,10):
  if n%i==0:
    s=n//i
    s=str(s)
    if len(s)==1:
      count+=1
    else:
      count+=0
  else:
    count+=0
if count>=1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def yes_no(flg):
    """
        if True return Yes
        if False return No
    """
    if flg:
        print('Yes')
    else:
        print('No')

n = int(input())
flg = False
for y in range(1,10):
    for x in range(1,10):
        if y * x == n:
            flg = True
yes_no(flg)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
# mul_table = []
mul_table = set()


for i in range(1, 10):
    for j in range(1, 10):
        mul_table.add(i * j)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

L = set()
for i in range(1,10):
    for j in range(1,10):
        result = i*j
        L.add(result)
if n in L:
    print("Yes")
elif n not in L:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())

result = 'No'

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

print(result)

Submission status: Accepted

Solution code:
N = int(input())
count = 0
for i in range(1,10):
    n = N / i
    if n.is_integer() and n <= 9:
        count +=1
if count >= 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N=int(input())
for i in range(1,10):
  m=N/i
  if m.is_integer() and 0<m<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:
S = int(input())
li = [1,2,3,4,5,6,7,8,9]
count = 0
for i in range(9):
    if S//(li[i]) <= 9 and S % li[i] == 0:
        print("Yes")
        count += 1
        break
if count != 1:
    print("No")

Submission status: Accepted

Solution code:
mul = [[i*j for j in range(1, 10)] for i in range(1, 10)]
mul = sum(mul, [])
mul = list(set(mul))

if int(input()) in mul:
  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')
            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')
        exit()
print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

if n in kakezan:
    print('Yes')
    exit()

print('No')

Submission status: Accepted

Solution code:
n = int(input())

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

print('Yes') if n in qq 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(0)
print("No")

Submission status: Accepted

Solution code:
N = int(input())
A = []
if 1 <= N <= 9:
    print("Yes")
else:
    for i in range(9):
        if int(N/(i+1)) == N/(i+1):
            A.append(N/(i+1))
    if min(A) <= 9:
        print("Yes")
    else:
        print("No")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 7)

n = int(readline())
l = list()
for i in range(1,10):
    for j in range(1,10):
        l.append(i * j)
print('Yes' if n in l else 'No')

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 7)

n = int(readline())
s = set()
for i in range(1,10):
    for j in range(1,10):
        s.add(i * j)
print('Yes' if n in s else '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 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:
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())

ok = False
for i in range(1, 10):
    is_dividable = N % i is 0
    is_less_9 = N / i <= 9
    if is_dividable and is_less_9:
        ok = True
        break

answer = 'Yes' if is_dividable else 'No'

print(answer)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
flag=True
for i in range(9):
    for j in range(9):
        if (i+1)*(j+1)==n:
            print("Yes")
            flag=False
            exit()
if flag:
    print("No")

Submission status: Accepted

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

for i in range(1,10):
    for j in range(1,10):
        k = i*j
        if k == n:
            l += 1

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

Submission status: Accepted

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

Submission status: Accepted

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

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

n=I()
count=0
anss=[]
for i in range(1,10):
    for j in range(1,10):
        anss.append(i*j)
for ans in anss:
    if ans==n:
        print("Yes")
        sys.exit()
    else:
        count+=1
if count==len(anss):
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
a = False
for i in range(1,10):
    if n%i==0 and n//i<10:
        a = True
if a:
    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 n == i * j:
			print("Yes");exit()
print("No")

Submission status: Accepted

Solution code:
import sys
import os

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))
fl = lambda: list(map(float, sys.stdin.buffer.readline().split()))
iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]

iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
sl = lambda: list(map(str, sys.stdin.buffer.readline().decode().split()))
isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

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


if __name__ == '__main__':
    main()

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 sys
input = sys.stdin.readline
from itertools import *
from collections import *

INF = float('inf')


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


if __name__ == '__main__':
    main()

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')
        exit()
print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
check = 0
for p in range(10):
    if check == 0:
        for q in range(10):
            ans = p * q
            if a == ans:
                print('Yes')
                check += 1
            elif ans == 81 and a is not 81:
                print('No')
                
            else:
                pass

Submission status: Accepted

Solution code:
#
# Written by NoKnowledgeGG @YlePhan
# ('ω')
#
#import math
#mod = 10**9+7
#import itertools
#import fractions
#import numpy as np
#mod = 10**4 + 7
"""def kiri(n,m):
  r_ = n / m
  if (r_ - (n // m)) > 0:
    return (n//m) + 1
  else:
    return (n//m)"""
  
def main():
  MATH = []
  for i in range(1,10):
    for j in range(1,10):
      MATH.append(i*j)
  n = int(input())
  if n in MATH:
    print('Yes')
  else:
    print('No')
if __name__ == '__main__':
  main()

Submission status: Accepted

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
from itertools import product
nums = [1, 2, 3, 4 ,5, 6, 7, 8, 9]
nums_set = set(i*j for i, j in product(nums, repeat=2))
n = int(input())
if n in nums_set:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import sys
n=int(input())
for x in range(1,9+1):
    for y in range(1,9+1):
        if n==x*y:
            print("Yes")
            sys.exit()
else:        
    print("No")

Submission status: Accepted

Solution code:
N=int(input());i=1;A='No'
while i<=9:
    if N//i*i==N and N//i<=9:
        A='Yes'
        break
    i+=1
print(A)

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

Submission status: Accepted

Solution code:
N=int(input())

def zent(N):
    for i in range(1,10):
        for j in range(1,10):
            if j*i==N:
                return print("Yes")
    return print("No")
zent(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())

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

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

Submission status: Accepted

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

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

print('No')

Submission status: Accepted

Solution code:
n = int(input())

flag = 'No'
for i in range(1,10):
    if n % i == 0:
        if n // i < 10:
            flag = 'Yes'
            break
        else:
            continue

print(flag)

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)