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:
QQ =[]

for i in range(10):
    for j in range(10):
        if i*j not in QQ:
            QQ.append(i*j)
        else:
            pass

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from itertools import product

N = int(input())

for a, b in product(range(1, 9 + 1), repeat=2):
    if N == a * b:
        print('Yes')
        break
else:
    print('No')

Submission status: Accepted

Solution code:
N=int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=int(input())
for i in range(9):
    for r in range(9):
        if (i+1)*(r+1)==N:
            print("Yes")
            exit()

print("No")

Submission status: Accepted

Solution code:
from sys import exit

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):
    m=n/i
    if m.is_integer() and 1<=m<=9:
        print("Yes")
        break
else:
    print("No")

Submission status: Accepted

Solution code:
def judge(n):
    for i in range(1,10):
        for j in range(1,10):
            if i*j == n:
                return True
    return False


N = int(input())

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

Submission status: Accepted

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

for i in range(1,10):
    if 0 < (N/i) < 10 and (N/i).is_integer():
        FLG = True
        break

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

Submission status: Accepted

Solution code:
n=int(input())
k=0
for i in range(1,10):
  checklist=set()
  checklist.add(n//i)
  if checklist.issubset({1,2,3,4,5,6,7,8,9}) and n%i==0:
      k=k+1
if k!=0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
import copy
from queue import Queue
import heapq
import numpy as np

MOD = 5000000007

n = int(input())
#b = int(input())
#n, m = [int(i) for i in input().split()]
#table = [[int(i)  for i in input().split()] for j in range(m)]
#table = [list(input()) for n in range(r)] #table[h][w]
#p = [int(i) for i in input().split()]
#s = [int(i) for i in range(n)]
#p = [int(input()) for i in range(m)]
#s = input()

#list = list(s)
#dp = [MOD for _ in range(m)]
#dp = [[0 for _ in range(n+1)] for _ in range(n+1)]
#dp = [[[0 for _ in range(11)] for _ in range(2)] for _ in range(11)]

#a = [[0 for _ in range(n+1)] for _ in range(n+1)]
#b = [[0 for _ in range(n+1)] for _ in range(n+1)]

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

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

Submission status: Accepted

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

for a in range(10):
  for b in range(10):
    if a*b == n:
      ans += 1

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

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 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())
flg = False
for i in range(1, 10):
    for j in range(1, 10):
        if i * j == n:
            print("Yes")
            flg = True
            break
        else:
            continue
    if flg == True:
        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())
A = []
for i in range(1,10,1):
    for j in range(i,10,1):
        A.append(i*j)

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

Submission status: Accepted

Solution code:
n=int(input())

for i in range(9):
  a=i+1
  if n%a==0 and n//a>=1 and n//a<=9:
    print('Yes')
    break
else:
  print('No')

Submission status: Accepted

Solution code:
N = int(input())
s = list(range(1, 10))

for i in s:
    if N%i == 0 and int(N/i) in s:
        print('Yes')
        break
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):
        if i*j==n:
            count=1
            break
    else:
        continue
print("Yes"if count==1 else"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")
  exit()
else:
  print("No")
  exit()

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

Submission status: Accepted

Solution code:
x=int(input())
n=9
a=[]
for ii in range(n):
  for jj in range(n):
    a.append((ii+1)*(jj+1))
a=list(set(a))
if x in a:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
x=int(input())
n=9
a=[]
for ii in range(n):
  for jj in range(n):
    a.append((ii+1)*(jj+1))
if x in a:
  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:
#!/usr/bin/env python3

n = int(input())

for b in range(1, 10):
    a = n//b

    if a*b == n:
        if a <= 9 and b <= 9:
            print("Yes")
            exit()
print("No")

Submission status: Accepted

Solution code:
import sys

n=int(input())
num=[]

for i in range(1,10):
  if n%i==0:
    num.append(i)
    
for i in num:
  for j in num:
    if i*j==n:
      print("Yes")
      sys.exit()
      

print("No")

Submission status: Accepted

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

for i in range(1,10):
  if N/i==int(N/i):
    if N/i<=9:
      print("Yes")
      sys.exit()
print("No")

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
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(0)
print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = int(input())
ans = 0
for l in range(1,10):
	for j in range(1,10):
		if l * j == i:
			ans += 1
