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(9):
    for j in range(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 < 10:
        print("Yes")
        exit()
print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())
list = [9,8,7,6,5,4,3,2]
if n == 1:
    print("Yes")

ans = ""
for item in list:
    #print(n, "/", list[i], "のあまり=", n % list[i])
    if (n % item) == 0 and (n / item) in list:
        ans = "Yes"
        break
    else:
        ans = "No"

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
ans = ''

for i in range(1,10):
    for j in range(1,10):
        if N == i*j:
            ans = 'yes'
if ans == '':
    ans = 'no'
print(ans)

Submission status: Wrong Answer

Solution code:
n=int(input())

if n in [1,2,3,4,5,6,7,8,9,12,14,16,18,20,21,24,25,27,28,30,32,35,42,45,48,49,54,56,64,72,81]:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
N=int(input())
flag=0
for A in range(1,10):
  for B in range(1,10):
    if N==A*B:
      flag=1
      break
      
if flag==1:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
N=int(input())
flag=0
for A in range(1,10):
  for B in range(1,10):
    if N==A*B:
      flag=1
      break
      
if flag==0:
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

Solution code:
N=int(input())
flag=0
for A in range(1,10):
  for B in range(1,10):
    if N==A*B:
      flag=1
      break
      
if flag==0:
  print('NO')
else:
  print('YES')

Submission status: Wrong Answer

Solution code:
N=int(input())
A=1
B=1
flag=0
for A in range(1,10):
  for B in range(1,10):
    if N==A*B:
      flag=1
      break
if flag==0:
  print('NO')
else:
  print('YES')

Submission status: Wrong Answer

Solution code:
N=input()
N=int(N)
A=1
B=1
flag=0
if N>81:
    flag=0
elif N<1:
    flag=0
else:
    for A in range(10):
        for B in range(10):
            if N==A*B:
                flag=1
            else:
                flag=0
if flag==0:
    print('NO')
else:
    print('YES')

Submission status: Wrong Answer

Solution code:
N=input()
N=int(N)
A=1
B=1
flag=0
if N>81:
  flag=0
elif N<1:
    flag=0
else:
  for A in range(10):
    for B in range(10):
      if N==A*B:
        flag=1
      else:
        flag=0
if flag==0:
  print('NO')
else:
  print('YES')

Submission status: Wrong Answer

Solution code:
N=input()
N=int(N)
A=1
B=1
flag=0
if N>81:
  flag=0
elif N<1:
  flag=0
else:
  for A in range(10):
    for B in range(10):
      if N==A*B:
        flag=1
      else:
        flag=0
if flag==0:
  print('NO')
else:
  print('YES')

Submission status: Wrong Answer

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

#N=A*B
A=1
B=1
flag=0
if N>81:
  flag=0
else:
  for A in range(10):
    for B in range(10):
      if N==A*B:
        flag=1
      else:
        flag=0
if flag==0:
  print('NO')
else:
  print('YES')

Submission status: Wrong Answer

Solution code:
a=input()
a=int(a)
li1=[2,3]
for i in range(4,82):
    b=0
    for k in range(2,i):
        if i%k==0:
            b=1
    if b==0:
        li1.append(i)
li2=[h for h in range(1,82)]
li3=list(set(li2)-set(li1))
li4=[2,3,5,7,9]
li5=li3+li4
if a in li5:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a=input()
a=int(a)
li1=[2,3]
for i in range(4,82):
    b=0
    for k in range(2,i):
        if i%k==0:
            b=1
    if b==0:
        li1.append(i)
li2=[h for h in range(1,82)]
li3=list(set(li2)-set(li1))
if a in li3:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())

flag = 0

for i in range(1,9):
    for j in range(1,9):
        if i*j == n:
            flag = 1
            break

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def check(n):
    for i in range(1,9):
        if n%i==0 and 1<=n//i<=9:
            return True
    return False
n=int(input())
if check(n):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

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())
ans = 'No'
for i in range(1, 10):
  if n % i == 0 and len(str(n % i)) == 1:
    ans = 'Yes'
    break
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')

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:break
        if i*j==n:
            print("Yes")
            n=0
            break
    else:
        continue
    break
