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())
def handlerNum(num):
    # 质数大于 1
    res = 0
    if num > 1:
        # 查看是否有其他因子
        for i in range(2, num//2+1):
            if (num % i) == 0:
                res = 1
                break
        else:
            res = -1
    return res
if n <= 81 and n != 50 and n != 60 and n != 70 and n != 80 and handlerNum(n) == 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
i = 1   #かけられる数
result = 'No'
while i < 9:
    j = 1   #かける数
    while j < 9:
        j = j + 1
        print(j*i)
        if n == (j*i):
            result = 'Yes'
    i = i + 1
print(result)

Submission status: Wrong Answer

Solution code:
import fractions
b = int(input())
flg=0
for i in range(1,10):
    if(b%i==0)and(fractions.gcd(b,i)>0)and(fractions.gcd(b,i)<10):
        print("Yes")
        flg=1
        break
if(flg==0):
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

list_aaa = [1,2,3,4,5,6,7,8,9]

ans = 0
_not = 0

for i in list_aaa:
    ans = N/i
    if ans >=10 and N%i ==0 :
        _not +=1
    else:
        _not +=0

if _not >=1:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

for i in range(2,10):
  for j in range(2,10):
    a.append(i*j)
if n in a:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())

if 81 < N:
    print("NO")

if (N % 2) == 0:
    print("YES")

if (N % 3) == 0:
    print("YES")

if (N % 5) == 0:
    print("YES")

if (N % 7) == 0:
    print("YES")

Submission status: Wrong Answer

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

for i in range(10)[1:]:
  if(ans<10):
    flg = True
    break
if(flg):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
if N>=1 and N<=81 and N!=30 and N!=50 and N!=60 and N!=70 and N!=80:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

done = False
for i in range(8):
    x = i + 2
    if N % x == 0:
        if N // x < 10:
            print('Yes')
            done = True
            break

if not done:
    print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())
if n < 11 or n == 12 or n == 14 or n == 15 or n == 16 or n == 18 or n == 20 or n == 24 or n == 25  or n == 27  or n == 28   or n == 30  or n == 32  or n == 35  or n == 36  or n == 40  or n == 42   or n == 45  or n == 48  or n == 49   or n == 54   or n == 56   or n == 64   or n == 72   or n == 81  :
  print('Yes')
  exit()
print('No')

Submission status: Wrong Answer

Solution code:
N = input()

for x in range(1,10):
  for y in range(1,10):
    if x * y == N:
      print("Yes")
      break
    else:
      print("No")
      break

Submission status: Wrong Answer

Solution code:
N=int(input())
if N>81:
  print("No")
elif 1<=N<=10:
  print("Yes")
else:
  i=2
  while N%i!=0 and i<10:
    i+=1
  if i==10:
    print("No")
  else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
n = int(input())

ans = 'No'
for i in [9, 8, 7, 6, 5, 4, 3, 2]:
    if n % i == 0:
        n /= i
    if n <= 9:
        ans = 'Yes'
        break
    else:
        break
print(ans)

Submission status: Wrong Answer

Solution code:
num = int(input())
nine = [1,2,3,4,5,6,7,8,9]
flag = 0
for i in nine:
    amari = num % i 
    if amari == 0:
        if num / i in nine:
            print("yes")
            flag = 1
            break
if flag == 0:
    print('No')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
a = int(input())
f = 'No'
if a <= 81:
    for i in range(2,10):
        if a % i == 0:
            f = 'Yes'          
print(f)

Submission status: Wrong Answer

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

if N < 82:
    for i in range(9,2,-1):
        if N % i == 0 and N / i < 10:
            flag = 'Yes'
            break
else:
    pass

print(flag)

Submission status: Wrong Answer

Solution code:
# 1~9で割り切れるか確認
data = int(input())
ng_flag = False
for i in range(2, 10):
    if data % i == 0 and data / i <= 9:
        #dataが1～9で割り切れて、かつ割った余りが9以下のとき
        ng_flag = True
#割り切れる場合は81以下であるか
if data <= 81 and ng_flag:
    print('Yes')
    exit(0)
else:
    print('No')
    exit(0)

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')
            exit()
print('NO')

Submission status: Wrong Answer

Solution code:
n = int(input())
i = 1   #かけられる数
result = 'No'
while i < 9:
    j = 1   #かける数
    while j < 9:
        j = j + 1
        print(j*i)
        if n == (j*i) and j != i:
            result = 'Yes'
    i = i + 1
