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 sys
input = sys.stdin.readline

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
num = [i for i in range(1,10)]
ans = "No"

for i in num:
    if n/i in num:
        ans = "Yes"
        break
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

print("No")

Submission status: Accepted

Solution code:
num = int(input())

answer = ['No']*101

for i in range(1,10):
    for j in range(1,10):
        answer[i*j]='Yes'

print(answer[num])

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
N = int(input())

x = 1
i = 2
while N > 9:
  if N % i == 0:
    x = x * i
    N = N // i
  else:
    i += 1
  if i > 9:
    print("No")
    quit()
  if x > 9:
    print("No")
    quit()
  if N < 10:
    print("Yes")
    quit()

print("Yes")

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
from itertools import product

N = int(input())

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

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

Submission status: Accepted

Solution code:
n = int(input())
ans = "No"
for i in range(9):
  div = 9 - i
  if not n % div:
    if n // div < 10:
      ans = "Yes"
    break
print(ans)

Submission status: Accepted

Solution code:

def okay_ornot(n):
    if n > 81:
        print("No")
        return
    else:
        for i in range(9):
            for j in range(9):
                if (i+1) * (j+1) == n:
                    print("Yes")
                    return
        print("No")
        return

n = int(input())
okay_ornot(n)

Submission status: Accepted

Solution code:
n = int(input())
muls = [(i+1)*(j+1) for i in range(9) for j in range(9)]
if n in muls:
  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:
n = int(input())

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

print("No")

Submission status: Accepted

Solution code:
a = int(input())
kk = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 24, 25, 27, 28, 30, 32, 35, 36, 40, 42, 45, 48, 49, 54, 56, 63, 64, 72, 81}
if a in kk:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

n = int(input())

print(main(n))

Submission status: Accepted

Solution code:
n=int(input())

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

Submission status: Accepted

Solution code:
import numpy as np

n = int(input())
x = np.matrix(list(range(1,10,1)))

xx = x.T*x

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

Submission status: Accepted