if n!=0: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:break
        if i*j==n:
            print("Yes")
            n=0
            break
    else:
        continue
    break
if n: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:break
        if i*j==n:
            print("Yes")
            break
    else:
        continue
    print("No")
    break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
s=[0]*100
for i in range(1,10):
  for j in range(1,10):
    s[10*i+j]=i*j
p=81
for k in range(1,81):
  if s[k]==n:
    p=p-1
if p==81:
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

Solution code:
n=int(input())
s=[0]*81
for i in range(1,10):
  for j in range(1,10):
    s[i+j]=i*j
p=81
for k in range(1,81):
  if s[k]==n:
    p=p-1
if p==81:
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

Solution code:
n=int(input())
s=[0]*81
for i in range(1,10):
  for j in range(1,10):
    s[i+j]=i*j
p=81
for k in range(1,81):
  if s[k]==n:
    p=p-1
if p==81:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())

flg = 0

for i in range(9):
	for j in range(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,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())
lis=[1,2,3,5,7]
for x in lis:
  if n%x==0 and n//x<10:
    print('Yes')
    exit()
print('No')

Submission status: Wrong Answer

Solution code:
n=int(input())
lis=[2,3,5,7]
for x in lis:
  if n%x==0 and n//x<10:
    print('Yes')
    exit()
print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())

y=[]
for i in range(1,10):
    for j in range(1,10):
        x=i*j
        y.append(x)

count=0
for z in y:
    if N==z:
        count+=1
    else:
        count=count
if count==1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:


import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)

def no():
    print("No")
def yes():
    print("Yes")
    
n=int(input().rstrip())

for a in range(1,10):
    for b in range(9):
        if(a*b==n):
            yes()
            sys.exit()
no()

Submission status: Wrong Answer

Solution code:
n = int(input())

for i in (1,10) :
  for j in (1,10) :
    if i * j == n :
      print('Yes')
      exit()
    
else :
  print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())

revList = [9, 8, 7, 6, 5, 4, 3, 2]
for i in revList:
  if n % i == 0:
    if 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 i * j == N:
            print("Yes")
        else:
            print("No")

Submission status: Wrong Answer

Solution code:

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


for x in [1,2,3,5,7,9]:
	if n/x < 10 and n%x == 0 :
		ans = "Yes"

print(ans)

Submission status: Wrong Answer

Solution code:
def func():
    a = int(input())
    for i in range(1, 9):
        for n in range(1, 9):
            if a == i * n:
                print("Yes")
                return
    print("No")


func()

Submission status: Wrong Answer

Solution code:
def func():
    a = int(input())
    for i in range(1, 10):
        for n in range(1, 10):
            if a == i * n:
                print("Yes")
                return
            else:
                print("No")
                return

func()

Submission status: Wrong Answer

Solution code:
n = int(input())
m = min(int(n**0.5),7)
import sys
for i in range(1,m+1):
    if (n%i == 0) and (n/i < 10):
        print('Yes')
        sys.exit()
print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())
m = min(int(n**0.5),7)
import sys
for i in range(2,m+1):
    if (n%i == 0) and (n/i < 10):
        print('Yes')
        sys.exit()
print('No')

Submission status: Wrong Answer

Solution code:
n=int(input())
 
a=[]
for i in range(1,10):
	if n/i<10:
		a.append("Yes")
 
if "Yes" in a:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

for a in kuku:
    for b in kuku:
        if a*b == N:
            c+=1
if c>1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

for a in kuku:
    for b in kuku:
        if a*b == N:
            c+=1
if c>1:
    print('yes')
else:
    print('no')

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# 整数の入力
a = int(input())

text="No"

for i in range(1,9):
    for j in range(1,9):
        if i*j == a:
            text ="Yes"
        break
    else:
        continue
        
else:
    print(text)

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

n = int(input())
array = []

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

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

Solution code:

n = int(input())
array = []
for i in range(1,9):
    for j in range(1,9):
        array.append(i * j)

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

Submission status: Wrong Answer

Solution code:
n = int(input())
num_list = [2,3,4,5,6,7,8,9]
div_flag = False
for num in num_list:
    if n / num < 10 and int(n/num)==n/num:
        div_flag = True
if div_flag:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n=int(input())

cnt=0
for i in range(1, n+1):
    if n%i==0:
        cnt+=1
print('Yes' if cnt!=2 else 'No')

Submission status: Wrong Answer

Solution code:
A=input().split()
a=int(A[0])
p=0
for i in range(1,10):
    for j in range(1,10):
        if a==i*j:print("Yes");p=1
if p==0:print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print('Yes' if int(input()) in {i*j for i in range(9) for j in range(9)} else 'No')

Submission status: Wrong Answer

Solution code:
N=int(input())
a=0
for i in range (2,9):
  if N%i==0:
    if N/i<=9:
      a=a+1
if (a==0 and N>1):
  print("no")
else:
    print("yes")

Submission status: Wrong Answer

Solution code:
N=int(input())
a=0
for i in range (2,9):
  if N%i==0:
    if N/i<=9:
      a=a+1
if a==0:
  print("no")
else:
    print("yes")

Submission status: Wrong Answer

Solution code:
k = int(input())
a = list(range(1,10))
t = False
for i in a:
     if k / i >= 9 :
            continue
     elif  k / i <= 9 and k % i == 0:
            t = True
if t:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
k = int(input())
a = list(range(1,10))
t = False
for i in a:
     if k / i >= 9:
            continue
     else:
            t = True
if t:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
k = int(input())
a = list(range(1,10))
for i in a:
     if k / i >= 9:
             print("No")
     else:
             print("Yes")

Submission status: Wrong Answer

Solution code:
k = int(input())
a = list(range(1,10))
for i in a:
     if k / i >= 10:
             print("No")
     else:
             print("Yes")

Submission status: Wrong Answer

Solution code:
n=int(input())
count=0
for i in range(9):
    if n==50:
        print("No")
        break
    else:
        if count<=8:
            if n%(i+1)==0:
                print("Yes")
                break
            else:
                count+=1
        else:
            print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
n = int(input())

nums=[]

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

if n in nums:
  print('yes')
else:
  print('no')

Submission status: Wrong Answer

Solution code:
import sys
N = int(input())
for i in range(1,10):
  if N // i < 10:
    print("Yes")
    sys.exit()
  else:
    None
print("No")

Submission status: Wrong Answer

Solution code:
a = int(input())

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

Submission status: Wrong Answer

Solution code:
N = int(input())
a = 1
b = 1
if (N == 1)or(N == 81):
    print("yes")
elif (2 < N < 80):
    for a in range(1,10):
        for b in range(1,10):
            if N == a*b:
                a = a
                b = b
                if (a == 9)and(b == 9):
                    print("no")
                else:
                    print("yes")
            else:
                None
else:
    print("no")

Submission status: Wrong Answer

Solution code:
a = float(input())

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

for num in l:
    ret = a / num
    if ret.is_integer() and ret >= 1 and ret <= 9:
        print("YES")
        exit(0)

print("NO")

Submission status: Wrong Answer

Solution code:
# ABC144b


def main():
    import sys
    input = sys.stdin.readline
    sys.setrecursionlimit(10**6)

    # map(int,input().split())

    n = int(input())

    for i in range(2, 10):
        if n % i != 0:
            continue
        for j in range(2, 10):
            if n//i % j != 0:
                continue
            if 0 <= n//i//j <= 1:
                print('Yes')
                exit(0)
    print('No')


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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


if flg == 0:
	output = "No" 
else:
	output = "Yes"
print(output);

Submission status: Wrong Answer

Solution code:
s = int(input());
flg = 0;
for i in range(2,s):
  if s%i == 0:
    flg = 1
    break


if flg == 0:
	output = "No" 
else:
	output = "Yes"
print(output);

Submission status: Wrong Answer

