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())
result = "No"

for i in range(2,10):
    if n % i == 0:
        result = "Yes"
        break
    else:
        next
print(result)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
N = int(input())

for i in range(2, 10):
  if (N%i == 0) & (1 < N/i < 10):
    print('Yes')
    exit()
print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
N = int(input())

for i in range(2, 10):
  if (N%i == 0) & (N/i > 1):
    print('Yes')
    break
else:
  print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())

for i in range(2, 10):
  if N % i == 0:
    print('Yes')
    break
else:
  print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())

ans = 100

for i in range(10, 0, -1) :
  if N % i == 0 :
    ans = N // i
    break

if ans < 10 :
  print('Yes')
else :
  print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())

count = 0

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = 11
def func(n):
  for i in range(1,10):
    for j in range(1,10):
      if n ==i*j:
        print("Yes")
        return i,j
  if n != i*j:
    print("No")

func(N)

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
import sys
n=int(input())
for j in range(2):
    for i in range(1,10):
        if n%(10-i)==0:
            n=n/(10-i)
            sys.exit()
if n==1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
for x in range(9,0,-1):
  if N % x == 0 and N // x < 10:
    print("yes")
    exit()
print("no")

Submission status: Wrong Answer

Solution code:
N = int(input())
num = [1, 2, 3, 4, 5, 6, 7, 8, 9]
x = 0
for i in range(8):
  if N/(9-i) in num:
    x += 1
  else:
    x += 0
    
if x!= 0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

for i in range(9):
  if N/(i+1) in num:
    print("Yes")
    break
  else:
    print("No")
    break

Submission status: Wrong Answer

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

for i in range(8):
  if N/(i+1) in num:
    print("Yes")
    break
  else:
    print("No")
    break

Submission status: Wrong Answer

Solution code:
N = int(input())
num = [2, 3, 4, 5, 6, 7, 8, 9]
i = 2
for i in range(8):
  if N/(i+2) in num:
    print("Yes")
    break
  else:
    print("No")
    break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
L =[]
for i in range(1,9):
    for k in range(1,9):
        L.append(i*k)
A = int(input())
if A in L:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())
f = any( n/i-int(n/i) == 0 for i in range(1,10) )
print("Yes" if f else "No")

Submission status: Wrong Answer

Solution code:
N = int(input())

for i in range(1,10):
    if N % i != 0:
        print("No")
    elif N / i < 10:
        print("Yes")
    else:
        print("No")

Submission status: Wrong Answer

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

    for i in range(1, 11):
        for j in range(i, 11):
            if i*j == N:
                print('Yes')
                return

    print('No')
main()

Submission status: Wrong Answer

Solution code:

n = int(input())
status = 0

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

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

if not flag:
  print('No')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())

k=0
for i in range(9,1,-1):
        if n%i==0:
            n=n//i
            if n>9:
                k+=1
                break
if k>0:
        print('No')
else:
        print('Yes')

Submission status: Wrong Answer

Solution code:
n=int(input())
if n%2==0:
    n=n//2
    if n>9:
        print('No')
    else:
        print('Yes')
else:
    k=0
    for i in range(9,2,-2):
        if n%i==0:
            n=n//i
            if n>9:
                k+=1
                break
    if k>0:
        print('No')
    else:
        print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#B
N=int(input())
flag=0
for i in range(1,9):
    if (N/i).is_integer() and (N/i)<=9:
        flag=1
    else:
        temp=0

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

Submission status: Wrong Answer

Solution code:
N = int(input())
for i in range(1, 9):
  for j in range(1, 9):
    if i * j == N:
      print("Yes")
      exit()
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:
        a = "Yes"
    else:
        a = "No"
print(a)

Submission status: Wrong Answer

Solution code:
N = int(input())
ans = ''
if N > 81 or N < 1:
    ans = 'No'
else:
    a = [i for i in range(1,10)]
    for i in a:
        q, mod = divmod(N, i)
        if q < 10 and mod == 0:
            ans = 'Yes'
            break
if ans == 'No':
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
N = int(input())
ans = ''
if N > 81:
    ans = 'No'
