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:
import math

N = int(input())
lis = list(range(1, 10))
start_idx = 0
found = False
for start_idx in range(len(lis)):
    if found:
        break
    idx = start_idx
    for idx in range(len(lis)):
        if lis[start_idx] * lis[idx] == N:
            found = True
if found:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import math

N = int(input())
lis = list(range(1, 10))
start_idx = 0
found = False
while start_idx < len(lis):
    if found:
        break
    idx = start_idx
    for idx in range(len(lis)):
        if lis[start_idx] * lis[idx] == N:
            found = True
    start_idx += 1
if found:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = int(input())

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

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

Submission status: Accepted

Solution code:
n = int(input())

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

print(ans)

Submission status: Accepted

Solution code:
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())
a=0
b=0
for a in range(1,10):
            for b in range(1,10):
                        if n==a*b:
                                    print('Yes')
                                    exit()
else:
            print('No')

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**6)
from math import floor,ceil,sqrt,factorial,log
from heapq import heappop, heappush, heappushpop
from collections import Counter,defaultdict,deque
from itertools import accumulate,permutations,combinations,product,combinations_with_replacement
from bisect import bisect_left,bisect_right
from copy import deepcopy
from operator import itemgetter
from fractions import gcd
mod = 10 ** 9 + 7
inf = float('inf')
ninf = -float('inf')
 
#整数input
def ii(): return int(sys.stdin.readline().rstrip()) #int(input())
def mii(): return map(int,sys.stdin.readline().rstrip().split())
def limii(): return list(mii()) #list(map(int,input().split()))
def lin(n:int): return [ii() for _ in range(n)]
def llint(n: int): return [limii() for _ in range(n)]
#文字列input
def ss(): return sys.stdin.readline().rstrip() #input()
def mss(): return sys.stdin.readline().rstrip().split()
def limss(): return list(mss()) #list(input().split())
def lst(n:int): return [ss() for _ in range(n)]
def llstr(n: int): return [limss() for _ in range(n)]

#本当に貪欲法か？ DP法では？？
#本当に貪欲法か？ DP法では？？
#本当に貪欲法か？ DP法では？？

n=ii()
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())
boo=False
for i in range(1,10):
  for j in range(1,10):
    if i*j==N:
      boo=True
      break
if boo==True:
  print("Yes")
else:
  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 n == i * j:
                print("Yes")
                return
    print("No")


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
flag=0
for i in range(9):
	for j in range(9):
		if (i+1)*(j+1)==n :
			flag=1

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

Submission status: Accepted

Solution code:
list = []

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

N = int(input())

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

Submission status: Accepted

Solution code:
num = int(input())

a = "No"

for i in range(1,10):
  if num%i == 0:
    num_0 = num//i
    if 0<num_0<10:
      a = "Yes"

print(a)

Submission status: Accepted

Solution code:
n = int(input())
a = list(range(1, 10))

no = True
for x in a:
    if n/x in a:
        print("Yes")
        no = False
        break

if no: print("No")

Submission status: Accepted

Solution code:
a=int(input())
def main():
    while True:
        for i in range(1,10):
            if a%i==0 and 1<=a//i<=9:
                return 'Yes'
                break
        return 'No'

print(main())

Submission status: Accepted

Solution code:
list = []

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

N = int(input())

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

Submission status: Accepted

Solution code:
N = int(input())
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 k in range (1,10):
        if i*k == 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())
c = 0
x = 0
y = 0

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
#sys.setrecursionlimit(150000)

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


def solve(N: int):
    ans=NO
    for i in range(1,10):
        if N%i==0 and N//i<10:
            ans=YES
            break
    print(ans)
    return


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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

can = False
for i, x in enumerate(range(1, 10)):
    for y in range(i+1, 10):
        if x * y == n:
            can = True
            break
    if can:
        break

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

Submission status: Accepted

Solution code:
N = int(input())

flag =0

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

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

Submission status: Accepted

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

for ii in range(1,10):
    for jj in range(1,10):

        if n == ii * jj:
            print("Yes")
            sys.exit()

print("No")

Submission status: Accepted

Solution code:
N=int(input())
if N%2==0 and N/2<10:
    print('Yes')
elif N%3==0 and N/3<10:
    print('Yes')
elif N%4==0 and N/4<10:
    print('Yes')
elif N%5==0 and N/5<10:
    print('Yes')
elif N%6==0 and N/6<10:
    print('Yes')
elif N%7==0 and N/7<10:
    print('Yes')
elif N%8==0 and N/8<10:
    print('Yes')
elif N%9==0 and N/9<10:
    print('Yes')
elif N==1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:


N = int(input())

se = set(x*y for x in range(1,10) for y in range(1,10))

answer = 'Yes' if N in se else 'No'
print(answer)

Submission status: Accepted

Solution code:
import sys
n=int(input())
if n<=81:
  for i in range(1,10):
    if n%i==0:
      if 1<=n//i<=9:
        print('Yes')
        sys.exit()
  print('No')