if ans > 0:
	print("Yes")
if ans == 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:
import math
import time
from collections import defaultdict, deque
from sys import stdin, stdout
from bisect import bisect_left, bisect_right
n=int(input())
poss=False
for i in range(1,10):
    for j in range(i,10):
        if(i*j==n):
            poss=True
            break
if(poss):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
N=int(input())

i=1
j=1
while i<10:
    j=0
    while j<10:
        #print(j)
        if j*i==N:
            print("Yes")
            quit()
        j+=1
    i+=1
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")
            quit()
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
    break
print('Yes' if a==1 else 'No')

Submission status: Accepted

Solution code:

n = int(input())
ans = False
for a in range(1,10):
    for b in range(1,10):
        if n == a*b:
            ans=True
            break

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# input
N = int(input())

# check
kuku = list(
    set(
        [
            m * n
            for m in range(1, 10, 1)
            for n in range(1, 10, 1)
        ]
    )
)

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 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 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(0)
print("No")

Submission status: Accepted

Solution code:
n = int(input())

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

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

Submission status: Accepted

Solution code:
n = int(input());

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
lst = []

for i in range(10):
    for j in range(10):
        lst.append(i*j)

if N in lst:
    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>=1 and n/i<=9:
      print("Yes")
      break
else:
  print("No")

Submission status: Accepted

Solution code:
N = int(input())
kuku =[]

for a in range(9):
  for b in range(9):
    c = (a+1)*(b+1)
    kuku.append(c)
if N in kuku:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
for i in range(10):
    for s in range (10):
        result=i*s
        if n==result:
            print('Yes')
            exit()
        elif result<81:
            continue
        else:
            print('No')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input()
a = int(x)
counter = 0

for i in range(10):
  for j in range(10):
    if i*j == a:
      counter +=1

if counter != 0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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


func2(int(input()))

Submission status: Accepted

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

func(int(input()))

Submission status: Accepted

Solution code:
import sys, math
input = sys.stdin.readline
rs = lambda: input().strip()
ri = lambda: int(input())
rl = lambda: list(map(int, input().split()))
mod = 10**9 + 7

N = ri()

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

Submission status: Accepted

Solution code:
n=int(input())
def c():
    for i in range(1,10):
        for s in range(1,10):
            if i*s==n:
                print("Yes")
                return
    print("No")
c()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=int(input())

r=0
for i in range(9,0,-1):
  if N%i==0:
    r=N//i
    if len(str(r))==1:
      print("Yes")
      exit()
    else:
      r=0
if r==0:
  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())
l = 0
for i in range(1,10):
    for j in range(1,10):
        if i * j == n:
            l += 1
            break
        if l != 0:
            break
            
if l == 0:
    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(10):
    for j in range(10):
        if i * j == N:
            print('Yes')
            exit()

print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())

is_find = False

if n > 81:
    print('No')
else:
    for i in range(9):
        for j in range(9):
            if (i+1)*(j+1) == n:
                is_find = True
                break
        if is_find:
            break
    if is_find:
        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())

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

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

Submission status: Accepted

Solution code:
# B - 81
def main():
    n = int(input())
    for i in reversed(range(1,10)):
        if n % i == 0:
            if n / i >= 10:
                print('No')
            else:
                print('Yes')
            break


if __name__ == "__main__":
    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:
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())
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:
a = input()
all_list = []
for i in range(1, 10):
    for j in range(1, 10):
        all_list.append(int(i * j))

if int(a) in all_list:
    print('Yes',end='')
else:
    print('No',end='')

Submission status: Accepted

Solution code:
import fileinput

n = int(input())

a = False

