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())
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:
def f(n):
  for i in range(1,10):
    if n%i<=9:
      return "Yes"
  return "No"
n=int(input())
c=f(n)
print(c)

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!

N = int(input())
flag = 0

for i  in range(10):
    atai = N / (i + 1) 
    for j in range(10):
        if atai == j + 1:
            flag = 1
            break
if flag == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

ans = "No"

for x in range(2, 10):
    for y in range(2, 10):
        if N / (x * y) == 1:
            ans = "Yes"

print(ans)

Submission status: Wrong Answer

Solution code:
import sys
def is_integer(n):
    try:
        float(n)
    except ValueError:
        return False
    else:
        return float(n).is_integer()

a = input()
a = int(a)
k = range(1,a)
for s in k:
 res = a/s
#print("s",s)
 #print("res",res)
 try:
  res = int(res)
 except:
  break
 if is_integer(s):
  if is_integer(res):
   if len(str(s)) == 1:
    if len(str(res)) == 1:
     #print(res,s)
     if res * s == a:
      print("Yes")
      sys.exit()
print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
def isPrime(n) : 
  
    # Corner cases 
    if (n <= 1) : 
        return False
    if (n <= 3) : 
        return True
  
    # This is checked so that we can skip  
    # middle five numbers in below loop 
    if (n % 2 == 0 or n % 3 == 0) : 
        return False
  
    i = 5
    while(i * i <= n) : 
        if (n % i == 0 or n % (i + 2) == 0) : 
            return False
        i = i + 6
  
    return True
if N>=1 and N<=81 and N!=30 and N!=50 and N!=60 and N!=70 and N!=80 and not(isPrime(N)):
  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 < 10:
        print('YES')
        break
    elif i == 9 :
        print('NO')

Submission status: Wrong Answer

Solution code:
def prime_factorize(n):
    a = []
    while n % 2 == 0:
        a.append(2)
        n //= 2
    f = 3
    while f * f <= n:
        if n % f == 0:
            a.append(f)
            n //= f
        else:
            f += 2
    if n != 1:
        a.append(n)
    return a

n = int(input())

tmp = prime_factorize(n)

if len(tmp) != 0 and n <= 81:
    print("Yes")
elif n == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n=int(input())
if 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==79 or n==83 or n==89 or n==97:
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

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

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:
num = int(input())
Flag = False
for x in range(2,10):
    for y in range(x,10):
        if x * y == num:
            Flag = True
            break

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

Submission status: Wrong Answer

Solution code:
N = int(input())
flg = False
for i in range(2, 10):
    if N%i==0 and N//i<10:
        flg = True
        break

if flg:
    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:
            result = "Yes"
        else:
            result = 'No'
print(result)

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

Submission status: Wrong Answer

Solution code:
num = int(input())
factor = 2
factor_list = []
flag = 'Yes'

while num > 1 or factor < 10:
    if num % factor == 0:
        factor_list.append(factor)
        num //= factor
    else:
        factor += 1
# print(factor_list)

if len(factor_list) >= 3:
    for item in factor_list:
        if item >= 5:
            flag = 'No'
            break

else:
    for item in factor_list:
        if item >= 10:
            flag = 'No'
            break


print(flag)

Submission status: Wrong Answer

Solution code:
N = int(input())
def isPrime(n) : 
  
    # Corner cases 
    if (n <= 1) : 
        return False
    if (n <= 3) : 
        return True
  
    # This is checked so that we can skip  
    # middle five numbers in below loop 
    if (n % 2 == 0 or n % 3 == 0) : 
        return False
  
    i = 5
    while(i * i <= n) : 
        if (n % i == 0 or n % (i + 2) == 0) : 
            return False
        i = i + 6
  
    return True
if N>=1 and N<=81 and N!=30 and N!=50 and N!=60 and N!=70 and N!=80 :
  if not isPrime(N):
    print("Yes")
  else:
    print("No")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
num = int(input())
Flag = True
for x in range(2,10):
    for y in range(x,10):
        if x * y == num:
            Flag = False
            break

if Flag:
    print("NO")
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
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

a = int(input())
N = make_divisors(a)
if a < 10:
  print("Yes")
  
else:
  
  N.remove(1)
  N.remove(a)
  #print(N)
  if N == []:
    print("NO")
  else:
    if len(N) == 1:
      if N[0]<10:
        print("Yes")
      else:
        print("No")
    else:
      if N[0] < 10 and N[1] <10:
        print("Yes")
      else:
        print("NO")

Submission status: Wrong Answer

Solution code:
N = int(input())

ans = "No"

if 9 < N and N <= 81:
    for x in range(2, 10):
        for y in range(2, 10):
            if N / (x * y) == 1:
                ans = "Yes"

print(ans)