else:
    a = [i for i in range(1,10)]
    for i in a:
        q, mod = divmod(N, i)
        if q < 10 and mod == 0:
            ans = 'Yes'
            break
if ans == '':
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in range(9):
  for j in range(9):
    if i*j == a:
      b = 1

if b != 1:
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

Solution code:
A = int(input())
flag = False
for i in range(1,10):
  for j in range(1,10):
    if i*j == A:
      flag = True
      break;
    else:
      flag = False
if flag:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

ans = "NO"
for i in range(9):
	if (N % (i+1) == 0) & ( N / (i+1) <= 9):
		ans = "YES"
		break
print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())

answers = []

for i in range(1, 10, 1):
    for j in range(1,10, 1):
        ans = i*j
        answers.append(ans)

if N in answers:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
N = int(input())

answers = []

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

if N in answers:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
N = int(input())

answers = []

for i in range(1, 10, 1):
    for j in range(1,10, 1):
        ans = i * j
        answers.append(ans)

if N in answers:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
N = int(input())

answers = []

for i in range(1, 10):
    for j in range(1,10):
        ans = i * j
        answers.append(ans)

if N in answers:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
n = int(input())
flag = True

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

if flag:
    print("No")

Submission status: Wrong Answer

Solution code:
def notprime(n):
    for i in range(2,int(n**0.5)):
        if n%i==0:
            return True
    return False

n = int(input())
if 1<=n<=81:
    if n%10==0:
        print('Yes' if n==10 else 'No')
    else:
        print('Yes' if notprime(n) else 'No')

else:
    print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())
if 1<=n<=81:
    if n%10==0:
        print('Yes' if n==10 else 'No')
    else:
        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):
        ij = i * j
    if(N == i*j):
        print("Yes")
        exit(0)
print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
for i in range(1,10):
    for j in range(1,10):
        ij = i * j
    if(N == i*j):
        print("Yes")
        break
if(N > 81):
    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
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
        print('No')

Submission status: Wrong Answer

Solution code:
from functools import reduce

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())
factor = [1] + prime_factorize(n)

for i in range(1,len(factor)):
    a = reduce(lambda x,y:x*y, factor[:i])
    b = reduce(lambda x,y:x*y, factor[i:])
    if 1 <= a <= 9 and 1 <= b <= 9:
        print('Yes')
        break
else:
    print('No')

Submission status: Wrong Answer

Solution code:
# 81

# libraries
from itertools import combinations

# input
N = int(input())

# solve
if N in [i*j for i, j in combinations(range(1, 10), 2)]:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
avail_numbers = [(i + 1) * (j + 1) for i, j in zip(range(9), range(9))]

if int(input()) in avail_numbers:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
A = int(input())

kk = [i*j for i in range(1,10) for j in range(1,10)]

ans = False

if A in kk:
    ans = True

print(ans)

Submission status: Wrong Answer

Solution code:
import itertools


def read():
    N = int(input())

    return N,


def solve(N, ):
    for i in range(9):
        a = i + 1

        b = N / a

        if b in [1,2,3,4,5,6,7,8,9]:
            continue
        if a * b == N:
            return "Yes"
        else:
            return "No"


if __name__ == '__main__':
    input = read()
    print(solve(*input))

Submission status: Wrong Answer

Solution code:
import itertools


def read():
    N = int(input())

    return N,


def solve(N, ):
    for i in range(9):
        a = i + 1

        b = N / a

        if b > 9:
            continue
        if a * b == N:
            return "Yes"
        else:
            return "No"


if __name__ == '__main__':
    input = read()
    print(solve(*input))

Submission status: Wrong Answer

Solution code:
import itertools


def read():
    N = int(input())

    return N,


def solve(N, ):
    for i in range(9):
        a = i + 1

        b = N // a

        if b >9:
            continue
        if a * b == N:
            return "Yes"
        else:
            return "No"


if __name__ == '__main__':
    input = read()
    print(solve(*input))

Submission status: Wrong Answer

Solution code:
n=int(input())
a=0
if n>81 or n==0:
    print('No')
else:
    for i in range(2,10):
        if n%i==0 and n//i<=9:
            a+=1
    if a!=0:
        print('Yes')
    else:
        print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())
