Problem:


Score : 200 points

Problem Statement

Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.

Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print Yes; if it cannot, print No.

Constraints

1 \leq N \leq 100

N is an integer.

Input

Input is given from Standard Input in the following format:

N

Output

If N can be represented as the product of two integers between 1 and 9 (inclusive), print Yes; if it cannot, print No.

Sample Input 1

10

Sample Output 1

Yes

10 can be represented as, for example, 2 \times 5.

Sample Input 2

50

Sample Output 2

No

50 cannot be represented as the product of two integers between 1 and 9.

Sample Input 3

81

Sample Output 3

Yes



Sample input:
10


Sample output:
Yes

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:

n = int(input())

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

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

Submission status: Accepted

Solution code:
a=int(input())
t=0
for i in range(1,10):
  if a % i ==0 and a // 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:
        A = N // i
        if A <= 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")
        break
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())

ans  = "No"

for i in range(9):
  k = i+1
  if n/k == n//k and n/k <=9:
    ans = "Yes"
print(ans)

Submission status: Accepted

Solution code:
n = int(input())

for a in range(1, 10):
    b = n / a
    if (b.is_integer() and a <= 9 and b <= 9):
        print("Yes")
        exit()

print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

able = False
for i in range(1, 10):
    q = N // i
    if q <= 9 and i * q == N:
        able = True
        break
print('Yes' if able else 'No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
#a,b = map(int,input().split())
#li = list(map(int,input().split()))
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 == 0:
        res = N // i
        if res < 10:
            ans = 'Yes'

print(ans)

Submission status: Accepted

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

print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

ans = 1

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

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

Submission status: Accepted

Solution code:
N = int(input())
ans = 0
for i in [1,2,3,4,5,6,7,8,9]:
    if N%i == 0 and N/i<10:
        ans = 1
        break
    else:
        ans = 0
        
if ans == 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 N == i * j:
            #print(i,j)
            print('Yes')
            exit(0)
print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# abc144/abc144_b
import sys


def s2nn(s): return [int(c) for c in s.split(' ')]


def ss2nn(ss): return [int(s) for s in list(ss)]


def ss2nnn(ss): return [s2nn(s) for s in list(ss)]


def i2s(): return sys.stdin.readline().rstrip()


def i2n(): return int(i2s())


def i2nn(): return s2nn(i2s())


def ii2ss(n): return [i2s() for _ in range(n)]


def ii2nn(n): return ss2nn(ii2ss(n))


def ii2nnn(n): return ss2nnn(ii2ss(n))


def main():
    N = i2n()
    s = set(range(1, 10))
    for i in range(1, 10):
        if (N/i in s):
            print('Yes')
            return
    print('No')
    return


main()

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'
        break

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from itertools import product

ans = [a * b for a, b in product(range(1, 10), repeat=2)]

N = int(input())

if N in ans:
    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())

count=0
for i in range(1,10):
    if(N%i==0):
        another=int(N/i)
        if(1<=another<=9):
            count+=1
            
if(count==0):
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

N = int(input())

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

Submission status: Accepted

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


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

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

Submission status: Accepted

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

Submission status: Accepted

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

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 N == i * j:
            print("Yes")
            exit()

print("No")

Submission status: Accepted

Solution code:
N = int(input())

can = 0

for i in range(10):
    for j in range(10):
        if i * j == N:
            can = 1

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

Submission status: Accepted

Solution code:
import sys

def solve():
    N = int(input())
    for i in range(9, 0, -1):
        if N % i == 0 and N / i < 10:
            print('Yes')
            sys.exit()
    print('No')

if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
n = int(input())

flag = 0
for i in range(9):
    for j in range(9):
        if n == (i+1)*(j+1):
            flag=1
            break
if flag==0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
import sys

N = int(input())

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

else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
f = False
for i in range(1, 10):
    if N%i == 0 and 0 < N//i < 10:
        f = True
        break
if f:
    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:
import sys
n = int(input())
for i in range(9):
    if n/(i+1) in (1,2,3,4,5,6,7,8,9):
        print('Yes')
        sys.exit()
print('No')

Submission status: Accepted

