Problem:


Score : 200 points

Problem Statement

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

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

Constraints

1 \leq N \leq 100

N is an integer.

Input

Input is given from Standard Input in the following format:

N

Output

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

Sample Input 1

10

Sample Output 1

Yes

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

Sample Input 2

50

Sample Output 2

No

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

Sample Input 3

81

Sample Output 3

Yes



Sample input:
10


Sample output:
Yes

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
print("Yes" if any(n == x * y for x in range(1, 10) for y in range(1, 10)) 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
    else:
        continue
    break
print(ans)

Submission status: Accepted

Solution code:
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


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

    print('No')
    return


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

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
print('Yes' if ans else 'No')

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

for i in range(9):
  a = N // (i + 1)
  if N==a * (i + 1) and 1<=a and a<=9:
    print('Yes')
    break
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(2, 10):
  if N % i == 0:
    if 1 <= N // i < 10:
      ans = True
      break;
  elif N == 1:
    ans = True
    break;
    
if ans:
  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')
                exit()
    else:
        print('No')
         
if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
N=int(input())

for i in range(1,10):
    a=N//i
    if a*i==N and a<=9:
        print('Yes')
        exit()
    else:
        pass

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

Submission status: Accepted

Solution code:
###<ABC.144>
###<A>ac(2)
##a,b = map(int,input().split())
##if a < 10 and b < 10:
##    print(a * b)
##else:
##    print(-1)

#<B>
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    #インタプリタや実行環境に関する情報を扱うためのライブラリ
import os     #フォルダやファイルを操作
import math

#標準入力
n = int(input())
#a = list(map(int, input().split()))

#mapはmap(function, iterable)のように使うが、扱いづらいのでlistと併用すべき
#lista = list(map(int, str.split()))

ans="No"

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


print(ans)

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:
N=int(input())
for i in range(1,10):
    for j in range(1,10):
        if N==i*j:
            print("Yes")
            exit(0)
print("No")

Submission status: Accepted

Solution code:
#-*- coding=utf-8 -*-
N=int(input())
c=0
for i in range(1,10):
  for m in range(1,10):
    if N==i*m:
      c+=1
if c==0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
flag = 0
for i in range(1,10):
    for j in range(1,10):
        if i * j == N:
            flag = 1

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

Submission status: Accepted

Solution code:
n=int(input())
num1=[1,2,3,4,5,6,7,8,9]
num2=[1,2,3,4,5,6,7,8,9]
for l in num1:
    for m in num2:
        if n==l*m:
            print("Yes")
            exit()
print("No")

Submission status: Accepted

Solution code:
n=int(input())
ln=[1,2,3,4,5,6,7,8,9]
ls=[]
for i in ln:
  for j in ln:
    ls.append(i*j)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

  if n > 81: 
    print("No")
    return 0

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
list=[1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9]
def pair(parameter):
        pairedList = []
        for iterater1 in range(len(parameter)):
                for iterater2 in range(iterater1+1,len(parameter)):
                        pairedList.append([parameter[iterater1],parameter[iterater2]])
        return pairedList

pairings = pair(list)
count=0
mul=[]
for i in pairings:
    x=i[0]*i[1]
    mul.append(x)
if n in mul:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
f = False
for i in range(1, 10):
    a, b = divmod(n, i)
    if ( 1 <= a <= 9 ) and b == 0:
        f = True
        break        

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

Submission status: Accepted

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

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

if mp == False:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
n = int(input())

for idx1 in range(1, 10):
    for idx2 in range(1, 10):
        if idx1 * idx2 == 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())
flag = True
for i in range (1,10):
  for j in range (1,10):
    if i*j == N:
      print("Yes")
      flag = False
      break
  if flag == False:
    break
if flag:
  print("No")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys

def I(): return int(sys.stdin.readline().rstrip())

N = I()

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

print('No')

Submission status: Accepted

Solution code:
import sys

sys.setrecursionlimit(10**7)
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))  #空白あり
def LI2(): return list(map(int,sys.stdin.readline().rstrip()))  #空白なし
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())  #空白あり
def LS2(): return list(sys.stdin.readline().rstrip())  #空白なし

N = I()

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:
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())
ans = 0

if n >= 82:
    print("No")
else:
    for i in range(1 , 10):
        ans = n // i
        if n == ans*i and ans <= 9:
            print("Yes")
            break
        elif i == 9:
            print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=int(input())
ls1=[1,2,3,4,5,6,7,8,9]
empty=[]
for i in ls1:
    for j in ls1:
        empty.append(i*j)
print('Yes' if N in empty else 'No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def is_product_of_two_number(n):
    for i in range(1, 10):
        for j in range(1, 10):
            if i * j == n:
                return 'Yes'
    return 'No'

N = int(input())
result = is_product_of_two_number(N)
print(result)

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
n = int(input())
def ok(x):
    for i in range(1,10):
        for j in range(1,10):
            if i*j==x:
                return True
                break

if ok(n)==True:
    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'
      break
print(ans)

Submission status: Accepted

Solution code:
import sys
input = lambda: sys.stdin.readline().rstrip()

def main():
    n = int(input())
    b = [i for i in range(1,10)]
    for a in range(1,10):
        if n % a == 0 and n // a in b:
            print('Yes')
            return
    print('No')
    
if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

    print('No')


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import os, sys, re, math

N = int(input())

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

print(answer)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
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):
  if n % i == 0 and n // i < 10:
    ans = 'Yes'