Solution code:
s = int(input());
flg = 0;
ss = int(s/2);
for i in range(2,ss):
  if s%i == 0:
    flg = 1
    break


if flg == 0:
	output = "No" 
else:
	output = "Yes"
print(output);

Submission status: Wrong Answer

Solution code:
from sys import stdin
n = int(stdin.readline().rstrip())
for i in range(1,10):
    for j in range(1,10):
        a = i*j
        if a == n:
            print("YES")
            exit()
        else:
            pass
print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

if N >= 0 and N <= 81:
  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 < 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 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')
      break
  print('No')
  break

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
half = math.floor(n**0.5)
#print(half)

for i in range(half+1,1,-1):
  if n % i == 0 and 1 <=n/i<=9 :
    print("Yes")
    exit()
print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
import math 
 
n = int(input())
if n <= 81:
  m = int(math.sqrt(n))
  while True:
    if n % m == 0:
      print("Yes")
      break
    else:
      m += 1
      if m >= 10:
        print("No")
        break
else:
  print("No")

Submission status: Wrong Answer

Solution code:
def main():
    num = int(input())
    for i in range(1,10):
        q, mod = divmod(num, i)
        if mod == 0 and 1 < q < 10:
            print("Yes")
            return

    print("No")
if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
def main():
    num = int(input())
    for i in range(1,10):
        print(i)
        q, mod = divmod(num, i)
        if mod == 0 and 1 < q < 10:
            print("Yes")
            return

    print("No")
if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
def main():
    num = int(input())
    for i in range(1,9):
        q, mod = divmod(num, i)
        if mod == 0 and 1 < q < 10:
            print("Yes")
            return

    print("No")
if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
N = int(input())
flag = False
for i in range(1,10):
    if N % i == 0 and N // i < 10:
        print('Yes')
        flag = True
        break
if not flag:
    print(False)

Submission status: Wrong Answer

Solution code:

a = int(input())
j=0
for i in range(9):
    j = j+1
    h=a/j
    if (h.is_integer()):
        if (h <= 9):    
            ans="yes"
            break
        else:
            ans="no"
    else:
        ans="no"
    

print(ans)

Submission status: Wrong Answer

Solution code:

a = int(input())
j=0
for i in range(9):
    j = j+1
    h=a/j
    if (h.is_integer()):
        if (h < 9):    
            ans="yes"
            break
        else:
            ans="no"
    else:
        ans="no"
    

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = int(input())
flg = "No"
for b in range(1, 9):
  if(a%b == 0):
    flg = "Yes"
print(flg)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
for i in range(8):
    if(n/(i+2)<=9 and (n/(i+2)).is_integer()==True and n!=0):
        print("Yes")
        exit()
print("No")

Submission status: Wrong Answer

Solution code:
n=int(input())
for i in range(8):
    if(n/(i+2)<=9 and (n/(i+2)).is_integer()==True):
        print("Yes")
        exit()
print("No")

Submission status: Wrong Answer

Solution code:
n=int(input())
for i in range(7):
    if(n/(i+2)<=9 and (n/(i+2)).is_integer()==True):
        print("Yes")
        exit()
print("No")

Submission status: Wrong Answer

Solution code:
num=int(input())
flag=0
i=1
j=1

for i in range(9):
	for j in range(9):
		if i*j == num:
			flag=1

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

Submission status: Wrong Answer

Solution code:
N = int(input())

products = []

for i in range(1,9):
    for j in range(1,9):
        products.append(i*j)

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

Submission status: Wrong Answer

Solution code:
N = int(input())

products = []

for i in range(9):
    for j in range(9):
        products.append(i*j)

if N == 0:
    print("No")
elif N in products:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

products = []

for i in range(9):
    for j in range(9):
        products.append(i*j)

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

Submission status: Wrong Answer

Solution code:
N = int(input())

flag = False

if N>81:
    print('No')
    