Solution code:
import sys,collections,math,random;sys.setrecursionlimit(10**7)
def Is(): return [int(x) for x in sys.stdin.readline().split()]
def Ss(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

if n > 81:
    print('No')
    exit(0)

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

Submission status: Accepted

Solution code:
N =int( input())

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

    ans = 'No'
    for i in range(1, 10):
        q, mod = divmod(n, i)
        if mod == 0 and 1 <= q <= 9:
            ans = 'Yes'
            break
    print(ans)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def main():
    N = int(input())
    memo = {i*j for i in range(1, 10) for j in range(1, 10)}
    if N in memo:
        print("Yes")
    else:
        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()
print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
f = 0
for i in range(1, 10):
	if n/i in [1,2,3,4,5,6,7,8,9]:
		print("Yes")
		f = 1
		break
if f == 0:
	print("No")

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    N = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
f = False
for i in range(9):
    for j in range(9):
        if (i+1)*(j+1) == N:
            f = True
if f:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

n = int(input())

for i in range(1, max(n+1, 11)):
    if (n/i)%1 == 0:
        if 1 <= n//i <= 9 and 1 <= i <= 9:
            print("Yes")
            break
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys

def main():
    input = sys.stdin.readline
    N = int(input())
    ans = "No"
    for i in range(9):
        i += 1
        for j in range(9):
            j += 1
            if N == i * j:
                ans = "Yes"
                break
    print(ans)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N=int(input())

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

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

Submission status: Accepted

Solution code:

N = int(input())

ret = 'No'
for a in range(1, 10):
    for b in range(1, 10):
        if a*b == N:
            ret = 'Yes'
            break

print(ret)

Submission status: Accepted

Solution code:
import numpy as np

n = int(input())

seki = []

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

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


# print("ans")

"""

"""

Submission status: Accepted

Solution code:
N = int(input())

flag = 0
for i in range(1,10):
    if N%i == 0 and 1 <= N//i <= 9:
        flag = 1
        break

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

Submission status: Accepted

Solution code:
n = int(input())

c = False
for i in range(1, 10):
    for j in range(1, 10):
        if i * j == n:
            c = True
if c == True:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
kuku = list()

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

N = int(input())

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

Submission status: Accepted

Solution code:
n = int(input())

s = [0]*100
s[0] = 1
for i in range(1,10):
    for j in range(1, 10):
        s[i*10+j] = i*j

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

Submission status: Accepted

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

Submission status: Accepted

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

print(out)

Submission status: Accepted

Solution code:
n=int(input())

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

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

Submission status: Accepted

Solution code:
#A=int(input())
#A=list(map(int,(input().split())))
A=list(map(int,(input().split())))
N=A[0]
def dou(ans):
	for x in range(1,10):
		for y in range(1,10):
			if (x*y==ans):return True
	return False
if (dou(N)):
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
n = int(input())

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

print(solve())

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ii = lambda: int(input())
mis = lambda: map(int,input().split())
lmis = lambda: list(mis())

x = ii()

ct = 0
for i in range(1,10):
    for j in range(1,10):
        if(x==i*j):
            ct = 1
if(ct==1):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())

flag = False

if n < 10:
  flag = True
  
for i in range(2, 10):
  if n % i == 0 and n // i < 10:
    flag = True
  if flag:
    break
    
if flag:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

    if test == 0:
        print('No')


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N = int(input())

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

print('No')

Submission status: Accepted

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

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

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

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

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
import sys

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

yes_flag = 0
for i in range(1,10):
    for j in range(1, 10):
        if i*j == N:
            yes_flag =1

if yes_flag ==1:
    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(i,10):
        if N==i*j:
            flag = 1
            break
    if flag==1:break
if flag==0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
def input():
    return sys.stdin.readline()[:-1]


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

Submission status: Accepted

Solution code:
def main():
  n = int(raw_input())
  for a in xrange(1, 10):
    for b in xrange(1, 10):
      if a*b == n:
        print('Yes')
        return
  print('No')

main()

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
#ABC144A
import sys
import math
import collections
#sys.setrecursionlimit(100000)


n=int(input())

#tmp = input().split()
#a,b = list(map(lambda a: int(a), tmp))