Submission status: Wrong Answer

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

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
            break
if result:print('YES')
else: print('NO')

Submission status: Wrong Answer

Solution code:
f = 0
N = int(input())
for x in range(1,10):
    for y in range(1,10):
        if x * y == N:
            print('Yes')
            f = 1
        elif x * y == 81 and N == 81:            
            print('No')
            f = 0
    if f == 1:
        break

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'
if a == 1: f = 'Yes'            
print(f)

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!

N = int(input())
flag = 0

for i  in range(10):
    atai = N / (i + 1) 
    for j in range(10):
        if atai == j:
            flag = 1
            break
if flag == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
def is_integer(n):
    try:
        float(n)
    except ValueError:
        return False
    else:
        return float(n).is_integer()

a = input()
a = int(a)
k = range(1,a)
for s in k:
 res = a/s
 #print(s)
 #print(res)
 try:
  res = int(res)
 except:
  pass
 if is_integer(res):
  if len(str(s)) == 1:
   if len(str(res)) == 1:
    #print(res,k)
    print("Yes")
    sys.exit()
print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

judge = False


if N <= 81:
    for i in range(1,10,1):
        for j in range(1,10,1):
            if i*j == N:
                judge = True
                break
        if judge:
            break


if judge:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
flag = 0
for x in range(1,9):
    for y in range(1,9):
        if x*y == n:
            flag = 1
if flag == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

for i  in range(10):
    atai = N / (i + 1) 
    for j in range(10):
        if atai == j:
            flag = 1
            break
if flag == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n = 81
l = []
for i in range(1,10):
    for j in range(1,10):
        x = i * j
        l.append(x)
if n not in l:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
N = int(input())

if 81 < N:
    print("No")
else:
    if N <= 9:
        print("YES")
    else:
        if (N % 2) == 0:
            print("Yse")
        else:
            if (N % 3) == 0:
                print("Yse")
            else:
                if (N % 5) == 0:
                    print("Yes")
                else:
                    if (N % 7) == 0:
                        print("Yes")
                    else:
                        print("No")

Submission status: Wrong Answer

Solution code:
a=int(input())
for i in range(9):
 if a%(9-i)==0 and a/(9-i)<10:
  print("yes")
  break
else:
 print("no")

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:
num = int(input())
Flag = True
for x in range(2,10):
  if num % x == 0:
    Flag = False
    break
if Flag:
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

Solution code:
n=int(input())

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

Submission status: Wrong Answer

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

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

ans = 0
_not = 0

for i in list_aaa:
    ans = math.ceil(N/i)
    if ans >=10 or N%i >=1 :
        _not +=1
    else:
        _not +=0

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
if n>=1 and  n<=81:
  if n==50 or n==60 or n==70 or n==80:
    print('No')
  else:
    print("Yes")
elif n>81:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
for i in range(10):
    j = i
    while(j <= 9):
        if n == i*j:
            print("Yes")
            break
        j += 1
    if i == 9 and j == 9:
        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')
            break
else:
    print('No')

Submission status: Wrong Answer

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

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

ans = 0
_not = 0

for i in list_aaa:
    ans = math.ceil(N/i)
    if ans >=10 and N%i >=1 :
        _not +=1
    else:
        _not +=0

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

Submission status: Wrong Answer

Solution code:
num = input()
numlist = [i*j for i in range(1,10,1) for j in range(1,10,1)]
if int(num) in numlist:
    print("YES")
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


for i in reversed(range(2,10)):
    if N % i == 0:
        j = N / i

        if j >= 10:
            print("No")
            flag = 1
            break

        else:
            print("Yes")
            flag = 1
            break

    else:
        continue

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

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    a = int(input())
    a = int(a)
    flag=False
    for i in range(1, 10):
        for j in range(1, 10):
            if a == i*j:
                print('Yes')
                flag=True
    if flag==False :
        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) <= 9:
    print("Yes")
    exit()
  else:
    continue

print("No")

Submission status: Wrong Answer

Solution code:
import math
def trial_division(n):
    primeN = n
    #素因数を格納するリスト
    factor = []
    #2から√n以下の数字で割っていく
    tmp = int(math.sqrt(n)) + 1
    for num in range(2,tmp):
        while n % num == 0:
            n //= num
            factor.append(num)
    #リストが空ならそれは素数
    if not factor:
        return primeN
    else:
        factor.append(n)
        if factor[-1]==1:
            factor.remove(1)
        return factor
import sys
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
mod = 10**9 + 7
inf = float('inf')
#for i in range(100):
#    N=i+1
N = I()
if N>=82:
    print("No")
    exit()
ans = [1]

ans = trial_division(N)
if type(ans) is int:
    if ans>=10:
        print("No")
    else:
        print("Yes")
