Problem:


Score : 200 points

Problem Statement

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

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

Constraints

1 \leq N \leq 100

N is an integer.

Input

Input is given from Standard Input in the following format:

N

Output

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

Sample Input 1

10

Sample Output 1

Yes

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

Sample Input 2

50

Sample Output 2

No

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

Sample Input 3

81

Sample Output 3

Yes



Sample input:
10


Sample output:
Yes

Submission status: Wrong Answer

Solution code:
N=int(input())

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

print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

    else:
        print('No')
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = int(input())
if a <= 81:
    for i in range(8):
        if ((a % (i+2)) == 0) and ((a / (i+2)) <= 9):
            print("Yes")

print("No")

Submission status: Wrong Answer

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

for i in range(2,10):
  q, mod=divmod(n,i)
  if(q<10 and mod==0):
   print('Yes')
   j=1
   break
   
if(j!=1):
 print('No')

Submission status: Wrong Answer

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

for i in range(2,10):
  q, mod=divmod(n,i)
  if(q<10 and mod==0):
   print('YES')
   j=1
   break
   
if(j!=1):
 print('NO')

Submission status: Wrong Answer

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

for i in range(2,10):
  q, mod=divmod(n,i)
  if(q<10 and mod<10):
   print('YES')
   j=1
   break
   
if(j!=1):
 print('NO')

Submission status: Wrong Answer

Solution code:
n=int(input())

j=2

if(n>81):
 print('No')
 
 
else:
 for i in range(2,10):
  mod=n % i
  q=n //i
  if(mod==0 and q<10):
   print('YES')
   j=0
   break
  elif(i==9 and j>1):
   print('NO')

Submission status: Wrong Answer

Solution code:
n=int(input())

if(n>81):
 print('No')
 
else:
 for i in range(2,9):
  mod=n % i
  if(mod==0):
   print('YES')
   break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=int(input())
if (a%2==0 or a%3==0 or a%5==0 or a%7==0) and a<=81 and(a!=10 or a!=20 or a!=30 or a!=40 or a!=50 or a!=60 or a!=70 or a!=80):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
a=int(input())
if (a%2==0 or a%3==0 or a%5==0 or a%7==0) and a<=81 and(a!=10 or a!=20 or a!=30 or a!=40 or a!=50 or a!=60 or a!=70 or a!=80):
  print("yes")
else:
  print("no")

Submission status: Wrong Answer

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

for i in range(1,N):
  if N%i==0 and max(i,N/i)<=9:
    f = True

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

Submission status: Wrong Answer

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