ans ="No"
if N <= 81:
  for i in range(2,10):
    for x in range(2, 10):
      if i * x == N:
        ans = "Yes"

print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())

flag = True
for i in range(1,10):
    for j in range(1,10):
        #print(i, j)
        if i * j == N:
            print("Yes")
            flag = False
    if flag:
        break

if flag:
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

flag = True
for i in range(1,10):
    for j in range(1,10):
        if i * j == N:
            print("Yes")
            flag = False

if flag:
    print("No")

Submission status: Wrong Answer

Solution code:
N=int(input())

ans="No"
for i in range(1,10):
    if (N/i) ==i:
        ans="Yes"
        break
    else:
        pass
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
c = 0
for i in range(9):
  q, mod = divmod(n, i + 1)
  if q < 10 and mod == 0:
    print("yes")
    c += 1
    break
if c == 0:
  print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
c = 0
for i in range(9):
  q, mod = divmod(n, i + 1)
  if q < 10 and mod == 0:
    print("YES")
    c += 1
    break
if c == 0:
  print("NO")

Submission status: Wrong Answer

Solution code:
N = int(input())
for i in range(9):
  for j in range(9):
    if (i+1)*(j+1)==N:
      print("yes")
      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")
      exit()
print("No")

Submission status: Wrong Answer

Solution code:
N=int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())
ans = 0
s = 1
t = 1

for s in (1,9):
    for t in (1,9):
        if n == s*t:
            ans += 1
    
if ans == 0:
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

Solution code:
import sys

N = int(input())

for i in range(1, 10):
  if N % i == 0 and N % i < 10:
    print("Yes")
    sys.exit()
    
print("No")

Submission status: Wrong Answer

Solution code:
a = int(input())
if(a > 81 or a==0):
    print("-1")
elif(0<a<10):
    print(1, a)
else:
    for i in range(9, 0, -1):
        if(a%i==0):
            a = a//i
            break
    if(a>9):
        print(-1)
    else:
        print(i, a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

judge = [9, 8, 7, 6, 5, 4, 3, 2]
in_n = int(input())
for target_list in judge:
    if in_n % target_list == 0:
        first_n = in_n / target_list
        if first_n < 10 and first_n != 1:
            print('yes')
            sys.exit()
print('no')

Submission status: Wrong Answer

Solution code:
import sys

judge = [9, 8, 7, 6, 5, 4, 3, 2, 1]
in_n = int(input())
for target_list in judge:
    if in_n % target_list == 0:
        first_n = in_n / target_list
        if first_n < 10:
            print('yes')
            sys.exit()
print('no')

Submission status: Wrong Answer

Solution code:
import sys

judge = [9, 8, 7, 6, 5, 4, 3, 2]
in_n = int(input())
for target_list in judge:
    if in_n % target_list == 0:
        first_n = in_n / target_list
        if first_n < 10:
            print('yes')
            sys.exit()
print('no')

Submission status: Wrong Answer

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

for i in range(9):

    if n//(i+1) in lst:
        print('Yes')
        break

else:
    print('No')

Submission status: Wrong Answer

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



for i in range(10):
    if N % (i+1) == 0:
        a = N /(i+1)
        if len(str(round(a))) == 1:
                print("Yes")
                break
    elif (i) == 9:
        print("No")

Submission status: Wrong Answer

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



for i in range(9):
    if N % (i+1) == 0:
        a = N /(i+1)
        if len(str(round(a))) == 1:
                print("Yes")
            	
print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
num=int(input())

YesFlg=0
NoFlag=0
for i in range(1,10):
    a,b=divmod(num, i)
    
    print(i, a, b)

    if b==0 and a<10:
        YesFlg=1
   

if YesFlg!=1:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in range(1,9):
    if N % (i) == 0:
        B = int(float(B))
        B =  N / i
        B = str(B)
        if len(B) == 1:
            print("Yes")
            break
else:
        print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
for m in range(1,101):
    for n in range(1,101):
        if N == m*n:
            print("Yes")
            break
    else:
        continue
    break
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())

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

if list.count(n) > 1:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())

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