elif 5 in ans and ans.count(5)>=2 and len(ans)>=3:
    print("No")
elif 7 in ans:
    if ans.count(7)>=2 and len(ans)>=3:
        print("No")
    elif len(ans)>=4:
        if 3 in ans:
            print("No")
        else:
            print("Yes")
    else:
        print("Yes")
elif len(ans)>=6 and ans.count(3)>=1:
    print("No")
elif max(ans)>=10:
    print("No")

else:
    print("Yes")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
N = int(input())

for i in range(8):
    if N%(i+1) == 0:
        A = N/(i+1)
        if A <= 9:
            print("Yes")
            break
    else:
        print("No")
        break

Submission status: Wrong Answer

Solution code:
n = int(input())

def calc(n):
  for i in range(n + 1):
    div = -1
    if(i != 0):
      div = n / i
    
    if div < 10 and div != -1:
      return "Yes"
  return "No"

print(calc(n))

Submission status: Wrong Answer

Solution code:
N =int(input())
ans = False
for i in range(2,10):
    if(N%i == 0 and N//i < 10):
        ans = True

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

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    a = int(input())
    a = int(a)
    flag=False
    for i in range(1, 10):
        for j in range(1, 10):
            if a == i*j:
                print('yes')
                flag=True
    if flag==False :
        print('no')

Submission status: Wrong Answer

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


for i in reversed(range(2,10)):
    if N % i == 0:
        j = N / i

        if j >= 10:
            print("No")
            break
            flag = 1
        else:
            print("Yes")
            break
            flag = 1
    else:
        continue

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

Submission status: Wrong Answer

Solution code:
n=int(input())

for i in range(1,9):
  if n/i<=9:
    print("Yes")
  else:
    print("No")

Submission status: Wrong Answer

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

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,10):
    if n%i == 0:
        if n//i in range(10):
            print("Yes")
            break
else:
    print("No")

Submission status: Wrong Answer

Solution code:
def prime_factorize(n):
  a = []
  while n % 2 == 0:
      a.append(2)
      n //= 2
  f = 3
  while f * f <= n:
      if n % f == 0:
          a.append(f)
          n //= f
      else:
          f += 2
  if n != 1:
      a.append(n)
  return a

n = int(input())

if len(prime_factorize(n)) == 0 or n > 81:
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print("No")

Submission status: Wrong Answer

Solution code:
N=int(input())

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

Submission status: Wrong Answer

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

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

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

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

Submission status: Wrong Answer

Solution code:
def f(n):
  for i in range(1,10):
    if n%i==0:
      return 'Yes'
  return 'NO'
n=int(input())
c=f(n)
print(c)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import math
def trial_division(n):
    primeN = n
    #素因数を格納するリスト
    factor = []
    #2から√n以下の数字で割っていく
    tmp = int(math.sqrt(n)) + 1
    for num in range(2,tmp):
        while n % num == 0:
            n //= num
            factor.append(num)
    #リストが空ならそれは素数
    if not factor:
        return primeN
    else:
        factor.append(n)
        if factor[-1]==1:
            factor.remove(1)
        return factor
import sys
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
mod = 10**9 + 7
inf = float('inf')
#for i in range(100):
#    N=i+1
N = I()
ans = [1]

ans = trial_division(N)
if type(ans) is int:
    if ans>=10:
        print("No")
    else:
        print("Yes")
elif 5 in ans and ans.count(5)>=2 and len(ans)>=3:
    print("No")
elif 7 in ans:
    if ans.count(7)>=2 and len(ans)>=3:
        print("No")
    elif len(ans)>=4:
        if 3 in ans:
            print("No")
        else:
            print("Yes")
    else:
        print("Yes")
elif len(ans)>=6 and ans.count(3)>=1:
    print("No")
elif max(ans)>=10:
    print("No")

else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
n = int(input())
flg = "False"
if n <= 9:
    print("Yes")
else:
    for i in range (2, 9):
        if n % i == 0 and n / i <= 9:
            print("Yes")
            flg = "True"
            break
if flg == "False":
    print("No")

Submission status: Wrong Answer

