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

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):
    if N % i == 0 and N / i <= 9:
        print('Yes')
        break
    else:
        print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
N = int(input())

for i in range(1, 9 + 1):
    if i * N == 0:
        print('Yes')
    else:
        print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())

table = [1, 2, 3, 4, 5, 6, 7, 8, 9]
flag = False

for a in range(1, 9):
  b = n / a
  if(b in table):
    flag = True
    break

print("Yes" if flag else "No")

Submission status: Wrong Answer

Solution code:
n = int(input())
ans = False
for i in range(1,10):
    if n%i==0 and n<=81:ans=True
print("Yes" if ans==True else "No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
a=0
if(n>81 or n<1):
  print("No")
else:
    for i in range(1,10):
        if(n%i==0):
            a=a+1
    if(a>=2):
        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(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):
        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):
        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):
        if(i*j==n):
            print('YES')
            exit()
print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())
bandera=False
for i in range(10):
  for j in range(10):
    producto=i*j
    if producto==N:
      bandera=True
if bandera==True:
  print("yes")
else:
  print("no")

Submission status: Wrong Answer

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

    else:
        result='No'
print(result)

Submission status: Wrong Answer

Solution code:
N = int(input())
flg = True

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

if flg:
    print("No")

Submission status: Wrong Answer

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

for i in range(10):
    if i==0:
        continue
    else:
        i_pair = N / i
        if N % i == 0 and i_pair < 10:
            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 < 9:
        print("Yes")
        break
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

ans = False

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

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

Submission status: Wrong Answer

Solution code:
n = int(input())

for x in range(1, 9 + 1):
    if n % x == 0:
            a  = n // x
            if a < 10:
                print('Yes')
                break
    else:
        print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())

for x in range(1, 9 + 1):
    if n % x == 0:
            a  = n / x
            if a < 10:
                print('Yes')
    else:
        print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())

for x in range(1, 9 + 1):
    a  = n / x
    if a < 10:
        print('Yes')
    else:
        print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
a = int(input())
if a % 1 == 0 or a % 2 == 0 or a % 3 == 0 or a % 4 == 0 or a % 5 == 0 or a % 6 == 0 or a % 7 == 0 or a % 8 == 0 or a % 9 == 0:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
integer = int(input())
for i in range(9):
    for j in range(9):
        if (i + 1) * (j + 1) == integer:
            print('Yes')
            break
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

for x in  range(1,10):
  for y in range(1,10):
    if x*y == n:
      print("Yes")
      break
  break
  
else:
  print("No")

Submission status: Wrong Answer

Solution code:
# B - 81
# https://atcoder.jp/contests/abc144/tasks/abc144_b

n = int(input())

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

print(result)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

kk_list = []

for a in range(1, 10):
    for b in range(1, 10):
        kk_list.append(a * b)

print(kk_list)

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

Submission status: Wrong Answer

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

for i in range(2,10):
    while True:
        if N % i == 0:
            N = N//i
            num += 1
        else:
            break

if i == 1 and num ==2:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

if N > 81:
    print("No")
    exit()

for i in range(1, 10):
    if N % i == 0:
        print("Yes")
        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:
from math import atan, degrees

def is_divisible(a):
	return 'Yes' if any(int(a/x) == a/x and a/x <= 9 for x in range(2,10)) and a <= 81 else 'No'
	
print(is_divisible(int(input())))

Submission status: Wrong Answer

Solution code:
from math import atan, degrees

def is_divisible(a):
	return 'Yes' if any(int(a/x) == a/x for x in range(2,10)) and a <= 81 else 'No'
	
print(is_divisible(int(input())))

Submission status: Wrong Answer

Solution code:

n=int(input())
for i in range(9):
    for j in range(9):
        k = (i+1)*(j+1)
        if n%k==0:
            print('Yes')
            exit()
        else:
            continue
print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=int(input())
b=0
for i in range(9):
  for k in range(9):
    if (i+1)*(k+1)==a:
      print("Yes")
      b=b+1
      break
if b==0:
  print("No")

Submission status: Wrong Answer

Solution code:
a=int(input())
b=0
for i in range(9):
  for k in range(9):
    if (i+1)*(k+1)==a:
      print("Yes")
      break
      b=b+1
if b==81:
  print("No")

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
S = int(input())

for i in range(8) :
    i += 1
    if S % i == 0 and S // i <=9 :
        result = "Yes"
    else:
        result = "No"
print(result)

Submission status: Wrong Answer

Solution code:
S = int(input())

for i in range(9) :
    i += 1
    if S % i == 0 and S // i <=9:
        result = "Yes"
    else:
        result = "No"
print(result)

Submission status: Wrong Answer

Solution code:
S = int(input())