for i in range(1,N):
  if N%i==0 and max(i,N//i)<=9:
    f = True

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8
import sys

N = int(input())

for i in range(1,int(N/2)):
  #print(N,i,N%i,len(str(int(N/i))))
  if N%i == 0 and len(str(int(N/i))) == 1:
    print('Yes')
    sys.exit()
print('No')

Submission status: Wrong Answer

Solution code:
num = int(input())

result = False

if num == 1:
	result = True
elif num <= 81:
	for i in range(9, 1, -1):
		if num % i == 0:
			result = True

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

Submission status: Wrong Answer

Solution code:
num = int(input())

result = False

if num <= 81:
	for i in range(9, 0, -1):
		if num % i == 0:
			result = True

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

Submission status: Wrong Answer

Solution code:
n = input()

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

Submission status: Wrong Answer

Solution code:
n =int(input())
if n<10:
  print("Yes")


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

Submission status: Wrong Answer

Solution code:
n =int(input())


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

Submission status: Wrong Answer

Solution code:
n =int(input())


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

Submission status: Wrong Answer

Solution code:
n =int(input())


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

Submission status: Wrong Answer

Solution code:
n =int(input())

if n<10:
  print("YES")
  exit()

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

Submission status: Wrong Answer

Solution code:
num = int(input())

result = False
if num <= 81:
	for i in range(9, 1, -1):
		if num % i == 0 and num / i <= 9:
			result = True

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

Submission status: Wrong Answer

Solution code:
num = int(input())

result = False
for i in range(9, 1, -1):
	if num % i == 0 and num / i <= 9:
		result = True

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

Submission status: Wrong Answer

Solution code:
N=int(input())
def f(N):
  for i in range(1,10):
    j=N//i
    if i*j==N and (j>=1 and j<=9):
      return(True)
  return(False)
if f(N):
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
# -*- coding:utf-8 -*-

def solve():
    N = int(input())
    if 1 <= N <= 81:
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
    solve()

Submission status: Wrong Answer

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

Solution code:
a = int(input())
ans = True

for i in range(1,10):
  b = a / i
  print(i)
  if b.is_integer() and 1 < b < 10:
    print('Yes')
    ans = False
    break
  
if ans:
  print('No')

Submission status: Wrong Answer

Solution code:
a = int(input())
ans = True

for i in range(1,10):
  b = a / i
  if b.is_integer() and 1 < b < 10:
    print('Yes')
    ans = False
    break
  
if ans:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
for a in range(1,10):
  for b in range(1,10):
    if n==a*b:
      break
    print("Yes")
      
    
print("No")

Submission status: Wrong Answer

Solution code:
def kakezan_list():
    kake_list = list()
    for i in range(1, 10):
        for j in range(1, 10):
            kake_list.append(i*j)
    return kake_list

n = int(input())
print(kakezan_list())

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

Submission status: Wrong Answer

Solution code:
import numpy as np
N = input()
kuku_array = np.zeros((9, 9))
for i in range(1,10):
  for j in range(i,10):
    kuku_array[i-1][j-1] = i*j
if np.any(kuku_array == N) == True:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
n=int(input())

i=1
l=0
while i<10:
    if n/i==n//i and n//i<10:
        l=l+1
    i=i+1
print("yes" if l>0 else "no")

Submission status: Wrong Answer

Solution code:
n=int(input())

i=1
l=0
while i<10:
    if n/i==n//i and n//i<9:
        l=l+1
    i=i+1
print("yes" if l>0 else "no")

Submission status: Wrong Answer

Solution code:
n = int(input())

for a in range(1, 10):
  for b in range(a, 10):
    if n % (a * b) == 0:
      print('Yes')
      exit()

print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
 
input = sys.stdin.readline()
N = int(input)

result = False

if N > 0 and N < 82:
  for x in range(1,10):
    if (N%x)==0 and (N/x) < 10:
      result = True
if result:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
import sys
 
input = sys.stdin.readline()
N = int(input)

result = False

if N > 0 and N < 82:
  for x in range(1,9):
    if (N%x)==0 and (N/x) < 10:
      result = True
if result:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
import sys
 
input = sys.stdin.readline()
N = int(input)

result = False

if N > 0 and N < 82:
  for x in range(1,9):
    if (N%x)==0 and (N/x) < 10:
      result = True
if result:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
a = int(input())
li = []
for i in range(9):
    num_i = i + 1
    for j in range(9):
        num_j = j + 1
        li.append(num_i * num_j)
print('Yes' if a in li else 'NO')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
o = 'No'
if n <=81:
    for i in range(2,10):
        r = n%i
        if r == 0 and n//i <= 9:
            o = 'Yes'
            break
print(o)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
for i in range(1,9):
    for j in range(1, 9):
        if i * j == N:
            print("Yes")
            break
        elif i * j == 81:
            print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
res = False
for i in range(1, N):
  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: Wrong Answer

Solution code:
N = int(input())

flg = False

for i in range(1, 9):
  if flg:
    break
  for j in range(1, 9):
    if i*j == N:
      flg = True
      break
      
if flg:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

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

i = 1

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

Submission status: Wrong Answer

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

i = 1

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

Submission status: Wrong Answer

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

i = 1

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())

if n>81:
    print("No")
    exit()
elif n<10:
    print("Yes")
    exit()