print(result)

Submission status: Wrong Answer

Solution code:
n = int(input())
result = False
for i in range(1, 10):
    for m in range(1, 10):
        if i * m == n:
            result = True
if result:
    print('YES')
else: print('NO')

Submission status: Wrong Answer

Solution code:
n = int(input())
print(["Yes", "No"][n > 81])

Submission status: Wrong Answer

Solution code:
N=int(input())

from fractions import gcd
for i in range(1,10):
  f=0;
  if (N%i==0 and N/i<10):
    f=f+1
if f>0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

for n in (range(1,10)):
  print(n)
  if N%n ==0:
    if 1 <= N/n <= 9:
      print('Yes')
      import sys
      sys.exit()
  else:
    print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())
ans = 0
for i in range(10):
    for j in range(10):
        if N == i*j:
            ans += 1
if ans > 0:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
import sys

n=int(input())

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

print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

result = False
for i in range(1,10):
    q, mod = divmod(N, i)
    if mod == 0 and q < 10 and q > 0:
        result = True
if result:
    print('yes')
else:
    print('no')

Submission status: Wrong Answer

Solution code:
N = int(input())

def judge(N):
  if N == 1:
    return 'Yes'
  for i in reversed(range(1, 10)):
    if N%i == 0 and N//i in range(1, 10):
      return 'Yes'
    else:
      return 'No'

print(judge(N))

Submission status: Wrong Answer

Solution code:
N = int(input())

a = 0
b = 0

if N <= 9:
    print('Yes')

for i in range(2, 10):
    if N % i == 0:
        a = N / i
        if a <= 9:
            print('Yes')
            b = 1
            break

if b == 0:
    print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())

done = False
for i in range(7):
    x = i + 2
    if N % x == 0:
        if N // x < 10:
            print('Yes')
            done = True
            break

if not done:
    print('No')

Submission status: Wrong Answer

Solution code:
# N = int(open(0).read())
N = int(input())
# print(N)
flg = False
for i in range(1,10):
    for j in range(i,10):
        if N == i*j:
            print('Yes')
            flg = True
            break
if flg == False:
    print('No')

Submission status: Wrong Answer

Solution code:
n = int(raw_input())
flag =0
for i in range(1,10):
  if n%i == 0 and n/i >= 1 and n/i <=  9:
    flag = 1
if flag:
  print "YES"
else:
  print "NO"

Submission status: Wrong Answer

Solution code:
n = int(input())

flag = False
for i in range(1, 10):
    for j in range(1, 10):
        if n / i == j:
            print('Yes')
            flag = True
            break

if flag:
    print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())
kuku=[0]*(81)
for i in range (9):
    for j in range(9):
        kuku[j*i+j]=(i+1)*(j+1)

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

Submission status: Wrong Answer

Solution code:
N=int(input())
if N>81:
  print("No")
else:
  i=2
  while N%i!=0 and i<10:
    i+=1
  if i==10:
    print("No")
  else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
n = int(input())
i = 1   #かけられる数
result = 'No'
while i < 10:
    j = 1   #かける数
    while j < 10:
        j = j + 1
        print(j*i)
        if n == (j*i) and j != i:
            result = 'Yes'
    i = i + 1
print(result)

Submission status: Wrong Answer

Solution code:
n = int(input())
a = [9, 8, 7, 6, 5, 4, 3, 2, 1]
cnt = 0
if 1 <= n <= 81:
    for i in a:
        if n % i == 0:
            if 1 <= (n / i) <= 9:
                cnt += 1
                print("Yes")
                break
            else:
                cnt += 1
                print("No")
                break
if cnt == 0:
    print("NO")

Submission status: Wrong Answer

Solution code:
N = int(input())

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

    if N%i == 0:
        if N/i <= 9:
            c = "Yes"
            break
        else:
            c = "No"
    else:
        c = "No"
print(c)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
N = int(input())
a = 0
for i in range(1,10):
    if N % i == 0 and N // i < 10:
        a = 1
if a == 0:
    print("No")
else:
    print("YES")

Submission status: Wrong Answer

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

for i in range(1,9):
  for j in range(1,9):
    a.append(i*j)
if n in a:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
N=int(input())


for i in range(1,10):
  if N%i==0 and N<=i*9:
    print("Yes")
    break

  print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
