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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
n = int(input())
if n%2 == 0 or n%3 == 0 or n%5 == 0 or n%7 == 0:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())

if n > 81:
    print(-1)

for i in range(2,10):
    if n%i == 0:
        if n / i < 10:
            print('Yes')
            break
else:
    print(-1)

Submission status: Wrong Answer

Solution code:
from sys import stdin

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

while A * 2 <= N and A <= 9:
    if N % A == 0 and N // A <= 9:
        print('Yes')
        exit()
    A += 1

print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

if cnt == 1 or cnt == 2:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

if n <= 81:
    print('yes')
else:
    print('no')

Submission status: Wrong Answer

Solution code:
n = int(input())
f = 0
for i in range(1, 9):
	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: Wrong Answer

Solution code:
def main():
    n = int(input())
    flag = False
    for i in range(9):
        for j in range(9):
            if i*j == n:
                flag = True
    if flag:
        print("Yes")
    else:
        print("No")
    
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
n = int(input())

flag = False

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

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

Submission status: Wrong Answer

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

if not printed:
    print('No')

Submission status: Wrong Answer

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: Wrong Answer

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


def main():
  N = int(input())
  for i in range(2,min(N,10)):
    if N%i == 0 and N//i <= 9:
      return "Yes"
  return "No"

print(main())

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
if N > 99 or N%10 == 0:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
n = int(input())
for i in range(9):
    for j in range(9):
        if n == i*j:
            print('Yes')
            exit(0)
print('No')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
n = int(input())

if 1<=n<=81:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
from copy import deepcopy
from sys import exit,setrecursionlimit
import math
from collections import defaultdict,Counter,deque
from fractions import Fraction as frac
import bisect
import sys
input = sys.stdin.readline

setrecursionlimit(1000000)

dp = defaultdict(lambda x:-1)

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

def zip(a):
	mae = a[0]
	ziparray = [mae]
	for i in range(1,len(a)):
		if(mae != a[i]):
			ziparray.append(a[i])
			mae = a[i]
	return ziparray

def is_prime(n):
	if n < 2: return False

	for k in range(2, int(math.sqrt(n)) + 1):
		if n % k == 0:
			return False

	return True

def list_replace(n,f,t):
	return [t if i==f else i for i in n]

def base_10_to_n(X, n):
	X_dumy = X
	out = ''
	while X_dumy>0:
		out = str(X_dumy%n)+out
		X_dumy = int(X_dumy/n)
	if(out == ''): return '0'
	return out

def gcd(l):
	x = l.pop()
	y = l.pop()
	while(x%y!=0):
		z = x%y
		x = y
		y = z
	l.append(min(x,y))
	return gcd(l) if len(l) > 1 else l[0]

class Queue():
	def __init__(self):
		self.q = deque([])
	def push(self,i):
		self.q.append(i)
	def pop(self):
		return self.q.popleft()
	def size(self):
		return len(self.q)
	def debug(self):
		return self.q

class Stack():
	def __init__(self):
		self.q = []
	def push(self,i):
		self.q.append(i)
	def pop(self):
		return self.q.pop()
	def size(self):
		return len(self.q)
	def debug(self):
		return self.q

class graph():
	def __init__(self):
		self.graph = defaultdict(list)
	def addnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].append(t)
		self.graph[t].append(f)
	def rmnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].remove(t)
		self.graph[t].remove(f)
	def linked(self,f):
		return self.graph[f]

class dgraph():
	def __init__(self):
		self.graph = defaultdict(set)
	def addnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].append(t)
	def rmnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].remove(t)
	def linked(self,f):
		return self.graph[f]

main()

Submission status: Time Limit Exceeded

Solution code:
N = int(input())
cnt = 1
while cnt <= 9:
    s = N/cnt
    if 1 <= s <= 9 and s == type(int):
        print('Yes')
        cnt += 1
else:
    print('No')

Submission status: Time Limit Exceeded

Solution code:
number = int(input())
y = False
while True:
  for i in range(1, 9):
    for n in range(1, 9):
      if number == i * n:
        print("Yes")
        y = True
        break
if y == False:
  print("No")
else:
  pass

Submission status: Time Limit Exceeded

Solution code:
n=int(input())
m=2
p=0
while m<=9:
  if n%m==0:
    m=m+1
    p=p+1
if p==2:
  print('Yes')
else:
  print('No')

Submission status: Time Limit Exceeded

Solution code:
n=int(input())
m=1
p=0
while m<=9:
  if n%m==0:
    m=m+1
    p=p+1
