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:
a = int(input())

for i in range(9):
  for j in range(9):
    if (a == i*j):
      print('Yes')
      break
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
N2=N3=N5= N7 = 0
while N % 2 == 0:
    N = N / 2
    N2 += 1
while N % 3 == 0:
    N = N / 3
    N3 += 1
while N % 5 == 0:
    N = N / 5
    N5 += 1
while N % 7 == 0:
    N7 += 1
if N2>6 or N3>4 or N5>1 or N7>1:
    print("No")
elif (2**N2) * (3**N3) * (5**N5) * (7**N7) > 81:
    print("No")
elif N2==N3==N5==N7==0:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = int(input())

for i in range(9):
  for j in range(9):
    if (a == i*j):
      print('YES')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
list = list(range(9, 1, -1))
ans = 0
flag = 0

while n > 1:
    for i in list:
        if n % i == 0:
            n = n / i
            ans += 1
            break
        else:
            flag = 1

    if flag == 1:
        ans = 0
        break


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

Submission status: Wrong Answer

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

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 1 <= N // i <= 9:
        a = 1
if a == 0:
    print("No")
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
n = int(input())
list = list(range(9, 1, -1))
ans = 0
flag = 0

while n > 1:
    for i in list:
        if n % i == 0:
            n = n / i
            ans += 1
            break
        else:
            flag = 1

    if flag == 1:
        break


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

Submission status: Wrong Answer

Solution code:
N=int(input())

x=[]
for i in range(1,10):
    if (N/i).is_integer()==True and (N/i)<10 :
        print(N/i)
        x.append('Yes')
        break

if 'Yes' in x:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N = input()
list = [str(x*y) for x in range(1,10) for y in range(1,10)]
result = str(N) in list

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

Submission status: Wrong Answer

Solution code:
n = int(input())
c=9
d = []
for i in range(2):
    while c>1:
        if n/c==int(n/c):
            n /= c
            c = 9
        else:
            c -=1
print('Yes'if n==1 else 'No')

Submission status: Wrong Answer

Solution code:
N = int(input())
N2=N3=N5= N7 = 0
while N % 2 == 0:
    N = N / 2
    N2 += 1
while N % 3 == 0:
    N = N / 3
    N3 += 1
while N % 5 == 0:
    N = N / 5
    N5 += 1
while N % 7 == 0:
    N7 += 1
if N2>6 or N3>4 or N5>1 or N7>1:
    print("No")
elif (2**N2) * (3**N3) * (5**N5) * (7**N7) > 81:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
N=int(input())

b=[i for i in range(1,10)]
x=[]
for i in b:
    if (N/i).is_integer()==True and (N/i)<10 :
        print(N/i)
        x.append('Yes')
        break

if 'Yes' in x:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
data = int(input())
     
if __name__ == "__main__":
  for i in range(9):
    for j in range(9):
      temp = i*j
      if temp == data:
        print("YES")
      else:
        print("NO")

Submission status: Wrong Answer

Solution code:
n = int(input())
list = list(range(9, 1, -1))
ans = 0

while n > 1:
    for i in list:
        if n % i == 0:
            n = n / i
            ans += 1
            break
    if ans == 0:
        break


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
c=9
d = []
for i in range(2):
    if n/c==int(n/c):
        n /= c
        c = 9
    else:
        c -=1
print('Yes'if n==1 else '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<=9:
  print("Yes")
elif (N==10 or N == 30 or N == 50 or N == 70 or N == 80 or isPrime(N) or N>81):
  print("No")
else:
  i = 2
  while(i<=9):
    if N%i == 0 and 1<=N/i <= 9:
      print("Yes")
      break
    else:
      if i == 9:
        print("No")
        break
      else:
        i = i + 1

Submission status: Wrong Answer

Solution code:
#coding: utf-8
# n,k = int(input())
# list = list(map(int,input().split()))
# strings = list(map(str, [input() for i in range(amount)]))

n = int(input())
ans = 'No'

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

print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())
list = list(range(9, 1, -1))
ans = 0