a=0
b=0

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

Submission status: Wrong Answer

Solution code:
N = int(input())

def main():
    li = [a * b for a in range(1, 10) for b in range(1, 10)]
    print ('YES' if N in li else 'NO')

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
n = int(input())

flag = True
for i in range(1, 10):
    for j in range(1, 10):
        if n / i == j:
            print('Yes')
            flag = False
            break

if flag:
    print('No')

Submission status: Wrong Answer

Solution code:
# coding: utf-8


def main(N):
    for i in range(2, 10):
        if N % i == 0 and N / i<= 9:
            return "Yes"
    return "No"

if __name__ == "__main__":
    N = int(input())
    my_ans = main(N)
    print(my_ans)

Submission status: Wrong Answer

Solution code:

N=int(input())

a=0
if N>81:
  print('No')
elif N<1:
  print('No')
else:
  for i in range(1,9):
    if N%i==0:
      print('Yes')
      a=1
      break
  if a==0:
    print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())

done = False
for i in range(7):
    if N % (i + 2) == 0:
        print('Yes')
        done = True
        break

if not done:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())


def solve(N):
    for i in range(2, 10):
        for j in range(2, 10):
            if i * j == N:
                return 'Yes'

    return 'No'


print(solve(N))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())

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

Submission status: Wrong Answer

Solution code:
n=int(input())
if n<50:
  print("Yes")
elif n%10==0:
  print("No")
elif n<=81:
  print("Yes")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
a = int(input())
f = 'No'
if a <= 81:
    for i in range(2,9):
        if a % i == 0:
            f = 'Yes'   
print(f)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
ans = []
x = n
for i in reversed(range(2,10)):
    while x%i==0:
        ans.append(i)
        x /=i
        
if len(ans)>2:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
N = int(input())

def judge(N):
  if N == 1:
    return True
  for i in reversed(range(1, 10)):
    if N%i == 0 and N//i in range(1, 10):
      return True
    else:
      return False

print(judge(N))

Submission status: Wrong Answer

Solution code:
num = int(input())
flag = True
for x in range(2,10):
  if num % x == 0:
    print("YES")
    flag = False
    break
if flag:
  print("NO")

Submission status: Wrong Answer

Solution code:
N=int(input())

a=0
if N>81:
  print('No')
elif N<1:
  print('No')
else:
  for i in range(1,10):
    if N%i==0:
      print('Yes')
      a=1
      break
  if a==0:
    print('No')

Submission status: Wrong Answer

Solution code:
N=int(input())
if N>81:
  print("No")
else:
  i=1
  while N%i!=0 and i<10:
    i+=1
  if i==10:
    print("No")
  else:
    print("Yes")

Submission status: Wrong Answer

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

for i in range(2, 10, 1):
  d = n // i
  if type(d) is int and d < 10 and n == d * i:
    ans = 'Yes'
    break
    
print(ans)

Submission status: Wrong Answer

Solution code:
m = int(input())

for i in range(1, 10):
  for j in range(i, 10):
    if m == i * j:
      print('Yes')
      break
else:
  print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())
if 0 < n <= 81:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

for i in range(1,10):
    q, mod = divmod(N, i)
    if mod == 0 and q < 10 and q > 0:
        print('yes')
        sys.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 n / i == j:
            print('Yes')
            break

print('No')

Submission status: Wrong Answer

Solution code:
# 1~9で割り切れるか確認
data = int(input())
ng_flag = False
for i in range(1, 9):
    if data % i == 0 and data / i <= 9:
        #一度でも割り切れる場合
        ng_flag = True
#割り切れる場合は81以下であるか
if data <= 81 and ng_flag:
    print('Yes')
    exit(0)