elif n%2==0:
    a = n/2
    if a<10:
        print("Yes")
        exit()
    elif n%3==0:
        a = n/3
        if a<10:
            print("Yes")
            exit()
        elif n%4==0:
            a = n/4
            if a<10:
                print("Yes")
                exit()
            elif n%5==0:
                a = n/5
                if a<10:
                    print("Yes")
                    exit()
                elif n%6==0:
                    a = n/6
                    if a<10:
                        print("Yes")
                        exit()
                    elif n%7==0:
                        a = n/7
                        if a<10:
                            print("Yes")
                            exit()
                        elif n%8==0:
                            a = n/8
                            if a<10:
                                print("Yes")
                                exit()
                            elif n%9==0:
                                a = n/9
                                if a<10:
                                    print("Yes")
                                    exit()

print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())

if n>81:
    print("No")
    exit()
elif n<10:
    print("Yes")
    exit()
elif n%2==0:
    a = n/2
    if a<10:
        print("Yes")
        exit()
    elif n%3==0:
        a = n/3
        if a<10:
            print("Yes")
            exit()
        elif n%4==0:
            a = n/4
            if a<10:
                print("Yes")
                exit()
            elif n%5==0:
                a = n/5
                if a<10:
                    print("Yes")
                    exit()
                elif n%6==0:
                    a = n/6
                    if a<10:
                        print("Yes")
                        exit()
                    elif n%7==0:
                        a = n/7
                        if a<10:
                            print("Yes")
                            exit()
                        elif n%8==0:
                            a = n/8
                            if a<10:
                                print("Yes")
                                exit()
                            elif n%9==0:
                                a = n/9
                                if a<10:
                                    print("Yes")
                                    exit()
                                else:
                                    print("No")

Submission status: Wrong Answer

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

Solution code:
n = int(input())

if n>81:
    print("No")
    exit()
elif n<10:
    print("Yes")
    exit()
elif n%2==0:
    a = n/2
    if a<10:
        print("Yes")
        exit()
elif n%3==0:
    a = n/3
    if a<10:
        print("Yes")
        exit()
elif n%4==0:
    a = n/4
    if a<10:
        print("Yes")
        exit()
elif n%5==0:
    a = n/5
    if a<10:
        print("Yes")
        exit()
elif n%6==0:
    a = n/6
    if a<10:
        print("Yes")
        exit()
elif n%7==0:
    a = n/7
    if a<10:
        print("Yes")
        exit()
elif n%8==0:
    a = n/8
    if a<10:
        print("Yes")
        exit()
elif n%9==0:
    a = n/9
    if a<10:
        print("Yes")
        exit()
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a = int(input())

ans = "no"

for i in range(1,9):
    for j in range(1,9):
        if i*j == a:
            ans = "yes"
            break

print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())

if n>81:
    print("No")
    exit()
elif n<10:
    print("Yes")
    exit()
elif n%2==0:
    a = n/2
    if a<10:
        print("Yes")
        exit()
elif n%3==0:
    a = n/3
    if a<10:
        print("Yes")
        exit()
elif n%4==0:
    a = n/4
    if a<10:
        print("Yes")
        exit()
elif n%5==0:
    a = n/5
    if a<10:
        print("Yes")
        exit()
elif n%6==0:
    a = n/6
    if a<10:
        print("Yes")
        exit()
elif n%7==0:
    a = n/7
    if a<10:
        print("Yes")
        exit()
elif n%8==0:
    a = n/8
    if a<10:
        print("Yes")
        exit()
elif n%9==0:
    a = n/9
    if a<10:
        print("Yes")
        exit()
print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())

if n>81:
    print("No")
    exit()
elif n<10:
    print("Yes")
    exit()
elif n%2==0:
    a = n/2
    if a<10:
        print("Yes")
        exit()
elif n%3==0:
    a = n/3
    if a<10:
        print("Yes")
        exit()
elif n%4==0:
    a = n/4
    if a<10:
        print("Yes")
        exit()
elif n%5==0:
    a = n/5
    if a<10:
        print("Yes")
        exit()
elif n%7==0:
    a = n/7
    if a<10:
        print("Yes")
        exit()