while n > 1:
    for i in list:
        if n % i == 0:
            n = n / i
            ans += 1
            break
    if ans == 0:
        break


if 0 < ans < 2:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
num = int(input())

def exe001(num):
    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:
                if len(factor_list) > 6:
                    flag = 'No'
                    break
                elif len(factor_list) > 5:
                    if 3 in factor_list:
                        flag = 'No'
                        break                      

    elif len(factor_list) == 3:
        if factor_list[0] * factor_list[1] < 10 and factor_list[2] < 10:
            pass
        else:
            flag = 'No'

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


    print(flag)
exe001(num)

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<=9:
  print("Yes")
elif (N==10 or N == 30 or N == 50 or N == 70 or N == 80 or isPrime(N) or N>81):
  print("No")
else:
  i = 2
  while(i<=9):
    if N%i == 0 and 1<=N//i <= 9:
      print("Yes")
      break
    else:
      if i == 9:
        print("No")
        break
      else:
        i = i + 1

Submission status: Wrong Answer

Solution code:
N = int(input())

first = 0
second = 0
flag =0
for i in range(10):
    first +=1
    second = 0
    for j in range(10):
        second +=1
        if(first * second == N):
            flag =1
if(flag == 1):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())
a = 0
s = 0
for x in range(1,10):
    s=N//x
    if N%x==0:
        if s < 10:
            a = 1
if a ==1:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
N=int(input())
A=[10,20,30,40,50,60,70,80,90,100]

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

Submission status: Wrong Answer

Solution code:
N = int(input())

F = False
n = 0
if 81 < N:
    n = "No"
elif N <= 9:
    n = "Yes"
else:
    if N <= 25:
        for a in range(1, 6):
            for b in range(1, 6):
                if a * b == N:
                    n = "Yes"
                    break

    elif 36 <= N:
        for a in range(6, 10):
            for b in range(6, 10):
                if a * b == N:
                    n = "Yes"
                    break
    else:
        for a in range(1, 6):
            for b in range(6, 10):
                if a * b == N:
                    n = "Yes"
                    break

if n is 0:
    n = "No"
print(n)

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

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

def prime(x):
    for i in range(1,10):
        if x % i ==0 and x / i <= 9:
          print ('yes')
          sys.exit(0)
    print ('no')