else:
  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
    print("No")
    return


if __name__ == "__main__":
    main()

Submission status: Accepted

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

a = list(range(1,10))
b = list(range(1,10))

for i in a:
  for j in b:
    if i*j == n:
      print('Yes')
      sys.exit()
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(0)
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()
else:
  print('No')

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n = int(input())
dplist = [0]*81
k = 0
for i in range(1,10):
    for j in range(1,10):
        dplist[k] = i*j
        k += 1
if n in dplist:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:

n = int(input())
status = 0

for i in range(1,10):
    if n % i == 0 and 1 <= n/i <= 9:
        status = 1
#        print(i)
#        print(n/i)
        break
    else:
        pass


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

Submission status: Accepted

Solution code:
MultiTable={}
for i in range(1,10):
    for j in range(1,10):
        MultiTable[i*j]="ANS"
n=int(input())
if n in MultiTable:
    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")
        break
else:
    print("No")

Submission status: Accepted

Solution code:
n=int(input())

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

Submission status: Accepted

Solution code:
n = int(input())
result = "No"

for i in range(1,10):
    if n % i == 0:
        a = n / i
        
        if a in range(1,10):
            result = "Yes"
            break
    else:
        next
print(result)

Submission status: Accepted

Solution code:
target = int(input())
rest = 0
for i in range(1, int(target/2)+2):
    if target % i == 0:
        rest = target / i
    if i < 10 and rest < 10:
        print("Yes")
        exit(0)
 
print("No")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
def main():
    N = int(input())
    for i in range(1,10):
        if (N % i)==0 and (N / i)<10:
            print('Yes')
            return
    print('No')

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
#
# 　　  ⋀_⋀　 
#　　  (･ω･)  
# .／ Ｕ ∽ Ｕ＼
#  │＊　合　＊│
#  │＊　格　＊│ 
#  │＊　祈　＊│ 
#  │＊　願　＊│ 
#  │＊　　　＊│ 
#      ￣
#
import sys
sys.setrecursionlimit(10**6)
input=sys.stdin.readline
from math import floor,sqrt,factorial,hypot,log #log2ないｙｐ
from heapq import heappop, heappush, heappushpop
from collections import Counter,defaultdict,deque
from itertools import accumulate,permutations,combinations,product,combinations_with_replacement
from bisect import bisect_left,bisect_right
from copy import deepcopy
from fractions import gcd
from random import randint
def ceil(a,b): return (a+b-1)//b
inf=float('inf')
mod = 10**9+7
def pprint(*A): 
    for a in A:     print(*a,sep='\n')
def INT_(n): return int(n)-1
def MI(): return map(int,input().split())
def MF(): return map(float, input().split())
def MI_(): return map(INT_,input().split())
def LI(): return list(MI())
def LI_(): return [int(x) - 1 for x in input().split()]
def LF(): return list(MF())
def LIN(n:int): return [I() for _ in range(n)]
def LLIN(n: int): return [LI() for _ in range(n)]
def LLIN_(n: int): return [LI_() for _ in range(n)]
def LLI(): return [list(map(int, l.split() )) for l in input()]
def I(): return int(input())
def F(): return float(input())
def ST(): return input().replace('\n', '')
def main():
    N=I()
    for i in range(10):
        for j in range(10):
            if i*j==N:
                print("Yes")
                return 
    print("No")
if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == '__main__':
    main()

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

Submission status: Accepted

Solution code:
N = int(input())

ans = 100

for i in range(9, 0, -1) :
  if N % i == 0 :
    ans = N // i
    break

if ans < 10 :
  print('Yes')
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 i*j==n:
      flag=True
if flag==True:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

kuku = False
for i in range(1, 10):
    if n % i == 0 and n <= i * 9:
        kuku = True
        break
print('Yes' if kuku else 'No')

Submission status: Accepted