else:
    print('No')
    exit(0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
all = [i * j for i in range(1, 10) for j in range(1, 10)]
print(["NO", "YES"][int(input()) in all])

Submission status: Wrong Answer

Solution code:
n = int(input())
count = []
for i in range(1,9):
    if n%i == 0:
        a = n//i
        count.append(a)

ans = 0
for j in range(len(count)):
    if count[j] <= 9:
        ans += 1

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

Submission status: Wrong Answer

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

# 整数の入力
a = int(input())

flag = 0
for i in range(2, 10):
  if (a % i == 0 and a / i < 10):
    print('YES')
    flag = 1
    break

if (flag == 0):
  print('NO')

Submission status: Wrong Answer

Solution code:
n = int(raw_input())
flag =0
for i in range(1,10):
  if n%i == 0:
    flag = 1
if flag:
  print "YES"
else:
  print "NO"

Submission status: Wrong Answer

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

for i in range(2,10):
  if x % i == 0 and x // i < 10:
    print("Yes")
    exit()
  else:
    count += 1

if count == 8:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

def solve(n):
  if n > 81:
    return -1
  flag = False
  for i in range(1, 10):
    if n % i == 0:
      if n//i <= 9 and n//i >= 1:
        return "YES"
        flag = True
        break
      
  if not flag:
    return "NO"

print(solve(n))

Submission status: Wrong Answer

Solution code:
n = int(input())
i = 1   #かけられる数
result = 'No'
while i < 10:
    j = 1   #かける数
    while j < 10:
        j = j + 1
        if n == (j*i):
            result = 'Yes'
    i = i + 1
print(result)

Submission status: Wrong Answer

Solution code:

from sys import stdin

n = int(stdin.readline().rstrip())
l = [1,2,3,4,5,6,7,8,9,2,4,6,8,10,12,14,16,18,3,6,9,12,15,18,21,24,27,4,8,12,16,20,24,28,32,36,5,10,15,20,25,30,35,40,45,6,12,18,24,30,36,42,48,54,7,14,21,28,35,42,29,56,63,64,72,81]
ans = n in l
if ans == True:
    ans = "Yes"
else:
    ans = "No"
print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())
f = False
for i in range(2,10):
  if(n%i==0):
    if(len(str(int(n/i)))!=1):
      continue
    print("Yes")
    f = True
    break
if(f == False):
  print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
if 9*9 < N:
    print('No')

for i in range(2, 9+1):
    if ((N % i) == 0) and ((N // i) <= 9):
        print('Yes')
        exit()

print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())

cnt = 0
a = []
i = 9
while True:
    if n % i == 0:
        while n % i==0:
            n = n // i
            a.append(i)
    i-=1
    if n == 1 or i == 2:
        break

if len(a) == 1 or len(a) == 2:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
x=int(input())
for i in range(1,10):
  if x%i==0:
    if x/i<10:
      print('yes');exit()
      
print('no')

Submission status: Wrong Answer

Solution code:
import sys
import math
stdin = sys.stdin
mod = 10**9 + 7

ns = lambda: stdin.readline().rstrip()
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
sa = lambda h: [list(map(int, stdin.readline().split())) for i in range(h)]

a = []
for i in range(1,10):
    a.append(i**2)
n = ni()
if n in a:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

for i in range(2, 9, 1):
  d = n // i
  if type(d) is int and d < 10 and n == d * i:
    ans = 'Yes'
    break
    
print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
X = []
for i in range(1,N):
  if N % i == 0:
    a = i
    b = int(N / i)
    if a <= 9 and b <= 9:
      print("YES")
      exit()
print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())
counter=0
for i in range(1,10):
    if N/i==1 or N/i==2 or N/i==3 or N/i==4 or N/i==5 or N/i==6 or N/i==7 or N/i==8 or N/i==9:
        print(N/i)
        print('Yes')
        break
    else:
        counter+=1
if counter==9:
    print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())

for i in range(1,10):
	a = n / i
	if not isinstance(a, int):
		print('No')
		exit()
print('Yes')

Submission status: Wrong Answer

Solution code:
n = int(input())

for i in range(1,10):
	a = n / i
	if not isinstance(a, int):
		print('No')
print('Yes')

Submission status: Wrong Answer

Solution code:
N = int(input())

def make_divisors(n):
    divisors = []
    for i in range(1, int(n**0.5)+1):
        if n % i == 0:
            divisors.append(i)
            if i != n // i:
                divisors.append(n//i)

    return divisors

divisors = make_divisors(N)
divisors.sort()

ans = divisors[1:-1]

if len(ans)<=1:
    print("No")
elif len(ans)==2:
    print("Yes")
else:
    while len(ans)>2:
        ans = ans[1:-1]
    if len(ans)==1:
        if ans[0]<=9:
            print("Yes")
        else:
            print("No")
    else:
        if ans[1]<=9:
            print("Yes")
        else:
            print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())