prime(a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

first = 0
second = 0
flag =0
for i in range(10):
    first +=1
    for j in range(10):
        second +=1
        if(first * second == N):
            flag =1
if(flag == 1):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
a = 0
s = 0
for x in range(1,10):
    s=N//x
    if N%x==0:
        if s < 10:
            a = 1
if a ==1:
    print('YES')
else:
    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<=9:
  print("Yes")
elif (N==10 or N == 30 or N == 50 or N == 70 or N == 80 or isPrime(N)):
  print("No")
else:
  i = 2
  while(i<=9):
    if N%i == 0 and 1<=N//i <= 9:
      print("Yes")
      break
    else:
      if i == 9:
        print("No")
        break
      else:
        i = i + 1

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
list = list(range(9, 1, -1))
ans = 0

while n > 1:
    for i in list:
        if n % i == 0:
            n = n / i
            ans += 1
            break

if ans > 2:
    print("no")
else:
    print("yes")

Submission status: Wrong Answer

Solution code:
num = int(input())

def exe001(num):
    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

    elif len(factor_list) == 3:
        if factor_list[0] * factor_list[1] < 10 and factor_list[2] < 10:
            pass
        else:
            flag = 'No'

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


    print(flag)

exe001(num)

Submission status: Wrong Answer

Solution code:
N  = int(input())

solve = 0
for i in range(9):
    A = i+1
    for j in range(9):
        B = j+1
        if A*B == N:
            print('Yes')
            solve = 1
            break
        if solve == 1:
          break
if solve == 0:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
c=9
d = []
while True:
    if n/c==int(n/c):
        n = n/c
        d.append(1)
        c = 9
    else:
        c -= 1
    if c<3:
        print('No')
        break
    if c==n:
        if len(d)==2:
            print('No')
        else:
            print('Yes')
        break

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<=9:
  print("Yes")
elif (N==10 or N == 30 or N == 50 or N == 70 or N == 80 or isPrime(N)):
  print("No")
else:
  i = 2
  while(i<=9):
    if N%i == 0 and 1<=N//i <= 9:
      print("Yes")
      break
    else:
      if i == 10:
        print("No")
        break
      else:
        i = i + 1

Submission status: Wrong Answer

Solution code:
import sys

for line in sys.stdin:
    N = int(line)
    found=False
    for i in range(1, 10, 1): 
        if N % i == 0:
            found = True
            break
    if found:
        print('Yes')
    else:
        print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
a=int(input())
def make_divisors(n):
    divisors = []
    for i in range(1, int(n**0.5)+1):
        if n % i == 0:
          if(i>9):
            #print(i)
            print("No")
            sys.exit()
            divisors.append(i)
          if i != n // i:
            divisors.append(n//i)
                
    return divisors
  
list=[]
list=make_divisors(a)
print("Yes")

Submission status: Wrong Answer

Solution code:
n = map(int, input().split())			# "5 7" -> ["5", "7"] -> 5, 7 => N=5,K=7

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

print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())

for i in range(1,10):
  q = N // i
  mod = N % i
  if mod == 0:
    if q <= 9:
      print(q,i)

Submission status: Wrong Answer

Solution code:
n = int(input())

cnt = 0
a = []
i = 9
while n>1 and i>1:
    if n % i == 0:
        while n % i==0 and n != 1:
            n = n // i
            a.append(i)
    i-=1

if len(a) == 1 or len(a) == 2:
    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
        elif j*i>n:
            break
        j+=1
    i+=1
if b==False:
    print('No')

Submission status: Wrong Answer

Solution code:
n = map(int, input().split())			# "5 7" -> ["5", "7"] -> 5, 7 => N=5,K=7

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

print(ans)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
n = int(input())
k = 0
for i in range(1, 9):
    if n % i == 0:
      print("Yes")
      k = 1
      break
if k == 0:
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
ans = ''
for i in range(1,10):
    mod = N / i
    if mod < 10:
        ans = 'Yes'
        break
    else:
        ans = 'No'

print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())
k = 0
for i in range(1, 9):
    if n % i == 0:
      print("YES")
      k = 1
      break
if k == 0:
    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<=9:
  print("Yes")
elif (N==10 or N == 30 or N == 50 or N == 70 or N == 80 or isPrime(N)):
  print("No")
else:
  i = 2
  while(i<10):
    if N%i == 0 and N//i < 10:
      print("Yes")
      break
    else:
      if i == 10:
        print("No")
        break
      else:
        i = i + 1

Submission status: Wrong Answer

Solution code:
num = int(input())
Flag = False
for x in range(1,10):
    for y in range(x,10):
        print("x"+str(x)+":y"+str(y))
        if x * y == num:
            Flag = True
            break
    if Flag == True:
        break

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
import sys


def solve(A: int):

    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = next(tokens)
    solve(A)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

for i in a:
  if n%i==0:
    if (n/i)<=9:
      print("Yes")
      break
    else:
      print("No")
      break
  else:
    print("No")
    break

Submission status: Wrong Answer