print(ans)

Submission status: Accepted

Solution code:
import math
import sys
from collections import deque
import heapq
import copy
import itertools
from itertools import permutations
def mi() : return map(int,sys.stdin.readline().split())
def ii() : return int(sys.stdin.readline().rstrip())
def i() : return sys.stdin.readline().rstrip()
a=ii()
for i in range(1,10):
  for j in range(i,10):
    if i*j==a:
      print('Yes')
      sys.exit()
print('No')

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
t=0
for i in range(1,10):
    for j in range(1,10):
        if i*j==n:
            t+=1
if t>=1:
    print("Yes")
else:
    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())
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:
def solve():
    n = int(input())
    for i in range(1, 10):
        if n % i == 0 and n // i < 10:
            print('Yes')
            exit()
    print('No')



if __name__ == '__main__':
    solve()

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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())
a = set()
for i in range(1,10):
    for j in range(1,10):
        a.add(i*j)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
from sys import stdin

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
from itertools import combinations
import math


def I(): return int(sys.stdin.readline().rstrip())


def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))


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


def LS(): return list(sys.stdin.readline().rstrip().split())


N = I()

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

Submission status: Accepted

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

print(c)

Submission status: Accepted

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

print(c)

Submission status: Accepted

Solution code:
N=int(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())


flug = False

for i in range(9):
  pe = n%(i+1)
  if pe == 0:
    res = n/(i+1)
    #print(res)
    if res<10:
      flug = True
      break
 

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

Submission status: Accepted

Solution code:
n = int(input())
for i in range(1,10):
    m = n/i
    if m.is_integer() and 1 <=m <=9:
        print('Yes')
        break
else:
    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 N == i*j:
      bool = True
if bool:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

for i in range(0,10):
    for j in range(0,10):
        if N == i * j:
            ans = 'Yes'
            break
    else:
        continue
    break
print(ans)

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):
    if n%i==0:
        if 0<(n/i)<10:
            print("Yes")
            exit()
print("No")

Submission status: Accepted

Solution code:
n=input()

ans='No'

for i in range(1,10):
  for j in range(i,10):
    if str(i*j)==n:
      ans='Yes'
      break
  else:
    continue
  break

print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

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

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

Submission status: Accepted

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

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

print(['No', 'Yes'][f])

Submission status: Accepted

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

Submission status: Accepted

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

if N > 81 or N == 50 or N == 60 or N == 70 or N == 80:
    print('No')
    sys.exit()
else:
    val = []
    i = 3
    while N != 1:
        if N % 2 == 0:
            val.append(2)
            N //= 2
        else:
            if i >= 10:
                print('No')
                sys.exit()
            elif N % i == 0:
                val.append(i)
                N //= i
            else:
                i += 2

print('Yes')

Submission status: Accepted

Solution code:
def resolve():
    import sys
    input = sys.stdin.readline
    # 整数 1 つ
    n = int(input())
    # 整数複数個
    # a, b = map(int, input().split())
    # 整数 N 個 (改行区切り)
    # N = [int(input()) for i in range(N)]
    # 整数 N 個 (スペース区切り)
    # N = list(map(int, input().split()))
    # 整数 (縦 H 横 W の行列)
    # A = [list(map(int, input().split())) for i in range(H)]

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

    if flag == False:
        print("No")
resolve()

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
if n>81:
    print('No')
else:
    mod=(1,2,3,4,5,6,7,8,9)
    for i in mod:
        if n%i==0 and n//i<=9:
            print('Yes')
            break
        else:
            if i==9:
                print('No')
                break
            else:
                continue

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

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

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

Submission status: Accepted

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


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

        if n == i * h:
            result = True
            break


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    N = int(input())
    num_mal = []

    for i in range(9):
        for j in range(9):
            num_mal.append((i + 1) * (j + 1))

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def readinput():
    n = int(input())
    return n

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

if __name__=='__main__':
    n=readinput()
    ans=main(n)
    print(ans)

Submission status: Accepted

Solution code:
N = int(input())

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
N = int(input())

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

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

Submission status: Accepted

Solution code:
N=int(input())
ku=[]
for i in range(9):
  for j in range(9):
    ku.append((i+1)*(j+1));
if N in ku:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

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):
    for j in range(1, 10):
        if i * j == n: ans = "Yes"

print(ans)

Submission status: Accepted

Solution code:
"""
N = list(map(int,input().split()))
S = [str(input()) for _ in range(N)]
S = [list(map(int,list(input()))) for _ in range(h)] 
print(*S,sep="")
"""

import sys
sys.setrecursionlimit(10**6)
input = lambda: sys.stdin.readline().rstrip()
inf = float("inf") # 無限

n = int(input())

for _ in range(1,10):
    for __ in range(_,10):
        if _*__ == n:
            print("Yes")
            n = 0
            break
if n:
    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())

if 1<= N <= 81:
    for i in reversed(range(1, 10)):
        if N % i == 0:
            check = N/i
            for j in reversed(range(1,10)):
                if check /j == 1:
                    print("Yes")
                    exit()
    print("No")
    
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(1,10):
    if N % i == 0:
        if N / i <= 9:
            ans='Yes'

print(ans)