for i in range(9):
	if(n%(9-i)==0)and(n//(9-i)<10):
		print("Yes")
		sys.exit()
print("No")

Submission status: Accepted

Solution code:
N=int(input())
L=[1,2,3,4,5,6,7,8,9]
for i in range(1,10):
  if N/i in L:
    print('Yes')
    exit();

print('No')

Submission status: Accepted

Solution code:
n = int(input())
k = 0
for i in range(9):
    a = 9-i
    if n % a == 0 and n / a <= 9:
        print("Yes")
        k = 1
        break
    else:
        pass

if k == 0:
    print("No")
else:
    pass

Submission status: Accepted

Solution code:
N = int(input())
flag = False
for num in range(1, 10):
    if N % num == 0:
        if 1 <= int(N / num) and int(N / num) <= 9:
            flag = True

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

Submission status: Accepted

Solution code:
N = int(input())

flag = False

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

print('No')

Submission status: Accepted

Solution code:
N = int(input())

kuku = set()

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- Coding: utf-8 -*-

import sys


input = sys.stdin.readline


def main():
    n = int(input())
    for i in range(1, 10):
        if n % i == 0:
            if n//i < 10:
                print("Yes")
                exit(0)
    print("No")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
def input():
    import sys
    return sys.stdin.readline().rstrip()


def main():
    import math
    import collections
    import itertools

    n = int(input())
    if n > 81:
        print("No")
        exit()

    for i in range(9, 0, -1):
        div, rem = divmod(n, i)
        if rem == 0 and div <= 9:
            print("Yes")
            exit()
    else:
        print("No")




if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == "__main__":
    f_b()

Submission status: Accepted

Solution code:
n = int(input())
n_list =[i*j for i in range(1,10,1) for j in range(1,10,1)]
if n in n_list:
    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
sys.setrecursionlimit(1000000000)
ii = lambda: int(input())
ii0 = lambda: ii() - 1
mis = lambda: map(int, input().split())
lmis = lambda: list(mis())
INF = float('inf')

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



main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


def main():
    n = int(input())
    list1 = [v*1 for v in range(1, 10)]
    list2 = [v*2 for v in range(1, 10)]
    list3 = [v*3 for v in range(1, 10)]
    list4 = [v*4 for v in range(1, 10)]
    list5 = [v*5 for v in range(1, 10)]
    list6 = [v*6 for v in range(1, 10)]
    list7 = [v*7 for v in range(1, 10)]
    list8 = [v*8 for v in range(1, 10)]
    list9 = [v*9 for v in range(1, 10)]
    if n in list1 or n in list2 or n in list3 or n in list4 or n in list5 or n in list6 or n in list7 or n in list8 or n in list9:
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N = int(input())
judge = False

for i in range(10):
	for j in range(10):
		if N == i*j:
			print('Yes')
			judge = True
			break
	if judge == True:
		break
			
if judge == False:
	print('No')

Submission status: Accepted

Solution code:
n=int(input())

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

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
from sys import stdin
N = int(stdin.readline().rstrip())
flag = False
for i in range(1,10):
    if N % i == 0:
        if len(str(N // i)) == 1:
            flag = True
if flag:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())

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

print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=int(input())

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

Submission status: Accepted

Solution code:
import sys
from collections import deque,defaultdict
from fractions import gcd
from math import ceil

def N():
    return int(sys.stdin.readline())
def NK():
    return map(int,sys.stdin.readline().split())
def LS_I():
    return [int(x) for x in sys.stdin.readline().split()]
def LS_S():
    return list(input())
def main():
    n =N()
    for i in range(1,10):
        if n%i==0 and 1<=(n//i)<=9:
            print("Yes")
            exit()
    print("No")
                
if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:

N = int(input())

li =[]

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

for i in range(len(li)):
    if li[i] == N:
        print('Yes')
        exit()

print('No')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
input = sys.stdin.readline


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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
num =[1,2,3,4,5,6,7,8,9]
n = int(input())
c = 0
for i in num:
    for j in num:
        if i * j == n:
            c = 1
            break
if c == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
N = int(input())

print('Yes' if N in (a*b for a in range(1,10) for b in range(a,10)) else 'No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

ans = 'No'
for i in range(9):
    i = 9-i
    if N % i == 0 and N//i <= 9:
        ans = 'Yes'
        break
print(ans)

Submission status: Accepted

Solution code:
N = int(input())

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

print(f())