Solution code:
import sys
a=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:
              if(n//i>9):
                print("No")
                sys.exit()
                divisors.append(n//i)
                
    return divisors
  
list=[]
list=make_divisors(a)
print("Yes")

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<=9:
  print("Yes")
elif (N==10 or N == 30 or N == 50 or N == 70 or N == 80 or isPrime(N)):
  print("No")
else:
  i = 2
  while(i<10):
    if N%i == 0 and N//i < 10:
      print("Yes")
      break
    else:
      if i == 10:
        break
      else:
        i = i + 1

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 == True:
        break

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

Submission status: Wrong Answer

Solution code:
n = int(input())
for i in range(1, 9):
  if n % i == 0:
    print("YES")
    exit()
print("NO")

Submission status: Wrong Answer

Solution code:
A = int(input())
c = 0
for i in range(1,10):
  if A % i == 0:
    c += 1
if c >1:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
def solve(N):
    for i in range(2, 10):
        if N % i == 0:
            b = N // i
            if b < 10:
                return "Yes"
    return "No"


N = int(input())
print(solve(N))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import sys
a=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:
              if(n//i):
                print("No")
                sys.exit()
                divisors.append(n//i)
                
    return divisors
  
list=[]
list=make_divisors(a)
print("Yes")

Submission status: Wrong Answer

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

for i in a:
  if n%i==0:
    if (n/i)<=9:
      print("Yes")
      break
    else:
      print("No")
      break
  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()
print("NO")

Submission status: Wrong Answer

Solution code:
N = int(input())

F = False
if 81 < N:
    print("No")
    F = True
elif N <= 9:
    print("Yes")
    F = True

if not F:
    for a in range(2, 10):
        for b in range(2, 10):
            if a * b == N:
                F = True
                print("YES")
if not F:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
if N > 81:
  print("No")
elif 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:
  print("No")
else:
  print("Yes")

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)
if  a == 1:
 print("Yes")
 sys.exit()
 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 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

a = prime_factorize(n = N)

if len(a) == 0:
    if N > 9:
        print('No')
    else:
        print('Yes')
elif len(a) == 4:
    if a[2] * a[3] > 9:
        print('No')
    else:
        print('Yes')
elif len(a) == 1:
    if a[0] > 9:
        print('No')
    else:
        print('Yes')
elif len(a) == 2:
    if a[1] > 9:
        print('No')
    else:
        print('Yes')
elif len(a) == 3:
    if a[1] * a[2] > 9:
        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(i+1,9):
        if i*j == n:
            a.append(n)
if len(a)>0:
    print("Yes")
else:
    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')
elif n>=82:
  print('No')
else:
  print('No')

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
    
if cnt == 0:
    print("NO")

Submission status: Wrong Answer

Solution code:
n = int(input())
bl = 0
for i in range(1,9):
    for j in range(1,9):
        if n == i * j:
            bl = 1
            break

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

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:
        break
if flag == 1:
    print("Yes")
else:
    print("No")

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

a = prime_factorize(n = N)

if len(a) == 0:
    if N > 9:
        print('No')
    else:
        print('Yes')
elif len(a) == 4:
    if a[2] * a[3] > 9:
        print('No')
    else:
        print('Yes')
elif len(a) == 1:
    if a[0] > 9:
        print('No')
    else:
        print('Yes')
elif len(a) == 2:
    if a[1] > 9:
        print('No')
    else:
        print('Yes')

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)
if not a == 0:
 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())
if 1<=n<=9:
      print('Yes')
elif n==10:
      print('Yes')
elif n==12:
      print('Yes')
elif n==14:
      print('Yes')
elif n==15:
      print('Yes')
elif n==16:
      print('Yes')
elif n==18:
      print('Yes')
elif n==20:
      print('Yes')
elif n==21:
      print('Yes')
elif n==24:
      print('Yes')
elif n==25:
      print('Yes')
elif n==27:
      print('Yes')
elif n==28:
      print('Yes')
elif n==30:
      print('Yes')
elif n==32:
      print('Yes')
elif n==35:
      print('Yes')
elif n==36:
      print('Yes')
elif n==40:
      print('Yes')
elif n==42:
      print('Yes')
elif n==45:
      print('Yes')
elif n==48:
      print('Yes')
elif n==54:
      print('Yes')
elif n==56:
      print('Yes')
elif n==63:
      print('Yes')
elif n==64:
      print('Yes')
elif n==72:
      print('Yes')
elif n==81:
      print('Yes')
else:
      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')
elif n==0:
  print('No')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
N=int(input())
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

l = prime_factorize(N)
A=1
B=1
for i in range(len(l)):
    if i%2 == 0:
        A*=l[i]
    else:
        B*=l[i]
if A<10 and B<10:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
num = int(input())
Flag = False
for x in range(2,10):
    for y in range(2,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 = 'NO'
for i in range(2,10):
    if N % i == 0 and N / i < 10:
        flg = 'YES'
        break
print(flg)