elif n%8==0:
    a = n/8
    if a<10:
        print("Yes")
        exit()
elif n%9==0:
    a = n/9
    if a<10:
        print("Yes")
        exit()
print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())

if n>81:
    print("No")
    exit()
elif n<10:
    print("Yes")
    exit()
elif n%2==0:
    a = n/2
    if a<10:
        print("Yes")
        exit()
elif n%3==0:
    b = n/3
    if b<10:
        print("Yes")
        exit()
elif n%5==0:
    c = n/5
    if c<10:
        print("Yes")
        exit()
elif n%7==0:
    d = n/7
    if d<10:
        print("Yes")
        exit()
elif n%8==0:
    e = n/8
    if e<10:
        print("Yes")
        exit()
elif n%9==0:
    f = n/9
    if f<10:
        print("Yes")
        exit()
print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())

if n>81:
    print("No")
    exit()
elif n<10:
    print("Yes")
    exit()
elif n%2==0:
    a = n/2
    if a<10:
        print("Yes")
        exit()
elif n%3==0:
    b = n/3
    if b<10:
        print("Yes")
        exit()
elif n%5==0:
    c = n/5
    if c<10:
        print("Yes")
        exit()
elif n%7==0:
    d = n/7
    if d<10:
        print("Yes")
        exit()
elif n%9==0:
    e = n/9
    if e<10:
        print("Yes")
        exit()
print("No")

Submission status: Wrong Answer

Solution code:
n=int(input())

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

print('No')

Submission status: Wrong Answer

Solution code:
n=int(input())

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

print('No')

Submission status: Wrong Answer

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

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

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

print(check())

Submission status: Wrong Answer

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

print(check())

Submission status: Wrong Answer

Solution code:
N=int(input())

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

Submission status: Wrong Answer

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"

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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):
        if n % i == 0:
            if n // i < 10:
                print("YES")
                return 0
    print("NO")
main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def max_prime_factor(n):
  for i in range(2, 8):
    while(n%i == 0):
      n /= i
  return n

n = int(input())
if n > 81:
  print('No')
elif max_prime_factor(n) > 9:
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

if N == 1 or N == 2 or N == 3 or N == 4 or N == 5:
  print("Yes")
elif N == 6 or N == 7 or N == 8 or N == 9 or N == 10:
  print("Yes")
elif N == 12 or N == 14 or N == 17 or N == 18 or N == 15:
  print("Yes")
elif N == 20 or N == 21 or N == 24 or N == 25 or N == 27 or N == 28:
  print("Yes")
elif N == 30 or N == 32 or N == 35 or N == 36 or N == 40:
  print("Yes")
elif N == 42 or N == 45 or N == 48 or N == 49 or N == 54:
  print("Yes")
elif N == 56 or N == 63 or N == 64 or N == 72 or N == 81:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if 1*2*3*4*5*6*7*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: Wrong Answer

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

if 1*2*3*4*5*6*7*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 else 'No')

Submission status: Wrong Answer

Solution code:
n=int(input())
l=[9,8,7,6,5,4,3,2]
count=0
for i in l:
    if n in l :
        count+=2
        n=1
    if n%i==0 and n//i<10:
        count+=1
        n=n/i
        if n==i:
            count+=1
            n=int(n/i)
        
print('Yes' if count==2 and n==1 else 'No')

Submission status: Wrong Answer

Solution code:
n=int(input())
l=[9,8,7,6,5,4,3,2]
count=0
for i in l:
    if n%i==0 and n//i<10:
        count+=1
        n=n/i
        if n==i:
            count+=1
            n=int(n/i)
        
print('Yes' if count==2 and n==1 else 'No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
l=list(range(2,10))
count=0
for i in l:
    if n%i==0:
        count+=1
        n=n/i
print('Yes' if count==2 and n==1 else 'No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if n > 81:
    print(ans)
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)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
L=[1,2,3,4,5,6,7,8,9,10,11,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]
N=int(input())
print('NYoe s'[N in L::2])