for i in range(1, 10):
    for j in range (1, 10):
        if i * j == n:
            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:
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())
def cal(n):
    p = []
    for i in range(1,int(n**0.5)+1):
        if n%i == 0:
            p.append([i,n//i])
    return p
a = cal(n)
t = 1
for i in range(len(a)):
    if 1 <= a[i][0] <= 9 and 1 <= a[i][1] <= 9:
        t = 0
        print('Yes')
        break
if t == 1:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
N=int(input())

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

print(ans)

Submission status: Accepted

Solution code:
from collections import defaultdict, deque, Counter
from heapq import heappush, heappop
from itertools import permutations, accumulate, combinations, combinations_with_replacement
from math import sqrt, ceil, floor, factorial
from bisect import bisect_left, bisect_right
from copy import deepcopy
from operator import itemgetter
from functools import reduce
#from fractions import gcd
#from math import gcd
import sys
def I(): return int(input())
def Is(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def TI(): return tuple(map(int, input().split()))
def IR(n): return [I() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def TIR(n): return [TI() for _ in range(n)]
def S(): return input()
def Ss(): return input().split()
def LS(): return list(input())
def SR(n): return [S() for _ in range(n)]
def SsR(n): return [Ss() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
sys.setrecursionlimit(10**6)
MOD = 10**9+7
INF = float('inf')


n = I()
li = [a*b for a in range(1,10) for b in range(1, 10)]
if n in li:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

seisu = []

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

#含まれるかどうかだけなら 以下の文で判定可能

if N in seisu:
    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()
        else:
            pass
print("No")

Submission status: Accepted

Solution code:
n = int(input())

q = 0

for i in range(10):
    for s in range(10):
        if i*s == n:
            q = 1
            print("Yes")
            break
    if q == 1:
        break
if q == 0:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
# B - 81

N = int(input())
ans = 'No'
for i in range(10):
    for j in range(10):
        if i * j == N:
            ans = 'Yes'

print(ans)

Submission status: Accepted

Solution code:
import sys

n = int(input())

for i in range(9):
  if(n / (i + 1) == n//(i + 1) and len(str(n // (i + 1))) == 1):
    print('Yes')
    sys.exit()

print('No')

Submission status: Accepted

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

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

if flag == True:
    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)
print("Yes" if n in list else "No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
if (a <= 10):
    print("Yes")
elif(a==12)or(a==14)or(a==15)or(a==16)or(a==18)or(a==20):
    print("Yes")
elif(a==21)or(a==24)or(a==25)or(a==27)or(a==30):
    print("Yes")
elif(a==32)or(a==35)or(a==36)or(a==40):
    print("Yes")
elif(a==40)or(a==42)or(a==45)or(a==49):
    print("Yes")
elif(a==54)or(a==56):
    print("Yes")
elif(a==63)or(a==64):
    print("Yes")
elif(a==72):
    print("Yes")
elif(a==81):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

    for i in range(1,10):
        tmp, mod = divmod(n, i)
        if mod == 0 and tmp < 10:
            print('Yes')
            exit()
    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 int(i*j)==n:
      print('Yes')
      exit()
print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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


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

kuku = [0]*81
c = 0
for i in range(1,10):
    for j in range(1,10):
        kuku[c] = i*j
        c += 1

print("Yes" if n in kuku else "No")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

import sys

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

    for i1 in range(1, 10):
        for i2 in range(1,10):
            if n == i1 * i2:
                print('Yes')
                sys.exit()
    else:
        print('No')

if __name__ == '__main__':
    main()

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())
L=[1,2,3,4,5,6,7,8,9,10,12,14,16,18,15,21,24,27,20,28,32,36,25,30,35,40,45,42,48,54,49,56,63,64,72,81]
if N in L:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

flag=0

Ans_List=[]    
for i in range(1,10):
    if N%i==0:
        Ans_List.append(N//i)

for i in Ans_List:
    if refer_List.count(i)!=0:
        flag=1
        break
    
print("Yes" if flag==1 else "No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = [a*b for a in range(10) for b in range(10)]
n = int(input())
if n in A:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
N = int(input())

answer = "No"

for i in range(1, 10):
  should_break = False
  for j in range(1, 10):
    if(i * j == N):
      answer = "Yes"
      should_break = True
      break

  if(should_break):
    break

print(answer)

Submission status: Accepted

Solution code:
N = int(input())

answer = "No"

for i in range(1, 10):
  should_break = False
  for j in range(1, 10):
    if(i * j == N):
      answer = "Yes"
      break

  if(should_break):
    break

print(answer)

Submission status: Accepted

Solution code:
N = int(input())

answer = "No"

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

print(answer)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input = int(input())
list = []

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

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

Submission status: Accepted

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

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