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

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

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

Submission status: Wrong Answer

Solution code:
n = int(input())
flag = True
for i in range(9):
  if n / (i + 1) <= 9 and n % (i + 1) == 0:
    print("YES")
    flag = False
    break
if flag:
  print("NO")

Submission status: Wrong Answer

Solution code:
n = int(input())

cnt = 0
for i in reversed(range(2,10)):
    if n % i == 0:
        n = n // i
        cnt+=1
        if n % i == 0:
            n = n // i
            cnt+=1
            break

if (cnt == 1 or cnt == 2) and n == 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())

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

print(calc(n))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
for i in range(10):
    for j in range(i, 10):
        if n == i*j:
            print("Yes")
            break
        elif i == 9 and j == 9:
            print("No")
            break

Submission status: Wrong Answer

Solution code:
import sys
a=int(input())
for i in range(10,10000,1):
  if a%i==0:
    print("No")
    sys.exit()
print("Yes")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Sun Oct 27 21:03:22 2019

@author: doppe
"""

N = int(input())

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

Submission status: Wrong Answer

Solution code:
n=int(input())
ans=0
for i in range(2,10):
    x=n//i
    if x<=9 and x*i==n:
        print("Yes")
        exit()

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

Submission status: Wrong Answer

Solution code:
dp=[i*j for i in range(1,10) for j in range(1,10)]
n=map(int,input().split())
if n in dp:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

_n = int(input())


def chker(n):
    for i in range(1, 9):
        if n % i == 0:
            m = n // i
            if 0 < m and m < 10:
                print('Yes')
                return

    print('No')


chker(_n)

Submission status: Wrong Answer

Solution code:
N = int(input())

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

shou = N / i

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
out = "No"

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = []
for i in range(1,9):
  for j in range(1,9):
    a.append(i * j)

n = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
a=[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,54,56,63,64,72,81]
if n in a:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

for i in range(10):
    if N % (i+1) == 0 and N / (i+1) < 10:
        break
else:
    print("No")
    exit()
print("Yes")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
N = int(input())

hoge = [0] * 81

for i in range(9):
    for j in range(9):
        hoge[9*i+j] = (i+1)*(j+1)

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

print(hoge)

Submission status: Wrong Answer

Solution code:
a =int(input())
list = []
for i in range(1,10):
  for j in range (1,10):
    list.append(i * j)
print(a in list)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

for i in range(10):
    for j in range(10):
        if N == (i + 1)*(j + 1):
            print("Yes")
            exit()        
        else:
            continue

print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

a = set()
for i in range(1, 10):
    for j in range(1, 10):
        a.add(i*j)
if N in a:
    print('Yse')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n=int(input())
if 9>=n>=1:
  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:
import sys

N = int(input())

for i in range(2,10):
    n = N/i
    if n < 10 and n.is_integer():
        print('Yes')
        sys.exit()
print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())

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

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

        else:
            print("Yes")
            break
    else:
        continue

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

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

Submission status: Wrong Answer

Solution code:
N=int(input())

if N>81:
  print('No')
count=0
for i in range(1,10):
  for j in range(1,10):
    if i*j==N:
      count+=1
if count>0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
import sys
n = int(input())
for i in range(9, 1, -1):
    if n % i == 0 and 1 <= n//i <= 9 :
        print("Yes")
        sys.exit()
print("No")

Submission status: Wrong Answer

Solution code:
# B 81
def calc():
    for i in range(1, 10):
        if A % i == 0:
            x = A / i
            if x >= 0 and x < 10:
                print('YES')
                return
    
    print('NO')

if __name__ == "__main__":
    A = int(input())
    calc()

Submission status: Wrong Answer

Solution code:
import numpy as np

n = int(input())
answer = [[i * j for j in range(1, 10)] for i in range(1, 10)]

flag = 0
for a in answer:
    if a == n:
        flag=1
        break

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

Submission status: Wrong Answer

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

for i in range(1,10):
  j = 10-i
  if a%j == 0:
    a = a/j
    c += 1
  if a%j == 0:
    a = a/j
    c += 1
  if c == 2:
    break
if a == 1 and c <= 2:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())

ans = 0

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())


print(N in[i * j for i in range(10) for j in range(10)])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
m=[]
for i in range(1,10):
  for j in range(i,10):
    m.append(i*j)

a=int(input())
ans=-1
for i in range(len(m)):
    if a == m[i]:
      ans *= -1
      
if ans == 1:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
n=int(input())
plist = [11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97]
pset = set(plist)
if n in pset:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
a=int(input())
for i in range(10,100,1):
  if a%i==0:
    print("No")
    sys.exit()
print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if flag:
    print("No")

Submission status: Wrong Answer

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

N = int(input())

if N > 81:
    print('No')

for i in range(1, 10):
    # 余りが0でかつ商が9以下ならOK
    if N % i == 0 and N // i < 10:
        print('Yes')
        break
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n=int(input())

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

if len(prime_factorize(N))==2:
    if prime_factorize(N)[0]<=0:
        print("No")
    elif prime_factorize(N)[1]<=0:
        print("No")
    elif prime_factorize(N)[0]>=10:
        print("No")
    elif prime_factorize(N)[1]>=10:
        print("No")
    else:
        print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
if n < 10:
    print('Yes')
else:
    for i in range(1, 10):
        if not n%i and n/i < 10:
            print('Yes')
            exit()
print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())

cnt = 0
for i in reversed(range(2,10)):
    if n % i == 0:
        n = n // i
        cnt+=1
        if n % i == 0:
            cnt+=1
            break

if (cnt == 1 or cnt == 2) and i == 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

  
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
dic={}

for i in range(9):
    for j in range(9):
        if dic.get(i*j,None)==None:
            dic[i*j]=1
        else:
            dic[i*j]+=1

N = int(input())

if dic.get(N,None)==None:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
N=int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=int(input())
if a>81:
  print('No')
  exit()

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

Submission status: Wrong Answer

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

N = int(input())

ans = 'no'
for n in range(10):
    if n == 0:
        continue
    if N / n < 10 and N % n == 0:
        #print('N, nxm: ', N, n, N/n)
        ans = 'yes'
        break

print(ans)

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

Submission status: Wrong Answer

Solution code:
i = int(input())
flag = False
for x in range(1, 10):
  for y in range(1, 10):
    print(x, y)
    if x * y == i:
      flag = True
      break

if flag:
  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 1 <= N // i and N //i <= 9:
        print("yes")
        break
else:
    print("no")

Submission status: Wrong Answer

Solution code:
n = int(input())
for i in range(1,n):
    a = n//i
    if n==a*i and a<10 and i<10:
        print('Yes')
        exit()

print('No')

Submission status: Wrong Answer

Solution code:
import math

N = int(input())
root = math.sqrt(N)

for i in range(math.floor(root)):
    I = i + 1
    if I != 1:
        if N % I == 0:
            if N / I < 10 and I < 10:
                print('Yes')
                break
else:
    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")
    else:
      print("No")

Submission status: Wrong Answer

Solution code:
x = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())


def solve(n):
    if n < 10:
        return "Yes"
    for i in range(2, 10):
        q, r = divmod(n, i)
        # print(q, r)
        if q < 10 and r == 0:
            return "Yes"

    return "No"

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(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:
read = input 
rn = lambda :list(map(int, read().split()))
def reverse_range(r):return range(r-1, -1, -1)
def sol(a):
    s = set()
    for i in range(1, 10):
        for j in range(1, 10):
            s.add(i*j)
    if a in s:
        print("YES")
    else:
        print("NO")
a = rn()[0]
sol(a)

Submission status: Wrong Answer

Solution code:
n = int(input())
if n%2 == 0 or n%3 == 0 or n%5 == 0 or n%7 == 0:
  print('Yes')
elif n < 10:
  print('Yes')
else:  
  print('No')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
n=int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
for i in range(1,9):
    if n/i ==n//i and n//i<=9:
        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:
import sys
def input():
    return sys.stdin.readline()[:-1]

n = int(input())

for i in range(2, 10):
    for j in range(2, 10):
        if n == i * j:
            print('Yes')
            sys.exit()

print('No')

Submission status: Wrong Answer

Solution code:
N=int(input())

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

for A in int_list:
    if N % A == 0:
        B = N // A
        if B > 0 and B <= 9:
            print('Yes')
            exit()
print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())
for i in range(10):
    for j in range(i, 10):
        if n == i*j:
            print("YES")
            break
        elif i == 9 and j == 9:
            print("NO")
            break

Submission status: Wrong Answer

Solution code:
N=int(input())
check=True
for i in range(9,0,-1):
  if N%i==0:
    N /= i
    break
  else:
    check=False
for j in range(9,0,-1):
  if N%i==0:
    N /= i
    break
  else:
    check=False
print('Yes' if check and N==1 else 'No')

Submission status: Wrong Answer

Solution code:
def main():
    n = int(input())
    for a in range(1, 10):
        b = n / a
        if 1 <= b and b <= 9 and b % 1 == 0:
            print(a, b)
            print('Yes')
            exit()
    print('No')


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
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:
n = int(input())
flag = 0
for i in range(2,10):
  if n % i == 0 and n // i <= 9:
    flag += 1
if flag != 0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
l = [a * b for a in range(1,10) for b in range(1, 10)]
print(l)
if n in l:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())

for i in range(1,10):
  for j in range(1,10):
    check=i*j
    if check==N:
      print("yes")
      break
  if i*j==81:
    print("No")

Submission status: Wrong Answer

Solution code:
# coding: utf-8

N = int(input())
boolean = False

for i in range(1,9):
    for j in range(1,9):
        if i * j == N:
            boolean = True
            
if boolean == True:
    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 + 1) * (j + 1) == N:
      print("Yes")
print("No")

Submission status: Wrong Answer

Solution code:
import sys

stdin = sys.stdin

ni = lambda: int(ns())
ns = lambda: stdin.readline()

N = ni()

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

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
import sys


def solve():
    input = sys.stdin.readline
    mod = 10 ** 9 + 7
    n = int(input().rstrip('\n'))
    ls = [1, 2, 3, 4, 5, 6, 7, 8, 9]
    for i in range(1, 10):
        if n / i in ls:
            print("YES")
            exit()
    print("NO")


if __name__ == '__main__':
    solve()

Submission status: Wrong Answer

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

if 81 < n:
    print("No")
    sys.exit()

for i in range(2,10):
    for j in range(2, 10):
        if n == i*j:
            print("Yes")
            sys.exit()

print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())

for i in range(1,10):
    for j in range(1,10):
        if n == (i * j):
            print("yes")
            exit()
print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())

ans=False
for i in range(9):
  for j in range(9):
    if i*j==N:
      ans=True
      break
print(("No","Yes")[ans])

Submission status: Wrong Answer

Solution code:
N=int(input())
if N>81:
    print("No")
else:
    p_list=[9,8,7,6,5,4,3,2]
    for p in p_list:
        d,m=divmod(N,p)
        if d<10 and m==0:
            print("Yes")
            break
    else:print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

f = 0

for i in range(1, 10):
  for j in range(1, 10):
    if n % i == 0 and n % j == 0:
      f = 1
      
if f == 1:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())

done = False
for i in range(8):
  if x % (i + 2) == 0:
    print('Yes')
    done = True
    break
    
if not done:
  print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())
for i in range(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())

if n <= 81:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
if N > 99 or N%10 == 0 or N < 10:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
printed = False
for i in range(1, 10):
    for j in range(1, 10):
        if N == i * j:
            print('Yes')
            printed = True
            break

if not printed:
    print('No')

Submission status: Wrong Answer

Solution code:
import sys

sys.setrecursionlimit(4100000)


def inputs(num_of_input):
    ins = [input() for i in range(num_of_input)]
    return ins


def solve(inputs):
    N = int(inputs[0])
    if N > 81:
        return "No"
    for i in range(2, 10):
        if N % i == 0:
            for j in range(1, 10):
                if i * j == N:
                    return "Yes"
    return "No"


def string_to_int(string):
    return list(map(lambda x: int(x), string.split()))


if __name__ == "__main__":
    ret = solve(inputs(1))
    print(ret)

Submission status: Wrong Answer

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

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

print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
if __name__ == '__main__':
    x = int(input())
    for i in range(9, 0 , -1):
        if(x % i == 0):
            q = x / i
            if (q > 9):
                print("NO")
            else:
                print("YES")
            break

Submission status: Wrong Answer

Solution code:
N = int(input())

flag = False
if N < 10:
	print("Yes")
else:
	for i in range(1,10):
		if(N % i) and (1 <= N / i <= 9):
			print("Yes")
			flag = True
			break
	if not flag:
		print("No")

Submission status: Wrong Answer

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy,copy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

def main():
    n = INT()
    for i in range(2, 10):
        if n % i ==0:
            if n / i < 10:
                print('Yes')
                sys.exit()

    print('No')

if  __name__=='__main__':
    main()

Submission status: Wrong Answer

Solution code:
N = int(raw_input())

for i in range(1, 10):
    m = (N / float(i))
    if m.is_integer() and 1 <= m <= 9:
        print('YES')
        break
else:
    print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from sys import stdin

n = int(stdin.readline().rstrip())

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

print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
ans = 'No'
if N > 81:
  pass
else:
  for i in range(1, 10):
    if N % i == 0:
      ans = 'Yes'
print(ans)