def divisor(n): 
    i = 1
    table = []
    while i * i <= n:
        if n%i == 0:
            table.append(i)
            table.append(n//i)
        i += 1
    table = list(set(table))
    return table

divisors = sorted(divisor(S))
n = len(divisors)
for i in range(int(n / 2+n % 2)):
    print(divisors[i])
    if S // divisors[i] <= 9:
        result ="Yes"
    else:
        result ="No"
print(result)

Submission status: Wrong Answer

Solution code:
S = int(input())

def divisor(n): 
    i = 1
    table = []
    while i * i <= n:
        if n%i == 0:
            table.append(i)
            table.append(n//i)
        i += 1
    table = list(set(table))
    return table

divisors = divisor(S)

#print(divisors)
n = len(divisors)

for i in range(int(n / 2+n % 2)):
    #print(divisors[i])
    if S // divisors[i] <= 9:
        result ="Yes"
    else:
        result ="No"
print(result)

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!
n=int(input())
flag=0
for i in range(1,10):
    if n%i==0:
        flag=1
if flag:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
l=list()
if n==1 or n==2:
  print("Yes")
  exit()
for i in range(2, n//2+1):
    if n % i == 0: 
        if (n//i,i) not in l:
            l.append((i,n//i))
flag=0
for i in l:
    if i[0]<=9 and i[1]<=9:
        flag=1
        print("Yes")
        exit()
if not flag:
    print("No")

Submission status: Wrong Answer

Solution code:

n=int(input())
l=list()
if n==1:
  print("Yes")
  exit()
for i in range(2, n//2+1):
    if n % i == 0: 
        if (n//i,i) not in l:
            l.append((i,n//i))
flag=0
for i in l:
    if i[0]<=9 and i[1]<=9:
        flag=1
        print("Yes")
        exit()
if not flag:
    print("No")

Submission status: Wrong Answer

Solution code:

n=int(input())
l=list()
for i in range(2, n//2):
    if n % i == 0: 
        if (n//i,i) not in l:
            l.append((i,n//i))
flag=0
for i in l:
    if i[0]<=9 and i[1]<=9:
        flag=1
        print("Yes")
        exit()
if not flag:
    print("No")

Submission status: Wrong Answer

Solution code:

n=int(input())
l=list()
for i in range(2, n//2+1):
    if n % i == 0: 
        if (n//i,i) not in l:
            l.append((i,n//i))
flag=0
for i in l:
    if i[0]<=9 and i[1]<=9:
        flag=1
        print("Yes")
        exit()
if not flag:
    print("No")

Submission status: Wrong Answer

Solution code:

n=int(input())
l=list()
for i in range(2, 11):
    if n % i == 0 and n !=i: 
        l.append(i)
flag=0
for i in l:
    if i>9:
        flag=1
        print("No")
        exit()
if not flag:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
for i in range(1,9):
  if 1<= (n//i) <=9 and n%i==0:
    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 N == int(i)*int(j):
      print('Yes')
      exit()
    
print('No')

Submission status: Wrong Answer

Solution code:
import sys

N = int(input())

for a in range(1, 10):
  for b in range(1, 10):
    if N % (a * b) == 0:
      print('Yes')
      sys.exit()

print('No')

Submission status: Wrong Answer

Solution code:
a = int(input())
f = False
for i in range(1,10):
    for j in range(1,10):
        if i*j == a:
            f = True
if f:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
n=int(input())
#a,b,c=map(int,input().split())
t=0
flag=False
for i in range(1,9):
    for j in range(1,9):
        if n==i*j:
            print('Yes')
            t+=1
            flag=True
            break
    if flag:
        break

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

Submission status: Wrong Answer

Solution code:
n=int(input())
#a,b,c=map(int,input().split())
i=0
flag=False
while i<=10:
    for j in range(10):
        if n==i*j:
            print('Yes')
            flag=True
            break
    i+=1
    if flag:
        print('No')
        break

Submission status: Wrong Answer

Solution code:
# coding: utf-8

num = int(input())
ok = 0
for i in range(9):
    for j in range(9):
        if num == i * j:
            print("Yes")
            ok += 1
            exit()
if ok == 0:
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
if n == 1:
    print("Yes")
    quit()
a = list(range(1,10))
a.reverse()
for _ in range(2):
    for i in a:
        if n % i == 0:
            if n // i == 1:
                print("Yes")
                quit()
            n = n // i
print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
def f():
    for i in  range(2,10):
        for j in range(2,10):
            if i*j ==n:
                return "Yes"
    return "No"
print(f())

Submission status: Wrong Answer

Solution code:
n=int(input())

if n % 2==0 or n%3==0 or n%4==0 or n%5==0 or n%6 ==0 or n%7==0 or n%8 ==0 or n%9==0:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
import sys, bisect, math, itertools, string, queue, copy
# import numpy as np
# import scipy
# from collections import Counter,defaultdict,deque
# from itertools import permutations, combinations
# from heapq import heappop, heappush
# # input = sys.stdin.readline
# sys.setrecursionlimit(10**8)
# mod = 10**9+7
def inp(): return int(input())
def inpm(): return map(int,input().split())
def inpl(): return list(map(int, input().split()))
def inpls(): return list(input().split())
def inplm(n): return list(int(input()) for _ in range(n))
def inplL(n): return [list(input()) for _ in range(n)]
def inplT(n): return [tuple(input()) for _ in range(n)]
def inpll(n): return [list(map(int, input().split())) for _ in range(n)]
def inplls(n): return sorted([list(map(int, input().split())) for _ in range(n)])

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

Submission status: Wrong Answer

Solution code:
n = int(input())

left = 1
right = n
cnt = []
while n % 2 == 0:
    n //= 2
    cnt.append(2)

f = 3
while f * f <= n:
    if n % f == 0:
        n //= f
        cnt.append(f)
    else:
        f += 2

if n != 1:
    cnt.append(n)

for i in range(len(cnt)):
    left *= cnt[i]
    right //= cnt[i]
    if left < 10 and right < 10:
        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 N == i * j:
            flag = True

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

Submission status: Wrong Answer

Solution code:
A = int(input()) 
ans = min([A//i for i in range(2,10) if A%i == 0], default = 0)

print("Yes") if 1<=ans<=9 else print("No")

Submission status: Wrong Answer

Solution code:
def eighty_one(a):
    for n in range(9, 0, -1):
        if a % n != 0:
            if a // n > 9:
                return False
            else:
                return True
    return False

n = int(input())
if eighty_one(n):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())
kuku = set()

for i in range(1,9):
    for j in range(1,9):
        kuku.add(i*j)

if n in kuku:
    print('Yes')
else:
    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 N==i*j:
      print('Yes')
      flag=1
      break
      
if flag==0:
  print('No')

Submission status: Wrong Answer

Solution code:
def solve():
    N = int(input())
    flag = False

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


if __name__ == "__main__":
    solve()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
N=int(input())
for a in range(1,9):
  for b in range(1,9):
    if a*b==N:
      print('Yes')
      exit()
print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=int(input())
if a<10:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

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

for i in range(1,10):
  r = (n/i)//1
  if len(str(r)) < 2 and r <= 9:
    print("Yes")
    exit()
    
print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())

for i in range(1,10):
  r = n/i
  if len(str(r)) < 2 and r <= 9:
    print("Yes")
    exit()
    
print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())

for i in range(1,10):
  r = n/i
  if len(str(r)) < 10:
    print("Yes")
    exit()
    
print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
s = set(filter(lambda x : n % x == 0 and n / x < 10, [x for x in range(1, 10)]))

print("No" if len(s) == 0 in s else "Yes")

Submission status: Wrong Answer

Solution code:
n = int(input())
s = set(filter(lambda x : n % x == 0 and n / x < 10, [x for x in range(1, 10)]))

print("Yes" if len(s) == 0 in s else "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

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')
      pass

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

Submission status: Wrong Answer

Solution code:
n = int(input())

for i in range(n // 2):
  for j in range(n // 2):
    if i*j == n:
      print('Yes')
print('No')

Submission status: Wrong Answer

Solution code:
a=[int(i) for i in input().split()]
flag=0
for i in range(1,10):
  for j in range(1,10):
    if(i*j==a):
      flag=1
      break
if(flag==1):
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())
mylist = []
for i in range(1,10):
    for j in range(1,10):
        if (i*j) == N:
            print("YES")
            exit(0)

print("NO")

Submission status: Wrong Answer

Solution code:
N = int(input())
mylist = []
for i in range(1,10):
    for j in range(1,10):
        mylist.append(i*j)
        if mylist.count(N):
            print("YES")
            exit(0)

print("NO")

Submission status: Wrong Answer

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

if mylist.count(N):
    print("YES")
else: print("NO")

Submission status: Wrong Answer

Solution code:
num = int(input())

data = list()

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

if num in data:
    print('yes')
else:
    print('no')

Submission status: Wrong Answer

Solution code:
num = int(input())
c = False
for i in range(1,10):
    if num % i : continue
    n1 = num/i
    n2 = num/n1
    if ((n1 * n2) == num) and (n1 < 10 and n2 < 10): 
        c = True
        break

if c:
    print('yes')
else:
    print('no')

Submission status: Wrong Answer

Solution code:
import sys
N = int(input())
array = [ I for I in range(1,10) ]

if not ( 1 <= N <= 100 ): sys.exit()

if N >= 82:
    print('No'); sys.exit()
else:
    for J in array:
        if N % J == 0: print('Yes'); sys.exit()
print('No')

Submission status: Wrong Answer

Solution code:
import sys
N = int(input())
array = [ I for I in range(1,10) ]

if not ( 1 <= N <= 100 ): sys.exit()

if N >= 82:
    print('No')
else:
    for J in array:
        if N % J == 0: print('Yes'); sys.exit()
print('No')

Submission status: Wrong Answer

Solution code:
Suji=[]
for i in range(1,10):
  Suji.append(i)
N = int(input())
Suji_check=False
for s in Suji:
  if N//s==0:
    A = N//s
    for t in Suji:
      if A == t:
        Suji_check = True
if Suji_check:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
Suji=[]
for i in range(1,10):
  Suji.append(i)
N = int(input())
Suji_check=False
for s in Suji:
  A = N//s
  for t in Suji:
    if A == t:
      Suji_check = True
if Suji_check:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
Suji=[]
for i in range(1,10):
  Suji.append(i)
N = int(input())
Suji_check=False
for s in Suji:
  A = N%s
  for t in Suji:
    if A == t:
      Suji_check = True
if Suji_check:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
def main():
    N = int(input())
    l = [2, 3, 4, 5, 6, 7, 8, 9]
    for i in range(8):
        c = N // l[i]
        r = N % l[i]
        if c > 0 and c < 10 and r == 0:
            print('Yes')
            return
    print('No')
main()

Submission status: Wrong Answer

Solution code:
N = 0;
i = 0;
tmp = 0;
ans = 0;

N = int(input());

for i in range(1,9,1):
    if N%i!=0:
        continue;
    tmp = N/i;
    
    if tmp<=9 and tmp>=1:
        ans+=1;

if ans>0:
    print('Yes');
    
else:
    print('No');

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())
for i in range (2,5):
    if N%i==0:
        print('Yes')
    else:
        print('No')
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
if int(input()) in (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, 42, 45, 48, 49, 50, 54, 56, 63, 64, 72, 81):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
print('Yes' if int(input()) in [i * j for j in range(1, 101) for i in range(1, 101)] else 'No')

Submission status: Wrong Answer

Solution code:
import numpy as np
N = int(input())
qq_list = np.arange(1, 10)
res_list = N % qq_list
if np.any(res_list == 0):
    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(N == i*j):
            print("YES")
            sys.exit()
print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

solve()

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

Submission status: Wrong Answer

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

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())
for j in range(1,9):
  for k in range(1,9):
    if j * k == N:
      print('Yes')
      exit()
print('No')

Submission status: Wrong Answer

Solution code:
num = int(input())


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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
i = 0
divisors = []
while i < n:
  i += 1
  if n % i == 0:
    divisors.append(i)
if len(divisors) == 4 and  n <= 81:
  print('Yes')
elif n <= 10 or n == 16 or n == 25 or n == 36 or n == 49 or n == 64 or n == 81:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
N=int(input())
if N>81:
  print("No")
for i in range(1,10):
  for j in range(1,10):
    if i>j:
      continue
    if N==i*j:
      print("Yes")
      exit(0)
print("No")

Submission status: Wrong Answer

Solution code:
N=int(input())
if N>81:
  print("No")
for i in range(1,9):
  if N%i==0 and N<=i*9:
    print("yes")
    exit(0)
print("No")

Submission status: Wrong Answer

Solution code:
N=int(input())
if N>81:
  print("No")
for i in range(2,9):
  if N%i==0 and N<=i*9:
    print("yes")
    exit(0)
print("No")

Submission status: Wrong Answer

Solution code:
N=int(input())
if N>81:
  print("No")
for i in range(1,10):
  if N%i==0:
    print("yes")
    exit(0)
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')
else:print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())
f = False

for i in range(2, 10):
  if n % i == 0 and 1 <= int(n / i) <= 9:
    f = True
    break;

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

Submission status: Wrong Answer

Solution code:
N=int(input())

for i in range(1,10):
    a=N//i
    if a*i==N:
        print('Yes')
        exit()
    else:
        pass
print('No')

Submission status: Wrong Answer

Solution code:
N=int(input())

for i in range(1,10):
    a=N//i
    if a*i==N:
        print('Yes')
    else:
        pass
print('No')

Submission status: Wrong Answer

Solution code:
import sys    #インタプリタや実行環境に関する情報を扱うためのライブラリ
import os     #フォルダやファイルを操作
import math

#標準入力
n = int(input())
#a = list(map(int, input().split()))

#mapはmap(function, iterable)のように使うが、扱いづらいのでlistと併用すべき
#lista = list(map(int, str.split()))

ans="NO"

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:
number = int(input())
for i in range(1, 9):
  for n in range(1, 9):
    list = []
    list.append(i * n)
if number in list:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
flag = False
for i in range(9):
    if N % (i+1) == 0:
        flag = True
        break
if flag:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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