if list.count(n) > 1:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = int(input())
for i in range(1,10):
    for l in range(1,10):
        print(i)
        
        if i * l == a:
            print("Yes")
            exit()
print("No")

Submission status: Wrong Answer

Solution code:
a = int(input())
for i in range(1,9):
    for l in range(1,9):
        if i * l == a:
            print("Yes")
            exit()
print("No")

Submission status: Wrong Answer

Solution code:
a = int(input())
for i in range(9):
    for l in range(9):
        if i * l == a:
            print("Yes")
            exit()
print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

for i in range(1,10):
    if 1 <= N // i <= 9:
        print("Yes")
        exit()
print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

else:
    for i in range(2, 10):
        if N % i == 0:
            j = N / i
            if 1 <= j <= 9:
                count += 1

            else:
                count = count

        else:
            count = count

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

Submission status: Wrong Answer

Solution code:
import sys
n=0
N=int(input())
for i in range(1,10):
    for j in range (i,10):
        if i*j==N:
            print("Yes")
            sys.exit
        else:
            n=n+1
if n==45:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
if(n>81):
    print("No")
else:
    c2=0
    c3=0
    c5=0
    c7=0
    while(n%2==0):
        c2+=1
        n=n/2
    while(n%3==0):
        c3+=1
        n=n/3
    while(n%5==0):
        c5+=1
        n=n/5
    while(n%7==0):
        c7+=1
        n=n/7
    if(n!=1):
        print("No")
    else:
        if(c5==2 and c2==0 and c3==0 and c7==0):
            print("Yes")
        elif(c5==1 and c7==1 and c2==1):
            print("No")
        elif(c5<2):
            print("Yes")
        else:
            print("No")

Submission status: Wrong Answer

Solution code:
n=int(input())
if(n>81):
    print("No")
else:
    c2=0
    c3=0
    c5=0
    c7=0
    while(n%2==0):
        c2+=1
        n=n/2
    while(n%3==0):
        c3+=1
        n=n/3
    while(n%5==0):
        c5+=1
        n=n/5
    while(n%7==0):
        c7+=1
        n=n/7
    if(n!=1):
        print("No")
    else:
        if(c5==2 and c2==0 and c3==0 and c7==0):
            print("Yes")
        elif(c5<2):
            print("Yes")
        else:
            print("No")

Submission status: Wrong Answer

Solution code:
print('NYoe s'[0x20101814325195b35d400>>int(input())&1::2])

Submission status: Wrong Answer

Solution code:
print('NYoe s'[0x20101814325195b35d400>>int(input())&1])

Submission status: Wrong Answer

Solution code:
print(0x20101814325195b35d400>>int(input())and'Yes'or'No')

Submission status: Wrong Answer

Solution code:
n=int(input())
if(n>81):
    print("No")
else:
    c2=0
    c3=0
    c5=0
    c7=0
    while(n%2==0):
        c2+=1
        n=n/2
    while(n%3==0):
        c3+=1
        n=n/3
    while(n%5==0):
        c5+=1
        n=n/5
    while(n%7==0):
        c7+=1
        n=n/7
    if(n!=1):
        print("No")
    else:
        if(c5<2):
            print("Yes")
        else:
            print("No")

Submission status: Wrong Answer

Solution code:
n=int(input())
if(n>81):
    print("NO")
else:
    c2=0
    c3=0
    c5=0
    c7=0
    while(n%2==0):
        c2+=1
        n=n/2
    while(n%3==0):
        c3+=1
        n=n/3
    while(n%5==0):
        c5+=1
        n=n/5
    while(n%7==0):
        c7+=1
        n=n/7
    if(n!=1):
        print("NO")
    else:
        if(c5<2):
            print("YES")
        else:
            print("NO")

Submission status: Wrong Answer

Solution code:
import sys

N = int(input())

tmp = 0
for i in range(9, 1, -1):
    if N % i == 0:
        if N % (i * i) == 0:
            N /= (i * i)
            tmp = i
        else:
            N /= i
    if N == 1:
        if tmp * i >= 10 and tmp != i:
            print('No')
        else:
            print('Yes')
        sys.exit(0)
print('No')

Submission status: Wrong Answer

Solution code:
import sys

N = int(input())