Solution code:
N =int(input())
ans = False
for i in range(2,9):
    if(N%i == 0 and N//i < 10):
        ans = True

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

Submission status: Wrong Answer

Solution code:
li=[]
ok=False
a=int(input())
for i in range(1,10):
    for j in range(1,10):
        if(i*j==a and a%j==0 and a%j==0 ):
            li.append({i,j})
            break
if(len(li)>=1):
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

ans = 0
_not = 0

for i in list_aaa:
    ans = math.ceil(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:
x=int(input())

p=[]
for i in range(8):
    for j in range(8):
        p.append((i+1)*(j+1))

for k in p:
    if k==x:
        print("Yes")
        break
    elif k==81:
        print("No")

Submission status: Wrong Answer

Solution code:
number_s = input()
num = int(number_s)
answer = "No"

for i in range(1,9):
    if num % i == 0:
        if num / i <= 9:
            answer = "Yes" 
print(answer)

Submission status: Wrong Answer

Solution code:
N = int(input())

if 81 < N:
    print("No")
else:
    if (N % 7) == 0:
        print("Yes")
    else:
        if (N % 5) == 0:
            print("Yes")
        else:
            if (N % 3) == 0:
                print("Yse")
            else:
                if (N % 2) == 0:
                    print("Yse")
                else:
                    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
flg = "False"
if n <= 9:
    print("Yes")
else:
    for i in range (2, 9):
        if n % i == 0 and n / i <= 9:
            print("Yes")
            flg = "True"
            break
if flg == "Flse":
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
s = [2,3,4,5,6,7,8,9]
flag = True
 
if 1< n <=9:
    print("Yes")
elif n == 1:
    print("No")
else:
    for i in s:
        if n % i == 0 and n/i <= 9:
            flag = False
            print("Yes")
            break
if flag:
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
for i in range(2,10):
    while n%i == 0:
        n = n/i
if n==1:
        print("Yes")
else:
        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:
      if N/i<=9:
          print('Yes')
          a=1
          break
  if a==0:
    print('No1')

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

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

N = int(input())
o = 9
for i in range(9):
  if N%o == 0:
    a = N/o
    if 0<a<=9:
      print('Yes')
      break
    else:
      print('NO')
      break
  else:
    ('NO')
  o = o - 1

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
if N==1 or N==2 or N==3 or N==4 or N==5 or N==6 or N==7 or N==8 or N==9 or N==10 or N==12 or N==14 or N==15 or N==16 or N==18 or N==20 or N==21 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==63 or N==64 or N==72 or N==81:
    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 N == 1:
    print('Yes')

if not done:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
N =int(input())
ans = False
for i in range(2,9):
    if(N%i == 0):
        ans = True

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

Submission status: Wrong Answer

Solution code:
num = int(input())
flag = "No"
for i in range(2,10):
  for j in range(2,10):
    if i*j == num:
      flag = "Yes"

print(flag)

Submission status: Wrong Answer

Solution code:
n=int(input())
a=0
for i in range(9):
  for j in range(9):
    if n==(i+1)*(j+1):
      print("yes")
      a+=1
      break
  if a!=0:
    break
if a==0:
  print("no")

Submission status: Wrong Answer

Solution code:
kuku =[]

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

print('YES' if int(input()) in kuku else '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
        if n == (j*i):
            result = 'Yes'
    i = i + 1
print(result)

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 1 <= shou and shou < 10:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())

if n >= 81:
    print('No')
    exit()
else:
    for i in range(1, 10):
        devide = n / i
        if (devide.is_integer() and devide <= 9):
            print('Yes')
            exit()
        else:
            continue
    print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())

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

if able == True:
    print('YES')
else:
    print('No')

Submission status: Wrong Answer

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



def solve(num):
    for i in range(1, 10):
        if int(num/i) == num/i:
            return 'Yes'
    return 'No'



def main():
    n = input_from_console()

    print(solve(n))


if __name__ == "__main__":
    import sys

    if sys.gettrace():  # Check if the python interpreter is in debug mode or not.
        check_cases()
    else:
        main()

Submission status: Wrong Answer

Solution code:
n = int(input())
s = [2,3,4,5,6,7,8,9]
flag = True

if 1< n <=9:
    print("Yes")
elif n == 1:
    print("No")
else:
    for i in s:
        if n % i == 0 and n//i <= 9:
            flag = False
            print("Yes")
            break
if flag:
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
flg = "False"
if n <= 9:
    print("Yes")
else:
    for i in range (2, 9):
        if n % i == 0:
            print("Yes")
            flg = "True"
            break
if flg == "Flse":
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
tmp = 101
for i in range(2,10):
    if N % i == 0:
        tmp = i
    else:
        continue
tmp2 = N // tmp
tmp3 = N % tmp
if tmp2 <10 and tmp3 ==0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

for i in range(5):
    if N%num==0:
        ans=N/num
        if ans>=10:
            break;
        else :
            ans_fin+=1
            break;
    else :
        num-=1
if ans_fin==1:
    print('Yes')
else :
    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 == 63    or n == 64   or n == 72   or n == 81  :
  print('Yes')
  exit()
print('No')

Submission status: Wrong Answer

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

N = int(input())
o = 9
for i in range(9):
  if N%o == 0:
    a = N/o
    if a<=9:
      print('Yes')
      break
    else:
      print('NO')
      break
  else:
    ('NO')
  o = o - 1