Solution code:
def main():
    N = int(input())
    result = 'No'
    for i in range(9, 0, -1):
        if N % i == 0 and len(str(N // i)) == 1:
            result = 'Yes'
            break
    print(result)


if __name__ == '__main__':
    main()

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:
A=[1,2,3,4,5,6,7,8,9]
B=[1,2,3,4,5,6,7,8,9]
C=[]

N=int(input())
for a in A:
    X=N/a
    C.append(X)

for b in B:
    if b in C :
        print("Yes")
        break
    
    if (b==9) and (not b in C):
        print("No")

Submission status: Accepted

Solution code:
#python3
def f(x):
    f = False
    for i in range(1, 10):
        if x%i == 0:
            k = x//i
            if 1<=k & k<=9:
               f = True 
    return f

def main():
    n = int(input())
    if f(n):
        print('Yes')
    else:
        print('No')

main()

Submission status: Accepted

Solution code:
n = int(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

print("Yes" if n 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())

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

    if flag:
        break

if not flag:
    print("No")

Submission status: Accepted

Solution code:
N=int(input())

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

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=int(input());
flag=0
for i in range(1,10):
  if N//i<10 and N%i==0:
    flag=1
print(['No','Yes'][flag])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# https://atcoder.jp/contests/abc144/tasks/abc144_b

n = int(input())
print("Yes" if n in [x * y for x in range(1, 10)
                           for y in range(1, 10)] else "No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

import sys

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


def main():
    N = int(input())
    result = 'No'
    for i in range(1, 10):
        if (N / i).is_integer()and (N / i) < 10:
            result = 'Yes'
            break
    print(result)


if __name__ == "__main__":
    main()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

func(N)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

for a in range(1, 10):

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

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("Yes")
            sys.exit()
print("No")

Submission status: Accepted

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

Submission status: Accepted

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

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

if __name__=='__main__':
  main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=int(input())
count=0
for i in range(9):
  if N%(i+1)==0:
    ans=N//(i+1)
    if ans<10 and ans>0:
      print("Yes")
      break
    else :
      count+=1
  else :
    count+=1
if count==9:
  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(9):
    if N%(i+1)==0 and N/(i+1)<=9:
        print('Yes')
        break
else:
    print('No')

Submission status: Accepted

Solution code:
n=int(input())

for i in (1,2,3,4,5,6,7,8,9):
  for j in (1,2,3,4,5,6,7,8,9):
    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:
            continue
        if i*j == n:
            print("Yes")
            quit()
print("No")

Submission status: Accepted

Solution code:
import math 
N = int(input())
rootN = math.ceil(math.sqrt(N))
yakusuu = []
for i in range(1,rootN+1):
    if N % i == 0:
        yakusuu.append(i)

hitoketaFLG = 0
for j in yakusuu:
    if len(str(int(N / j))) == 1:
        hitoketaFLG = 1
print('Yes' if hitoketaFLG == 1 else 'No')

Submission status: Accepted

Solution code:
def main(n):
    for i in range(1,10):
        x,y = divmod(n, i)
        if y == 0 and (0 < x and x < 10):
            return True
    return False

n = int(input())
print("Yes" if main(n) else "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) == 1 :
            print("Yes")
            exit()
print("No")

Submission status: Accepted

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

print(ans)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

n = int(input())

for i in range(1,10):
  x = n/i
  y = n%i

  if y != 0:
      continue

  if 1<=x<=9:
      print("Yes")
      sys.exit()

print("No")

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
def generate_table():
    table = []
    for i in range(1, 10):
        for j in range(1, 10):
            table += [i*j]
    return table
t = generate_table()
a = int(input())
if a in t:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = int(input())
judge = []
for i in range(9):
    for j in range(9):
        judge.append((i+1)*(j+1))
if n in judge:
    print('Yes')
else:
    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())
frag = False

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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
n=int(input())

l=[]

for i in range(1,10):
    for j in range(1,10):
        l.append(i*j)
if n in l:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

y = []

for i in A:
    for j in B:
        if i*j == N:
            y.append('yes')
if y == []:
    print('No')     
else:
    print('Yes')

Submission status: Accepted

Solution code:
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def IS(): return sys.stdin.readline()[:-1]
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LI1(): return list(map(int1, sys.stdin.readline().split()))
def LII(rows_number): return [II() for _ in range(rows_number)]
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def LLI1(rows_number): return [LI1() for _ in range(rows_number)]

def main():
	N = II()
	l = [False]*101
	for i in range(1,10):
		for j in range(1,10):
			l[i*j] = True
	if(l[N]):print("Yes")
	else:print('No')



main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

sw = 0
for i in range(1, 10):
    for j in range(1, 10):
        if i * j == n:
            sw = 1

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

Submission status: Accepted

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

for i in range(1,10):
    if n % i==0 and n//i < 10:
        num.append(i)
if len(num) > 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

N = INT()

def is_integer_num(n):
    if isinstance(n, int):
        return True
    if isinstance(n, float):
        return n.is_integer()
    return False

for i in reversed(range(1, 10)):
 	if is_integer_num(N/i) and N/i < 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 i*j==N:
            print("Yes")
            sys.exit()
print("No")

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
N=int(input())

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

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

Submission status: Accepted

Solution code:
n = float(input())
print('Yes' if any([n/i in range(1, 10) and (n/i).is_integer() for i in range(1, 10)]) else 'No')

Submission status: Accepted

Solution code:
N = int(input())

for i in range(1, 10)[::-1]:
    if N%i==0:
        break

print("Yes" if 1<=i<=9 and 1<=N//i<=9 else "No")

Submission status: Accepted

Solution code:
import numpy as np
n = int(input())
a = np.array(range(9)) + 1
all = np.outer(a, a)
if np.any(all == n):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
s = {x*y for x in range(1, 10) for y in range(1, 10)}

print("Yes" if int(input()) in s 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")
        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 < 10:
        print('Yes')
        exit()
print('No')