Prime = [2, 3, 5, 7]
List = []
count = 0
if N < 10:
    print('Yes')
else:
    for i in Prime:
        while N % i == 0:
            N /= i
            List.append(i)
            count += 1
            if count > 1 and List[0] * i >= 10:
                print('No')
                sys.exit(0)
        count = 0
        if N == 1:
            print('Yes')
            sys.exit(0)
    print('No')

Submission status: Wrong Answer

Solution code:
import sys

N = int(input())

Prime = [2, 3, 5, 7]
if N < 10:
    print('Yes')
else:
    for i in Prime:
        if N % i == 0:
            N /= i
        if N == 1:
            print('Yes')
            sys.exit(0)
    print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())

res = "No"

if (N <= 81):
    for i in range(1,10):
        if (N % i == 0 and (N // i) < 10):
            res = "yes"
            break

print(res)

Submission status: Wrong Answer

Solution code:
N=int(input())
for i in range(9):
    if N%(9-i)==0:
        N=N//(9-i)
        if N<=9:
            print('Yes')
            break
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())
if N > 81:
  print("No")
elif N <= 9:
  print("Yes")
else:
  found = False
  for i in range(2, 9):
    if N % i == 0:
      X = N // i
      if X <= 9:
        print("Yes")
        found = True
        break
  if not found:
    print("No")

Submission status: Wrong Answer

Solution code:
inp = int(input())
flag = "NO"
for i in range(1,10):
  if (str(inp/i)).split(".")[1]=="0":
    a = str((inp/i)).split(".")[0]
    
    if(len(a)==1):
      for j in range(1,10): 
        if (str(int(a)/j)).split(".")[1]=="0":
          b = str((int(a)/j)).split(".")[0]
          if (b=="1"):
            flag="YES"
            break  
print(flag)

Submission status: Wrong Answer

Solution code:
n=int(input())
if(n>81):
  print("No")
else:
  if(int(n/10)==2 or int(n/10)==3 or int(n/10)==5 or int(n/10)==7):
    print("No")
  else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

def atcode(N, x2 , x3, x5, x7):

    while(True):
        if N % 2 == 0:
            x2 = x2 + 1
            N = N / 2
        elif N % 3 == 0:
            x3 = x3 + 1
            N = N / 3
        elif N % 5 == 0:
            x5 = x5 + 1
            N = N / 5
        elif N % 7 == 0:
            x7 = x7 + 1
            N = N / 7
        else:
            break
    
    if N < 10:
        x2_1 = math.ceil(x2/2)
        x2_2 = x2 - x2_1

        x3_1 = math.ceil(x3/2)
        x3_2 = x3 - x3_1

        x5_1 = math.ceil(x5/2)
        x5_2 = x5 - x5_1

        x7_1 = math.ceil(x7/2)
        x7_2 = x7 - x7_1

        A = (2 ** x2_1) * (3 ** x3_1) * (5 ** x5_1) * (7 ** x7_1)
        B = (2 ** x2_2) * (3 ** x3_2) * (5 ** x5_2) * (7 ** x7_2)

        if A<10 and B<10:
            return 'YES'
        else:
            return 'NO'
    else:
        return 'NO'
    
N = int(input())
r = atcode(N, 0, 0, 0, 0)
print(r)

Submission status: Wrong Answer

Solution code:
def math(N, x2, x3):

    while(True):
        if N % 2 == 0:
            x2 = x2 + 1
            N = N / 2
        elif N % 3 == 0:
            x3 = x3 + 1
            N = N / 3
        else:
            break
    
    if N < 10:
        x2_1 = int(x2/2)
        x2_2 = x2 - x2_1

        x3_1 = int(x3/2)
        x3_2 = x3 - x3_1
        
        A = (2 ** x2_1) * (3 ** x3_1)
        B = (2 ** x2_2) * (3 ** x3_2)

        if A<10 and B<10:
            return 'YES'
        else:
            return 'NO'
    else:
        return 'NO'
    
N = int(input())
r = math(N, 0, 0)
print(r)

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
N = int(input())

for i in range(10):
    for j in range(10):
        if i * j == N:
            print("YES")
            exit()
print("NO")