kuku = [1, 2, 3, 4, 5, 6, 7, 8, 9,
        2, 4, 6, 8, 10, 12, 14, 16, 18,
        3, 6, 9, 12, 15, 18, 21, 24, 27,
        4, 8, 12, 16, 20, 24, 28, 32, 36,
        5, 10, 15, 20, 25, 30, 35, 40, 45,
        6, 12, 18, 24, 30, 36, 42, 48, 54,
        7, 14, 21, 28, 35, 42, 49, 56, 63,
        8, 16, 24, 32, 40, 48, 56, 84, 72,
        9, 18, 27, 36, 45, 54, 63, 72, 81]

if n in kuku:
    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 n / i == j:
            print('Yes')

print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())

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

shou = N / i

if shou < 10:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

if N > 82:
    print('No')
elif N == 2 or  N == 3 or  N == 5 or  N == 7 or  N == 11 or  N == 13 or  N == 17 or  N == 19 or  N == 23 or  N == 29 or  N == 31 or  N == 37 or  N == 41 or  N == 43 or  N == 47 or  N == 53 or  N == 59 or  N == 61 or  N == 67 or  N == 71 or N ==73 or N == 50 or N == 60 or N == 70 or N == 80:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
n=int(input())

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

Submission status: Wrong Answer

Solution code:
num = int(input())
flag=0
for i in range(2,10):
    if num % i == 0 and num/i < 10:
        flag=1

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

Submission status: Wrong Answer

Solution code:
n = int(input())
i = 1   #かけられる数
result = 'No'
while i < 10:
    j = 1   #かける数
    while j < 10:
        j = j + 1
        if n == j:
            result = 'Yes'
    i = i + 1
print(result)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
ans = 0
flg = False
for i in range(10)[1:]:
  if(ans<10):
    flg = True
    break
if(flg):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
def make_divisors(n):
    divisors = []
    for i in range(1, int(n**0.5)+1):
        if n % i == 0:
            divisors.append(i)
            if i != n // i:
                divisors.append(n//i)
    return divisors

arr = make_divisors(N)

if len(arr)%2==0:
  if arr[len(arr)//2-1]>=10 or arr[len(arr)//2]>=10:
    print('No')
  else:
    print('Yes')
else:
  if arr[len(arr)//2]>=10:
    print('No')
  else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
n = int(input())

ans = 0

for i in range(1, 10):
    if n % i == 0:
        if n / i <= 10:
            ans += 1
    else:
        pass
    
if ans >= 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())
b = False
i=2
while i<=9:
    j=1
    while j<=i:
        if j*i==N:
            print('Yes')
            b = True
            break
        j+=1
    i+=1
if b==False:
    print('No')

Submission status: Wrong Answer

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

for i in range(9):
    for j in range(9):
        if (i + 1) * (j + 1) == n:
            print("Yes")
            qq = (i + 1) * (j + 1)

if qq == 0:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

for i in range(1,10):
	a = n % i
	if not isinstance(a, int):
		print('No')
print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

N = int(input())

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

Submission status: Wrong Answer

Solution code:
import sys
from collections import Counter, deque, defaultdict
from math import factorial
import heapq, bisect
import math
import itertools
sys.setrecursionlimit(10 ** 5 + 10)
INF = 10**15 +5
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))

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

if res == 0:
    print('No')
elif res >= 10:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
n=int(input())
a=1
for i in range(1,9):
  if int(n/i)==(1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9):
    a*=0
  else:
    a*=1
if a==0:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
N=int(input())
num=9
ans=0

for i in range(5):
    if N%num==0:
        ans=N/num
        if ans>=10:
            print('No')
            break;
        else :
            print('Yes')
            break;
    else :
        num-=1
        print('No')
        break;

Submission status: Wrong Answer

Solution code:
N = list(map(int, input().split()))
# N = 50

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
aaa = 0 
box = []
for i in range(1, 10):
    if N % i == 0:
        box.append(int(N/i))
for k in box:
    if k>=1 and k<=9:
        aaa = 1 
        print("Yes")
if aaa ==0:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=int(input())	
flag=1
if a<=81:
    for i in range(2,10):
   
        if a%i==0 and a/i <=9:
            print("Yes")
            flag=-1
            break;
            

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    N = int(input())
    maxI = N // 2
    for i in range(1, min(maxI, 10)):
        n1 = N % i
        n2 = N // i
        if n1 == 0 and n2 < 10:
            print("Yes")
            exit()

    print("No")