Solution code:
N=int(input())
print('YNeos'[not [i for i in range(1,10) if N%i==0 and N//i<10]::2])

Submission status: Accepted

Solution code:
# https://atcoder.jp/contests/abc144/tasks/abc144_b
n = int(input())
o = 'No'
if n <=81:
    for i in range(1,10):
        r = n%i
        q = n//i
        if r == 0 and 1<=q<= 9:
            o = 'Yes'
            break
print(o)

Submission status: Accepted

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

if c!=1:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
inputs = input().rstrip()

for i in range(1,10,1):
    for j in range(1,10,1):
        if((i*j) == int(inputs)):
            print("Yes")
            exit(0)

print("No")

Submission status: Accepted

Solution code:
a = int(input())
flag = False

for i in range(9):
    r = a//(i+1)
    q = a%(i+1)
    if(q==0 and (r>0 and r<=9) ):
        flag = True
        
if(flag == True):
    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")
            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()
print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
cont = 0
a = int(input())
for i in range(1, 10):
    for f in range(1, 10):
        if i*f == a:
            cont += 1
        else:
            pass
if cont > 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
from sys import exit, stdin
N = int(stdin.readline().rstrip())
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:
        if n/i<10:
            ans='Yes'
            break

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
nums = set([i * j for i in range(1, 10) for j in range(1, 10)])

if int(input()) in nums: print('Yes')
else: print('No')

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:
        print("Yes")
        check = True
        break
if check == False:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=[]
for i in range(1,10):
  for j in range(1,10):
    k=i*j
    x.append(k)
n=int(input())
if n in x:
  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:
    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()
        elif i * j == 81:
            print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())

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

print("No")

Submission status: Accepted

Solution code:
import sys
import math
from copy import deepcopy
from collections import deque, defaultdict
from operator import mul
from functools import reduce
sys.setrecursionlimit(20000000)

# input = sys.stdin.readline


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

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

    print('No')


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

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

print(check(N))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
ifbreak = "FALSE"
for i in range(9):
  for j in range(9):
    if n == ((i+1)*(j+1)):
      print("Yes")
      ifbreak = "TRUE"
      break
  if ifbreak=="TRUE":
    break
if ifbreak == "FALSE":
  print("No")

Submission status: Accepted

Solution code:
n = int(input())

li = [i for i in range(1, 10)]
seki = []
for i in li:
  for j in li:
    seki.append(i*j)
    
if n in seki:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
s = set()

for a in range(1,10):
    for b in range(1,10):
        s.add(a*b)

n = int(input())
if n in s:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n=int(input())
a=0
for i_1 in range(9):
    for i_2 in range(9):
        if (i_1+1)*(1+i_2)==n:
            a+=1
if a>0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

hantei = 0

for k in range(9):
    i = k+1
    answer = divmod(N, i)
    if answer[0] < 10 and answer[1] == 0:
        hantei = 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input());
h = True
for i in range(1,10):
    b = a / i
    if b.is_integer() == True and b < 10:
        h = False
print('YNeos'[h::2])

Submission status: Accepted

Solution code:
# 2019/10/29

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

Submission status: Accepted

Solution code:
N = int(input())

YESFLAG = False

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

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

Submission status: Accepted

Solution code:
N = int(raw_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 = int(input())
a = [ ]
for i in range(1,10):
    for j in range(i,10):
        b = i*j
        a.append(b)
if a.count(N) == 0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
N = int(input())
a = []
ans = False
for i in range(1,10):
  a.append(N/i)
for i in range(9):
  if a[i].is_integer() and a[i] < 10:
    ans = True
if ans == False:
  print('No')
else:
  print('Yes')

Submission status: Accepted

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

Submission status: Accepted

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

n = int(input())
print(solve(n))

Submission status: Accepted

Solution code:
q=set([a*b for a in range(1,10) for b in range(1,10)])
if int(input()) in q:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
N = int(input())
res = False
for i in range(1, N+1):
  if i * i > N:
    break
  else:
    q = N // i
    if i * q == N and 1 <= i <= 9 and 1 <= q <= 9:
      res = True
      break
print('Yes' if res else '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:
N = int(input())
 
flg = False
 
for i in range(1, 10):
  if flg:
    break
  for j in range(1, 10):
    if i*j == N:
      flg = True
      break
      
if flg:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

n = int(input())

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

Submission status: Accepted

Solution code:
n= int(input())
f=0
for i in range(1,10):
    a=n//i
    if a<10 and n-a*i==0:
        f=1
if f==1:
    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:
      break
  else:
     continue
  break    

if i*j == n:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

break_flag = 0

for i in range(10):
    for j in range(10):
        if i*j==N:
            print("Yes")
            break_flag = 1
            break
    if break_flag == 1:
        break

if break_flag == 0:
    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 <=9:
    ans = 'Yes'
    break

print(ans)

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

Solution code:
def main():
    N = int(input())
    ans = "No"
    flg = False
    for i in range(1, 10):
        for j in range(1, 10):
            if N == i * j:
                ans = "Yes"
                flg = True
                break
        if flg:
            break
    print(ans)
    return


main()

Submission status: Accepted

Solution code:
def main():
    N = int(input())
    ans = "No"
    flg = False
    for i in range(10):
        for j in range(10):
            if N == i * j:
                ans = "Yes"
                flg = True
                break
        if flg:
            break
    print(ans)
    return


main()

Submission status: Accepted

Solution code:
n=int(input())

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

if (n/i)>9:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
from enum import Enum
from queue import Queue

import numpy as np

import collections
import bisect
import sys
import math

from scipy.sparse.csgraph import floyd_warshall

BIG_NUM = 200000000000
MOD = 1000000007
EPS = 0.000000001

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

Submission status: Accepted

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

i = 1

while i<10:
  num = N / i 
  if  N%i ==0:
    if 0<num<10:
    	print('Yes')
    	break
  i +=1
    
if i>=10:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

if n>81:
    print("No")
elif n<10:
    print("Yes")
else:
    for i in reversed(range(1,10)):
        if n%i==0:
            s = n/i
            if s<10:
                print("Yes")
                exit()
    print("No")

Submission status: Accepted

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

a = int(input())
judge(a)

Submission status: Accepted

Solution code:
a = int(input())

ans = "No"

for i in range(1,10):
    for j in range(1,10):
        if i*j == a:
            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()
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:
def main():
    N = int(input())

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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
n=int(input())
ans="No"
for i in range(1,10,1):

    m=n%i
    if m==0 and n/i>=1 and n/i<=9:
        ans="Yes"
        break
print(ans)

Submission status: Accepted

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

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

print('No')

Submission status: Accepted

Solution code:
n=int(input())
k=0
for j in range(9,0,-1):
  if n/j==float(n//j):
    if n//j<=9:
      k=1
if k==0:
  print("No")
elif k==1:
  print("Yes")

Submission status: Accepted

Solution code:
m = int(input())
a = {}
for i in range(1, int(m**0.5)+1):
    if m % i == 0:
        n = m // i
        a[i] = n
b = min(a.values())
if b < 10: print("Yes")
else: 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:
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())
for a in range(1, 10):
    flag = False
    for b in range(1, 10):
        if a * b == N:

            flag = True
            break
    if flag:
        break
if flag:
    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:
print("Yes"if int(input())in[i*j for i in range(1,10)for j in range(1,10)]else"No")

Submission status: Accepted

Solution code:
N = int(input())

prod = {i * j for i in range(1, 10) for j in range(1, 10)}
print('Yes' if N in prod else 'No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def check():
  n = int(input())
  if n <= 9:
    return 'Yes'
  elif n > 81:
    return 'No'
  else:
    for i in range(2, 10):
      if n % i == 0 and n / i <= 9:
        return 'Yes'
    return 'No'

print(check())

Submission status: Accepted

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

Submission status: Accepted

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

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

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

if count==9:
  print('No')
else:
  print('Yes')

Submission status: Accepted

Solution code:
# 1行目の入力を数値として扱う
n = int(input())

# 剰余算の準備
ans = False

# ループ
for i in range(1, 10):
    m = n % i
    if m == 0:
        d = n / i
        if d <= 9:
            ans = True
            break

# 答えの出力
if ans:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import math
import bisect
 
 
sys.setrecursionlimit(1000000000)
def input():
    return sys.stdin.readline().strip()
 
def iinput():
    return int(input())
 
def finput():
    return float(input())
 
def tinput():
    return input().split()
 
def rinput():
    return map(int, tinput())
 
def rlinput():
    return list(rinput())
 
def modst(a, s):
    res = 1
    while s:
        if s % 2:
            res *= a
        a *= a
        s //= 2
    return res

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
"""
制約
1≦N≦100
Nは整数
"""

#入力
N = int(input())

#九九リストの作成
list = []
for i in range(1, 10):
  for j in range(1, 10):
    list.append(i * j) #リストに追加　list.append()

#リスト内にNが存在するかどうかで判別＆出力
if N in list:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
a = int(input())

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

print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np
import math

def bigger_devisor(n):
  s = np.sqrt(n)
  i = math.ceil(s)
  while(n % i != 0):
    i += 1
  return i

n = int(input())
if bigger_devisor(n) > 9:
  print('No')
else:
  print('Yes')

Submission status: Accepted

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

for i in range(9):
  for j in range(9):
    kuku.append((i + 1) * (j + 1))
if N in kuku:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
i=1
check=False
while i<10:
    if n/i<10 and n%i==0:
        print("Yes")
        check=True
        break
    i+=1
 
if not check:
    print("No")

Submission status: Accepted

Solution code:
n=int(input())
i=1
check=False
q=int(n**.5+1)
while i<q:
    if n/i<10 and n%i==0:
        print("Yes")
        check=True
        break
    i+=1
 
if not check:
    print("No")

Submission status: Accepted

Solution code:
a = int(input())
f = False
for i in range(1, 10):
  if (a // i * i) == a and a // i < 10:
    f = True
if f:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N=int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

ans = 'No'
int_99 = range(1, 10)
for i in int_99:
    n = N / i
    if n in int_99:
        ans = 'Yes'
        break
print(ans)

Submission status: Accepted

Solution code:
n=int(input())
l=[9,8,7,6,5,4,3,2]
count=0

if 1*2*3*4*25*6*49*8*9%n==0 and n//9<10:
    for i in l:
        if n%i==0 and n/i<10:
            count+=1
            break
print('Yes' if count==1 or n==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(0)
print('No')

Submission status: Accepted

Solution code:
A = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

a = int(input())

ans = 'No'

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

print(ans)

Submission status: Accepted

Solution code:
# https://atcoder.jp/contests/abc144/tasks/abc144_b
import sys
sys.setrecursionlimit(12345678)
import itertools
from collections import Counter
from collections import defaultdict
from collections import deque
import bisect
from heapq import heappush, heappop


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

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

Submission status: Accepted

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

if n > 81 or n == 0:
    print(ans)
    exit()
else:
    for i in range(1, 10)[::-1]:
        x = n/i
        #print(x)
        if x.is_integer() == True:
            if len(str(int(x))) == 1:
                ans = "Yes"
    print(ans)