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:
L=[1,2,3,4,5,6,7,8,9,10,11,12,14,15,16,18,20,21,24,25,27,28,30,32,35,36,40,42,45,48,49,54,56,64,72,81]
N=int(input())
print('NYoe s'[N in L::2])

Submission status: Wrong Answer

Solution code:
N = int(input())
list_a=[None]*45
count = 0
for i in range(1,10):
    for j in range(1,i+1):
        list_a[count] = i*j
        count = count + 1
if N in list_a :
    print("Yes")
else:
    print("No")
print(list_a)

Submission status: Wrong Answer

Solution code:
N = int(input())

for A in range(1, 10):
    for B in range(1, 10):
        if N == A*B:
            print('Yes')
            True
            break
if False:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A=int(input())

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
import numpy as np
n = int(input())

ls = np.array(np.arange(1,10))
print(ls)

x = 0
for i in ls:
    x += (n / i) in ls

print("No" if x == 0 else "Yes")

Submission status: Wrong Answer

Solution code:
import numpy as np
given = np.array( list( map( int, input().split() ) ) )

if all( (given <= 9) & (given >= 1) ):
  result = np.prod( given )
else:
  result = -1

print( result )

Submission status: Wrong Answer

Solution code:
N = int(input())
dict = {}

for i in range(1, 10):
    for j in range(i+1, 10):
        dict[i*j] = True
print('Yes' if dict.get(N) else 'No')

Submission status: Wrong Answer

Solution code:
#abc144a
import sys

n=int(raw_input())
for i in range(1,10):
 for j in range(i+1,10):
  if i*j==n:
   print 'Yes'
   sys.exit()
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")
            quit()
print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

for i in range(9):
    for j in range(9):
        if i * j == N:
            print("Yes")
            quit()
print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

for i in range(N):
    for j in range(N):
        if i * j == N:
            print("Yes")
            quit()
print("No")

Submission status: Wrong Answer

Solution code:
def main():
  n = int(input())
  for f in range(2, 10):
    while n % f == 0:
      n = n // f
  
  print('Yes' if n == 1 else 'No')


main()

Submission status: Wrong Answer

Solution code:
n = int(input())
b = False
i=1
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())
b = False
i=2
while i<=9:
    j=1
    while j<=i:
        if j*i==n:
            print('Yes')
            b = True
            break
        if j*i>n:
            break
        j+=1
    i+=1
if b==False:
    print('No')

Submission status: Wrong Answer