if p==2:
  print('Yes')
else:
  print('No')

Submission status: Time Limit Exceeded

Solution code:
n=int(input())
m=1
p=0
while m<=9:
  if n%m==0:
    m=m+1
    p=p+1
    if p==2:
      print('Yes')
    else:
      print('No')

Submission status: Time Limit Exceeded

Solution code:
n=int(input())
m=1
p=0
while m<=9:
  if n%m==0:
    n==n//m
    m=m+1
    p=p+1
    if p==2:
      print('Yes')
    else:
      print('No')

Submission status: Time Limit Exceeded

Solution code:
s = int(input())
i = 9
flag = True
while i >= 1:
    if s % i == 0 and s / i <=9:
        print("Yes")
        flag = False
        break
if flag:
    print("No")

Submission status: Time Limit Exceeded

Solution code:
N = int(input())
count =0
t = True
for i in range(1, 10):
    if  N % i == 0:
        A = N/i
        if 1 <= A <= 9:
            while(t): 
                for a in range(1, 10):
                    if a != i :
                        if A % a == 0:
                            print('Yes')
                            count += 1
                            t = False
                            break
                    break
if  count != 1:
    print('No')

Submission status: Time Limit Exceeded

Solution code:
N = int(input())
count =0
t = True
for i in range(1, 10):
    if  N % i == 0:
        A = N/i
        if 1 <= A <= 9:
            while(t): 
                for a in range(1, 10):
                    if a != i :
                        if A % a == 0:
                            print('Yes')
                            count += 1
                            t = False
                            break
if  count != 1:
    print('No')

Submission status: Time Limit Exceeded

Solution code:
n = int(input())
list = list(range(9, 1, -1))
ans = 0
flag = 1

if n > 1:
    while n > 1:
        for i in list:
            if n % i == 0:
                n = n / i
                ans += 1
                flag = 0
                break

        if flag == 1:
            ans = 0
            break
elif n == 1:
    ans = 2

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

Submission status: Time Limit Exceeded

Solution code:
n = int(input())
list = list(range(9, 1, -1))
ans = 0

while n > 1:
    for i in list:
        if n % i == 0:
            n = n / i
            ans += 1
            break

if ans > 2:
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

if __name__ == "__main__":
    resolve()

Submission status: Accepted

Solution code:
N = int(input())
L = [x * y for x in range(1, 10) for y in range(1, 10)]

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
n = int(input())

table = [1, 2, 3, 4, 5, 6, 7, 8, 9]
flag = False

for a in range(1, 10):
  b = n / a
  if(b in table):
    flag = True
    break

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

N = int(input())

result = []

for i in range(1,9+1):
    if N % i == 0 and N // i < 10:
        result.append(i)

import math
if len(result) == 0:
    print('No')

else:
    print('Yes')

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    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:
num = int(input())

range_num = [1, 2, 3, 4, 5, 6, 7, 8, 9]
for _ in range_num:
    if num / _ in range_num:
        print("Yes")
        break
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
'''
問題：
    高橋君は九九を覚えたので、1 以上 9 以下の 2 つの整数の積を計算することができます。

    整数 N が与えられるので、N を 1 以上 9 以下の 2 つの整数の積として表すことができるか判定し、
    できるなら Yes を、できないなら No を出力して下さい。
'''

'''
制約：
    1 ≦ N ≦ 100
    Nは整数である
'''

def abc144b(n: int)-> str:
    for i in range(1, 9 + 1):
        if n % i == 0 and 0 < n // i < 10:
            return 'Yes'
    return 'No'

n = int(input())
print(abc144b(n))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())

l=list((v*h) for h in range(1,10) for v in range(1,10))

if n in l:
    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:
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:
# 因数分解して、入れ子で掛け算して、inで入ってるか見る

N = int(input())

nums = []
mul = []

for i in range(1, 9 + 1):
    if N % i == 0:
        nums.append(i)
    else:
        pass

# print(nums)


for i in nums:
    for j in nums:
        mul.append(i * j)

# print(mul)


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

Submission status: Accepted

Solution code:
n = int(input())

def binary_search(l, target):
    left = 0
    right = len(l)
    while left<right:
        mid = (left+right)//2

        if target == l[mid]:
            return True
        elif target < l[mid]:
            right = mid
        else:
            left = mid+1

    return False

seki = [i*j for i in range(1, 10) for j in range(1, 10)]
seki.sort()

if binary_search(seki, n):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
def atc_144b(input_value: int) -> str:
    for i in range(1, 9 + 1):
        if input_value % i == 0 and input_value / i <= 9:
            return "Yes"
    return "No"