else:
    if N<10 :
        print('Yes')
    else:    
        for div in range(2,9):
            if (N % div)== 0 and (N // div)<10:
                print('Yes')
                flag =True
                break
          
        if not flag:     
            print('No')

Submission status: Wrong Answer

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

if N>81:
    print('No')
    
else:
    if N<10 or (N % 2)==0:
        print('Yes')
    else:    
        for div in range(3,10,2):
            if (N % div)== 0 and (N // div)<10:
                print('Yes')
                flag =True
                break
          
        if not flag:     
            print('No')

Submission status: Wrong Answer

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

if N>81:
    print('NO')
    
else:
    if N<10 or (N % 2)==0:
        print('YES')
    else:    
        for div in range(3,10,2):
            if (N % div)== 0 and (N // div)<10:
                print('YES')
                flag =True
                break
          
        if not flag:     
            print('NO')

Submission status: Wrong Answer

Solution code:
N = input()

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

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python3
import math

n = int(input())
m = int(math.sqrt(n))

for i in range(2, m + 1):
    if n % i == 0 and n / i < 10:
        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 N == i*j:
            print('Yes')
        if i*j == 81 and N!=81:
            print('No')

Submission status: Wrong Answer

Solution code:
A = input()
A = int(A)

def cal(A):
  for i in range(9):
    print(i)
    for j in range(9):
      if (i+1) *( j+1) == A:
        return 'Yes'
        break
  return 'No'

print(cal(A))

Submission status: Wrong Answer

Solution code:
A = input()
A = int(A)

def cal(A):
  for i in range(9):
    for j in range(9):
      if i * j == A:
        return 'Yes'
        break
  return 'No'

print(cal(A))

Submission status: Wrong Answer

Solution code:
x=int(input())
l = [1,2,3,4,5,6,7,8,9]
for i in reversed(l):
  if (x%i == 0)and(x//i<10):
    print("Yes")
    break
  else:
    print("No")
    break

Submission status: Wrong Answer

Solution code:
x=int(input())
l = [1,2,3,4,5,6,7,8,9]
for i in reversed(l):
  if (x%i == 0)and(x//i<10):
    print("Yes")
    break

Submission status: Wrong Answer

Solution code:
n = int(input())
f = 0
for i in range(1,10):
  if n%i == 0 and n/i<10:
    f=1
    break
if f==0:
  print('no')
else:
  print('yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
N=int(input(''))
for i in range(1,10,1):
    if N%i==0 and N/i <= 9:
        print('yes')
        sys.exit()
print('no')

Submission status: Wrong Answer

Solution code:
N = int(input())

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

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

if int(N / 1) <10:
    print("Yes")
elif int(N / 2) < 10:
    print("Yes")
elif int(N / 3) < 10:
    print("Yes")
elif int(N / 4) < 10:
    print("Yes")
elif int(N / 5) < 10:
    print("Yes")
elif int(N / 6) < 10:
    print("Yes")
elif int(N / 7) < 10:
    print("Yes")
elif int(N / 8) < 10:
    print("Yes")
elif int(N / 9) < 10:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

if N / 1 <10:
    print("Yes")
elif N / 2 < 10:
    print("Yes")
elif N / 3 < 10:
    print("Yes")
elif N / 4 < 10:
    print("Yes")
elif N / 5 < 10:
    print("Yes")
elif N / 6 < 10:
    print("Yes")
elif N / 7 < 10:
    print("Yes")
elif N / 8 < 10:
    print("Yes")
elif N / 9 < 10:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

n = int(input())

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

Submission status: Wrong Answer

Solution code:
# # 整数の入力
# a = int(input())
# # スペース区切りの整数の入力
# b, c = map(int, input().split())
# # 文字列の入力
# s = input()
n = int(input())

ans = "No"

for i in range(1, 10):
    if n < 100 and n / i == n // i:
        ans = "Yes"

print(ans)

Submission status: Wrong Answer

Solution code:
N =int(input())

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

Submission status: Wrong Answer

Solution code:
N=int(input())
if N>81:
    print("No")
else: 
    if N 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,40,42,45,48,54,56,63,64,72,81):
        print("Yes")
    else:
        print("No")