Solution code:
print(' YNeos'[int(input())in[a//9*(a%10)for a in range(100)]::2])

Submission status: Wrong Answer

Solution code:
print(' YNeos'[int(input())in[a//9*(a%11)for a in range(99)]::2])

Submission status: Wrong Answer

Solution code:
print(' YNeos'[int(input())in[a//9*(a%10)for a in range(99)]::2])

Submission status: Wrong Answer

Solution code:
print(' YNeos'[int(input())in[a//10*(a%10)for a in range(99)]::2])

Submission status: Wrong Answer

Solution code:

n = int(input(""))

f=0

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

        print(i,j,i*j)
        a= i*j

        if n == (i*j) :
            
            print("Yes")
            f = 1
            break
        else:
            None

    if f == 1 :
        break

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())

ans="no"

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

Submission status: Wrong Answer

Solution code:

#a,b = map(int,input("a,b").split())

n = int(input(""))


f=0

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

        if n == i*j :
            
            print("Yes")
            f = 1
            break
        else:
            None

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
b = False
i=2
while i<=9:
    j=1
    while j<=9:
        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())
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())
b = False
i=1
while i<=9:
    j=1
    while j<=i:
        if j*i==n:
            print('Yes')
            b = True
            break
        if j*i>n:
            break
        j+=1
    i+=1
if b==False:
    print('No')

Submission status: Wrong Answer

Solution code:
r=range(1,10);print('YNeos'[not(int(input())in[i*j for i,j in zip(r,r)])::2])

Submission status: Wrong Answer

Solution code:
print(' YNeos'[input()in[str(a%10*a//10)for a in range(100)]::2])

Submission status: Wrong Answer

Solution code:

n=int(input())#入力

for a in range(10):
    for b in range(10):
        if a*b==n:
            print("Yes")
            break #Yesになった時にループを終了
    if a*b==81:
        print("No")#break(if文条件)が一度も起きなかった時のみ出力

Submission status: Wrong Answer

Solution code:
n=int(input())#入力

for a in range(10):
    for b in range(10):
        if a*b==n:
            print("Yes")
            break #Yesになった時にループを終了
print("No")#break(if文条件)が一度も起きなかった時のみ出力

Submission status: Wrong Answer

Solution code:
import math
m = input()
n = int(m)
result = math.sqrt(n)
if result<=9:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=int(input())

def insu(n):
    arr=[]
    for i in range(2,10):
        if n%i==0:
            while n%i==0:
                n=n/i
                arr.append(i)
        arr.append(n)
    return arr

list_all=insu(a)

if all([i < 10 for i in list_all]):
    ans="Yes"
else:
    ans="No"
print(ans)

Submission status: Wrong Answer

Solution code:
a=int(input())

def insu(n):
    arr=[]
    for i in range(2,10):
        if n%i==0:
            while n%i==0:
                n=n/i
                arr.append(i)
    arr.append(n)
    return arr

list_all=insu(a)

if all([i < 10 for i in list_all]):
    ans="Yes"
else:
    ans="No"
print(ans)

Submission status: Wrong Answer

Solution code:
a=int(input())

def insu(n):
  arr=[]
  for i in range(2,10):
    if n%i==0:
      while n%i==0:
        n=n/i
        arr.append(i)
  return arr

if all(insu(a))<10:  
  ans="Yes"
else:
  ans="No"
print(ans)

Submission status: Wrong Answer

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

#temp
while(1):
  #temp=N
  #2
  temp2 = N/2
  if(temp2<=9 and N%2==0):
    print('Yes')
    break
  temp3 = N/3
  if(temp3<=9 and N%3==0):
    print('Yes')
    break
  temp4 = N/4
  if(temp4<=9 and N%4==0):
    print('Yes')
    break
  temp5 = N/5
  if(temp5<=9 and N%5==0):
    print('Yes')
    break
  temp6 = N/6
  if(temp6<=9 and N%6==0):
    print('Yes')
    break
  temp7 = N/7
  if(temp7<=9 and N%7==0):
    print('Yes')
    break
  temp8 = N/8
  if(temp8<=9 and N%8==0):
    print('Yes')
    break
  temp9 = N/9
  if(temp9<=9 and N%9==0):
    print('Yes')
    break
  
  print('No')
  break

#print('result')
#if answer 
#
#print(N)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A = int(input())

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

print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

ln = []

for i in range(9):
  for j in range(9):
    ln.append(i*j)
    
print("Yes" if n in ln else "No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def input_int():
    hoge = input()
    return int(hoge)

if __name__ == "__main__":
    hoge = input_int()
    for i in range(9):
        for k in range(9):
            piyo = i * k
            if piyo == hoge:
                print("Yes")
                exit(0)
    print("No")

Submission status: Wrong Answer

Solution code:
def is_integer_num(n):
    if isinstance(n, int):
        return True
    if isinstance(n, float):
        return n.is_integer()
    return False
  
n = int(input())

flag=0
for i in range(1, 10):
    m = n/i
    if is_integer_num and m<10:
        flag = 1
        print("Yes")
        break
if flag == 0:
    print("No")

Submission status: Wrong Answer

Solution code:
def acinput():
    return list(map(int, input().split(" ")))

N=int(input())

res="No"

for i in range(2,9+1):
    if N%i==0:
        a=N/i
        if i!=a and a<=9:
            res="Yes"
            break

print(res)

Submission status: Wrong Answer

Solution code:
A = int(input())

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

print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
if 1 < N < 100:
	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 == 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())
num = [2, 3, 4, 5, 6, 7, 8, 9]
for nu in num:
    if n % nu == 0 and n / nu < 10:
        print('Yes')
        exit()
print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())
if n % 9 == 0:
    a = n/9
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 8 == 0:
    a = n/8
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n %7 == 0:
    a = n/7
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 6 == 0:
    a = n/6
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 5 == 0:
    a = n/5
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 4 == 0:
    a = n/4
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 3 == 0:
    a = n/3
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 2 == 0:
    a = n/2
    if a < 10:
        print("Yes")
    else:
        print("No")

Submission status: Wrong Answer

Solution code:
N=int(input())
error=False
for i in range(1,9):
    for j in range(1,9):
        if N==i*j:
            error=True
if error:
    print("Yes")
else:
    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 == 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())
N2=N3=N5= N7 = 0
if N > 81:
    print("No")
    quit()
if N < 10:
    print("Yes")
    quit()
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:
    N = N / 7
    N7 += 1
if N2>6 or N3>4 or N5>2 or N7>2:
    print("No")
elif (2**N2) * (3**N3) * (5**N5) * (7**N7) > 81:
    print("No")
elif N2==N3==N5==N7==0 and N != 1:
    print("No")
else:
    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

div = make_divisors(N)

ans='No'
for i in range(len(div)//2):
  a=div[2*i]
  b=div[2*i+1]
  if (a<10) and (b<10):
    ans='Yes'
    break

print(ans)

Submission status: Wrong Answer

Solution code:
def acinput():
    return list(map(int, input().split(" ")))

N=int(input())

res="No"
for i in range(2,9+1):
    if N%i==0:
        if N/i<=9:
            res="Yes"
            break

print(res)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = raw_input().split()
[N] = s
N = int(N)

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

Submission status: Wrong Answer

Solution code:
def acinput():
    return list(map(int, input().split(" ")))

N=int(input())

res=False
for i in range(2,9+1):
    if N%i==0:
        if N/i<=9:
            res=True
            break

print(res)

Submission status: Wrong Answer

Solution code:
n = int(input())
if n % 7 == 0:
    a = n/7
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 5 == 0:
    a = n/5
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n %3 == 0:
    a = n/3
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 2 == 0:
    a = n/2
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 9 == 0:
    a = n/9
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 8 == 0:
    a = n/8
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 6 == 0:
    a = n/6
    if a < 10:
        print("Yes")
    else:
        print("No")
elif n % 4 == 0:
    a = n/4
    if a < 10:
        print("Yes")
    else:
        print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
N2=N3=N5= N7 = 0
if N > 81:
    print("No")
    quit()
if N < 10:
    print("Yes")
    quit()
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:
    N = N / 7
    N7 += 1
if N2>6 or N3>4 or N5>1 or N7>1:
    print("No")
elif N2==N3==N5==N7==0 or N != 1:
    print("No")
else:
    print("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:

N=int(input())
error=False
for i in range(1,9):
    if (N%i==0)&(1<=N/i<=9):
        error=True
        break
if error:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

if N % 1 == 0:
  print("Yes")
elif N % 2 == 0:
  print("Yes")
elif N % 3 == 0:
  print("Yes")
elif N % 4 == 0:
  print("Yes")
elif N % 5 == 0:
  print("Yes")
elif N % 6 == 0:
  print("Yes")
elif N % 7 == 0:
  print("Yes")
elif N % 8 == 0:
  print("Yes")
elif N % 9 == 0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
# N>81のときはn*nで表せないので不敵
if N>81:
    print('No')
else:
    import numpy as np
    n=np.array([2,3,4,5,6,7,8,9])
    amari=N%n
    shou=N//n
    if np.any((amari==0)*(shou<=9)):
        print('Yes')
    else:
        print('No')

Submission status: Wrong Answer

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

for i in range(1,10):
  for j in range(1,10):
    if i * j == N:
      print('YES')
      sys.exit()
print('NO')

Submission status: Wrong Answer

Solution code:
n = int(input())

flag = 0
for i in range(1, 10):
    m = n/i
    if m.is_integer and m < 10:
        flag = 1
        print("Yes")
        break

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

Submission status: Wrong Answer

Solution code:
n = int(input())

for i in range(1, 9):
  if n%i == 0:
    s = n/i

if s <= 9:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())
N2=N3=N5= N7 = 0
if N > 81:
    print("No")
    quit()
if N < 10:
    print("Yes")
    quit()
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:
    N = N / 7
    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())
flg = 'No'
for i in range(2,10):
    if N % i == 0 and N / i < 10:
        flg = 'Yes'
        break
print(flg)

Submission status: Wrong Answer

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

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:
            if i < 10:
              divisors.append(i)
            if i != n // i:
                if n // i < 10:
                  divisors.append(n//i)

    # divisors.sort()
    return divisors
  
a = make_divisors(n)

f = False
for i in range(len(a)):
  for j in range(len(a)):
    if a[i] * a[j] == n:
      print("Yes")
      f = True
      
if not f:
	print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
N2=N3=N5= N7 = 0
if N > 81:
    print("No")
    quit()
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:
    N = N / 7
    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:
a = input()
a = int(a)
n = 0
for i in range(1,10):
    if a % i == 0:
        for j in range(1,10):
            if (a/i) < 10 and (a/i) % j == 0:
                n = n + 1

if n > 0:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
N = int(input())
N2=N3=N5= N7 = 0
if N > 81:
    print("No")
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:
    N = N / 7
    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())
for a in range(1,9):
  if N%a==0 and N/a<=9:
    print("Yes")
    break
  else:
    if a>=10:
      print("No")

Submission status: Wrong Answer

Solution code:
def allmultiply():
	setmulti = set()
	for i in range(1,10):
		for j in range(1,10):
			setmulti.add(i*j)
	return setmulti

if __name__ == '__main__':
  N = int(input())
  setmulti = allmultiply()
  print(N)
  if N in setmulti:
  	print('Yes')
  else:
  	print('No')

Submission status: Wrong Answer

Solution code:
data = int(input())
     
ans = ""
flag = True
if __name__ == "__main__":
  for i in range(1,10):
    if flag:
      for j in range(1,10):
        ans = i*j
        if ans == data:
          print("YES")
          flag = False
          break
    else:
      break
  if flag:
    print("NO")

Submission status: Wrong Answer

Solution code:
N = int(input())
N2=N3=N5= N7 = 0
if N > 81:
    print("No")
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:
    N = N / 7
    N7 += 1
if N2>6 or N3>4 or N5>1 or N7>1:
    print("No")
elif N2==N3==N5==N7==0:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
N=int(input())

b=[i for i in range(1,10)]
c=[]

for i in b:
    for j in b:
        c.append(i*j)

N in set(c)

Submission status: Wrong Answer

Solution code:
n = int(input())
i = 1
while i < 11:
	if i == 10:
		print('NO')
		break
	elif n % i == 0 and n / i < 10:
		print('YES')
		break
	else:
		i += 1

Submission status: Wrong Answer

Solution code:
a = input()
a = int(a)
n = 0
for i in range(2,10):
    if a % i == 0:
        for j in range(1,10):
            if (a/i) < 10 and (a/i) / j == 0:
                n = n + 1

if n > 0:
    print("YES")
else:
    print("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:
    N = N / 7
    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:
a = input()
a = int(a)
n = 0
for i in range(1,10):
    if a % i == 0:
        for j in range(2,10):
            if (a/i) < 10 and (a/i) / j == 0:
                n = n + 1

if n > 0:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
str = input()
if str == [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:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

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())
arr_N = prime_factorize(N)
arr_N_r = sorted(arr_N, reverse=True)

a = [1, 1]
last_i = 0

for i in range(len(arr_N) // 2):
    if i %2 == 0:
        a[0] = a[0] * arr_N[i] * arr_N_r[i]
    if i %2 == 1:
        a[1] = a[1] * arr_N[i] * arr_N_r[i]

if len(arr_N) % 2 == 1:
    a[1] = a[1] * arr_N[len(arr_N) // 2]

if(a[0]<10 and a[1]<10):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a = int(input())
flag = 0
for i in range(9):
  if (flag == 1):
    break
  for j in range(9):
    if (a == i*j):
      print('Yes')
      flag = 1
      break
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)
    a.sort(reverse = True)
    return a

a = prime_factorize(n = N)
ans = 'Yes'


if len(a) == 0:
    if N > 9:
        ans = 'No'
else:
    n = N
    b = []
    for i in a:
        n = n / i
        b.append(n)

    if a[0] > 9:
        ans = 'No'
    if N > 81:
        ans = 'No'
    if b[0] > 9:
        ans = 'No'
    print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input()
a = int(a)
n = 0
for i in range(2,10):
    if a % i == 0:
        if (a/i) < 10:
            n = n + 1

if n > 0:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
N = int(input())

c = 'Yes'
nums = [(n, N/n) for n in range(1,10,1) if N % n == 0]
for a, b in nums:
  if a > 9 or b > 9:
    c = 'No'
    break
print(c)

Submission status: Wrong Answer

Solution code:
n = int(input())
a = 0
for i in range(10):
  for j in range(10):
    
    s = i * j
    print(s)
    if s == n:
      a =a + 1
if a>0:
  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:
  print("No")
elif 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:
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")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

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())
arr_N = prime_factorize(N)
arr_N_r = sorted(arr_N, reverse=True)

a = [1, 1]
last_i = 0

for i in range(len(arr_N) // 2):
    if i %2 == 0:
        a[0] = a[0] * arr_N[i] * arr_N_r[i]
    if i %2 == 1:
        a[1] = a[1] * arr_N[i] * arr_N_r[i]

if len(arr_N) % 2 == 1:
    a[0] = a[0] * arr_N[len(arr_N) // 2]

if(a[0]<10 and a[1]<10):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s = int(input())
L = []
for i in range(1,10):
  for j in range(1,10):
    L.append(i * j)
if s in L:
  print('YES')
else:
  print('NO')