input_value = int(input())
print(atc_144b(input_value))

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())
S = []

for i in range(1, 10):
  for j in range(1, 10):
    S.append(i*j)
    
if N in S:
  print("Yes")

else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
f = False
for i in range(1,10):
    if a % i == 0 and a/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(1, 10):
    if N % i == 0:
        if 1 <= N/i <= 9:
            print('Yes')
            sys.exit(0)
        else:
            continue

print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=int(input())

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

print("Yes" if N in l else "No")

Submission status: Accepted

Solution code:
n = int(input())
product_list = list()

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

if n in product_list:
    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())

for a in range(1, 10): 
	b = n // a
	if a * b == n and b >= 1 and b < 10:
		print("Yes")
		quit()

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())
if n > 81:
    print("No")
else:
    for i in range(9):
        if n % (i+1) == 0 and 1 <= n/(i+1) <= 9:
            print("Yes")
            exit()
    print("No")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
flag = False
for x in (range(1,10)):
    for y in (range(1,10)):
        if x * y == n:
            flag = True
    else:
        continue
    break
    

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

Submission status: Accepted

Solution code:
# Nを１位上９以下の2つの整数の積として表せるならYes,できないならNo
N = int(input())

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

Submission status: Accepted

Solution code:
kuku = []
for i in range(1,10):
    for j in range(1,10):
        if i * j not in kuku:
            kuku.append(i*j)
n = int(input())
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())

productos = []

def mult(N):
    for i in range(1,10):
        for n in range(1,10):

            calc = n * i
            productos.append(calc)

    if N in productos:
        print("Yes")
    else:
        print("No")
mult(N)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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
readline = sys.stdin.readline
sys.setrecursionlimit(10**8)
mod = 10**9+7
#mod = 998244353
INF = 10**18
eps = 10**-7

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(1,10):
    for j in range(1,10):
        li.append(i*j)
        
if n in li:
    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) in range(1,10)):
    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(0)

print("No")

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
n = int(input())
s = {1}

for i in range(1, 10):
    for k in range(1, 10):
        s.add(i * k)

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

Submission status: Accepted

Solution code:
N = int(input())


for i in range(10):
    if i==0:
        continue
    else:
        i_pair = N / i
        if N % i == 0 and i_pair < 10:
            print("Yes")
            exit()
            
            
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 N == i*j:
      print('Yes')
      sys.exit()
else:
  print('No')

Submission status: Accepted

Solution code:
ans = 'No'
n = int(input())
for i in range(1,n+1):
    if n%i == 0:
        if max(i,n/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 in range(1, 10):
    print("Yes")
    exit()
print("No")

Submission status: Accepted

Solution code:
N = int(input())

count = 0

for i in range(1,10):
    if (N/i).is_integer() == True and N/i < 10 :
        count += 1

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
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:
n = int(input())
cnt = 0

for i in range(1, 10):
    if len(str(n//i)) == 1 and n%i == 0:
        cnt +=1

if cnt >= 1:
    print('Yes')
else :
    print('No')

Submission status: Accepted

Solution code:
N = int(input())

ans = 'No'
for i in range(1, 9+1):
    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):
    for j in range(i,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 i*j==N:
            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):
    if N % i == 0 and N / i <= 9:
        ans = True

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
n = int(input())
a = 0
for x in range(1, 9 + 1):
    for y in range(1, 9 + 1):
        if x * y == n:
            a = True

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

print('No')

Submission status: Accepted

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

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

        if N == i * j:
            s = 1
if s == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

multiplication = []
for x in range(1, 10):
    for y in range(1, 10):
        multiplication.append(x*y)

if N in multiplication:
    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):
    ij = i * j
    
    if n == ij:
      flag = True
      
if flag:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
integer = int(input())
for i in range(9):
    for j in range(9):
        if (i + 1) * (j + 1) == integer:
            print('Yes')
            exit()
print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

a = False

for x in  range(1,10):
  for y in range(1,10):
    if x*y == n:
      print("Yes")
      a = True
      break
  if a:
    break

else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
n = int(input())
num = [1, 2, 3, 4, 5, 6, 7, 8, 9]
ans = 'No'
for i in range(len(num)):
  for s in range(len(num)):
    if num[i] * num[s] == n:
      ans = 'Yes'
      break
print(ans)

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:
# B - 81
# https://atcoder.jp/contests/abc144/tasks/abc144_b

n = int(input())

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

print(result)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
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")