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())
prime = [2]
for i in range(3, 101):
  for j in range(2, i + 1):
    if (i % j) == 0:
      break
  if i == j:
    prime.append(i)
pflag = True
for k in prime:
  if k >= 10:
    if (n % k == 0):
      pflag = False
for l in range(50, 101, 10):
  if (n % l) == 0:
    pflag = False
if(pflag):
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())
list = []

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

if n in list:
	print('yes')
else:
	print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())
list = []

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

if n in list:
	print('yes')
else:
	print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

"""

x=map(int,input().split())
ans="No"
for  i  in range(1,10):
    for j in range(1,10):
        if(i*j==x):
            ans="Yes"
print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())
s = 0

for i in range(2,9):
	if n%i == 0:
		print('yes')
		s+= 1
		break
if s ==0:
	print('No')

Submission status: Wrong Answer

Solution code:
n=int(input())

for i in range(1,10):
  if n%i==0 and int(n/i)==0:
    print('Yes')
    
print('no')

Submission status: Wrong Answer

Solution code:
N = input()

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

for m in mod:
  for l in mod:
    if (N == m * l):
      ans ='Yes'
    else:
      ans ='No' 

print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())

L = set()
for i in range(1,10):
    for j in range(1,10):
        result = i*j
        L.add(result)
print(L)

if n in L:
    print("Yes")
elif n not in L:
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())

L = set()
for i in range(1,9):
    for j in range(1,9):
        result = i*j
        L.add(result)

if n in L:
    print("Yes")
elif n not in L:
    print("No")

Submission status: Wrong Answer

Solution code:
N=int(input())
for i in range(1,10):
  if (N/i).is_integer==True and (N/i)<10:
      print("Yes")
print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
ans = 0
for i in range(9):
    for j in range(9):
        if i*j == N:
            ans = 1

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

Submission status: Wrong Answer

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

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

n=I()
count=0
anss=[]
for i in range(1,10):
    for j in range(1,10):
        anss.append(i*j)
for ans in anss:
    if ans==n:
        print("Yes")
    else:
        count+=1
if count==len(anss):
    print("No")

Submission status: Wrong Answer

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

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

n=I()
s=0
if 1<=n<=9:
    print("Yes")
    sys.exit()
for i in range(2,10):
    if n%i==0:
        s=n//i
        break
if 1<=s<=9:
    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):
        print(i,j)
        if i * j == n:
            print('Yes')
            exit()
else:print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
ok = False
for i in range(1,n):
    ans = n/i
    sur = n%i
    if i > 9:
        break
    elif sur ==0 and 1<= ans <=9:
       #print(i,ans)
        ok = True
        break

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

Submission status: Wrong Answer

Solution code:
n = int(input())
ok = False
for i in range(1,n):
    ans = n//i
    sur = n%i
    if i > 9:
        break
    elif sur ==0 and 1<= ans <=9:
       #print(i,ans)
        ok = True
        break

if ok:print("Yes")
else:print("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')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N=int(input())
if N<=81 and N%10>0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N=int(input())
if N<=81 and N%10!=0:
    print('Yes')
else:
    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())

def zent(N):
    for i in range(1,10):
        for j in range(1,10):
            if j*i==N:
                return "Yes"
    return "No"
zent(N)

Submission status: Wrong Answer

Solution code:
N=int(input())

def zent(N):
    for i in range(1,9):
        for j in range(1,9):
            if j*i==N:
                return "Yes"
    return "No"
zent(N)

Submission status: Wrong Answer

Solution code:
n = int(input())

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

print(flag)

Submission status: Wrong Answer

Solution code:
n = int(input())

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

print(flag)

Submission status: Wrong Answer

Solution code:
n = int(input())

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

ans = 0
for i in range(9):
    for j in range(9):
        if n%num[j] == 0 and n//(num[i]) == num[j]:
            ans = 1
if ans == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())

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

ans = 0
for i in range(9):
    for j in range(9):
        if n//(num[i]) == num[j]:
            ans = 1
if ans == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())

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

ans = 0
for i in range(9):
    for j in range(9):
        if n%(num[i]) == num[j]:
            ans = 1
if ans == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())

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

ans = 0
for i in range(len(num)):
    if n%(num[i]) == 0 and n//(num[i]) <= 9:
        ans = 1
if ans == 1:
    print("Yes")
else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
s=0
for a in range(1,10):
  for b in range(1,10):
    if a*b==n:
      print("Yes")
      s+=1
  else:
    continue
if s==0:
  print("No")

Submission status: Wrong Answer

Solution code:
n = 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:
x=int(input())
t=1
#a=[11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79]
for i in range(1,10):
  if t==0:break
  for k in range(1,i+1):
    if k*i==x:
      print('Yes')
      t=0
      break
else:print('No')

Submission status: Wrong Answer

Solution code:
x=int(input())
#a=[11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79]
for i in range(1,10):
  for k in range(1,i+1):
    if k*i==x:
      print('Yes')
      break
else:print('No')

Submission status: Wrong Answer

Solution code:
x=int(input())
a=[11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79]
for i in a:
  if x%i==0:
    print('No')
    break
if x<82:
  print('No')
else:print('Yes')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
n = float(input())
ans = 'False'
for l in range(1, 10):
    m = n / l
    if m.is_integer() and 1 <= m <= 9:
        ans = 'True'
        break
print(ans)

Submission status: Wrong Answer

Solution code:
import sys
#import bisect
#from collections import deque

def input():
    return sys.stdin.readline().rstrip('\n')

N = int(input())
#D = list(map(int, input().split()))

#D = deque(D)
#sum0 = D.pop()
#hp = 0

for i in range(2,10):
    if N % i == 0:
        print('Yes')
        sys.exit()

print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
print(N in [1, 2, 3, 4, 5, 6, 7 ,8 ,9,10, 12, 14, 15, 16, 18, 20, 21 ,24, 25, 27, 30, 32, 35, 36, 40,45, 48, 49, 54, 56, 63, 64 ,72, 81])

Submission status: Wrong Answer

Solution code:
n = int(input())

if n > 81:
    print("No")
if n%2 == 0:
    if n%8 == 0:
        if n//8 < 10:
            print("Yes")
        else:
            print("No")
    elif n%4 == 0:
        if n//4 < 10:
            print("Yes")
        else:
            print("No")
    elif n%6 == 0:
        if n//6 < 10:
            print("Yes")
        else:
            print("No")
    else:
        if n//2 < 10:
            print("Yes")
        else:
            print("No")

elif n%3 == 0:
    if n%9 == 0:
        if n//9 < 10:
            print("Yes")
        else:
            print("No")
    else:
        if n//3 < 10:
            print("Yes")
        else:
            print("No")

elif n%5 == 0:
    if n//5 < 10:
        print("Yes")
    else:
        print("No")

elif n%7 == 0:
    if n//7 < 10:
        print("Yes")
    else:
        print("No")

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

Submission status: Wrong Answer

Solution code:
n = int(input())

if n > 81:
    print("No")
if n%2 == 0:
    if n%8 == 0:
        if n//8 < 10:
            print("Yes")
        else:
            print("No")
    if n%4 == 0:
        if n//4 < 10:
            print("Yes")
        else:
            print("No")
    else:
        if n//2 < 10:
            print("Yes")
        else:
            print("No")

elif n%3 == 0:
    if n%9 == 0:
        if n//9 < 10:
            print("Yes")
        else:
            print("No")
    else:
        if n//3 < 10:
            print("Yes")
        else:
            print("No")

elif n%5 == 0:
    if n//5 < 10:
        print("Yes")
    else:
        print("No")

elif n%6 == 0:
    if n//6 < 10:
        print("Yes")
    else:
        print("No")

elif n%7 == 0:
    if n//7 < 10:
        print("Yes")
    else:
        print("No")

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

Submission status: Wrong Answer

Solution code:
n = int(input())

if n > 81:
    print("No")
if n%2 == 0:
    if n%8 == 0:
        if n//8 < 10:
            print("Yes")
        else:
            print("No")
    if n%4 == 0:
        if n//4 < 10:
            print("Yes")
        else:
            print("No")
    else:
        if n//2 < 10:
            print("Yes")
        else:
            print("No")

elif n%3 == 0:
    if n%9 == 0:
        if n//9 < 10:
            print("Yes")
        else:
            print("No")
    else:
        if n//3 < 10:
            print("Yes")
        else:
            print("No")

elif n%5 == 0:
    if n//5 < 10:
        print("Yes")
    else:
        print("No")

elif n%7 == 0:
    if n//7 < 10:
        print("Yes")
    else:
        print("No")

else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
kuku = [1, 2, 3, 4, 5, 6, 7, 8, 9]
kuku1 = [a * b for a in kuku for b in kuku]
if N in kuku:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
N = input()
for n in N:
  if 1 <= int(n) <= 9:
    print("Yes")
  elif int(n) >= 82:
    print("No")
  elif int(n) % 2 == 0:
    print("Yes")
  elif int(n) % 3 == 0:
    print("Yes")
  elif int(n) % 5 == 0:
    print("Yes")
  elif int(n) % 7 == 0:
    print("Yes")
  else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

for i in range(1,10):
  if N%i==0:
    continue
  if len(str(int(N/i)))==1:
    print('Yes')
    break
else:
  print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())

for i in range(1,10):
  if len(str(int(N/i)))==1:
    print('Yes')
    break
else:
  print('No')

Submission status: Wrong Answer

Solution code:
n=int(input())
m=1
while m<10:
  if n%m==0:
    m=m+1
    if n%m==0:
      print('Yes')
      break
    else:
      print('No')
  else:
    m=m+1

Submission status: Wrong Answer

Solution code:
a=int(input())
s=[]
for i in range(9):
    for j in range(9):
        s.append((i+1)*(i+1))
if a in s:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
# import bisect
# import heapq
# from copy import deepcopy
# from collections import deque
# from collections import Counter
# from itertools import accumulate
# from itertools import permutations
# import numpy as np
import math
# mod = 10**9 + 7

# n = int(input())
# a = list(map(int, input().split()))
n = int(input())


if n > 81:
    print('No')
    exit()

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

print('No')

Submission status: Wrong Answer

Solution code:
# import bisect
# import heapq
# from copy import deepcopy
# from collections import deque
# from collections import Counter
# from itertools import accumulate
# from itertools import permutations
# import numpy as np
import math
# mod = 10**9 + 7

# n = int(input())
# a = list(map(int, input().split()))
n = int(input())


if n > 81:
    print('No')
    exit()

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

print('No')

Submission status: Wrong Answer

Solution code:
# import bisect
# import heapq
# from copy import deepcopy
# from collections import deque
# from collections import Counter
# from itertools import accumulate
# from itertools import permutations
# import numpy as np
# import math
# mod = 10**9 + 7

# n = int(input())
# a = list(map(int, input().split()))
n = int(input())

def prime(n):
    p = True
    for i in range(2,n//2 + 1):
        if n % i == 0 and p != 2:
            p = False
            break

    return p

print('Yes' if n<=81 and not prime(n) else 'No')

Submission status: Wrong Answer

Solution code:
# import bisect
# import heapq
# from copy import deepcopy
# from collections import deque
# from collections import Counter
# from itertools import accumulate
# from itertools import permutations
# import numpy as np
# import math
# mod = 10**9 + 7

# n = int(input())
# a = list(map(int, input().split()))
n = int(input())

def prime(n):
    p = True
    for i in range(2,n//2 + 1):
        if n % i == 0:
            p = False
            break

    return p

print('Yes' if n<=81 and not prime(n) else 'No')

Submission status: Wrong Answer

Solution code:
a = int(input())
if a < 82:
  for n in range(1,9):
    for k in range(1,9):
      if n*k==a:
        print('Yes')
        break
    else:
      continue
      break
  else:
    print('No')

Submission status: Wrong Answer

Solution code:
a = int(input())
for n in range(1,9):
  for k in range(1,9):
    if n*k==a:
      print('Yes')
      break
  else:
    continue
  break
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
ls = []
for i in range(1,9):
    for j in range(1,9):
        a = i * j
        ls.append(a)
b = 0
for u in ls:
    if n == u:
        b += 1    
    else:
        continue
if b > 0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
cnt = 0
for a in range(8):
    for b in range(8):
        if N ==  a*b :
            print("Yes")
            cnt = 1
if cnt == 0:
    print = "No"

Submission status: Wrong Answer

Solution code:
N = int(input())
cnt =0
a = [1, 2, 3, 4, 5, 6, 7, 8, 9]
b = [1, 2, 3, 4, 5, 6, 7, 8, 9]
for x in range(8):
    for y in range(8):
        if N == a[x] * b[y]:
            print("Yes")
            cnt =1
if cnt == 0 :
 print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
l = []*81
for i in range(10):
     for j in range(10):
          l.append(i*j)
print(l)
if n in l:
     print("Yes")
else:
     print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
for i in range(1,10):
    if 1 <= n%i <= 9 and (n/i).is_integer():
        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:
n = int(input())

for i in range(10):
  if n % (i+1) == 0:
    print("Yes")
    exit()
print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
s = list(range(1,11))
a = 0
for i in s:
    for j in s:
        if i * j == n:
            a += 1
        else:
            a += 0

if a >0 :
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

find = False
for i in range(2, 10):
    if n % i == 0 and n // i != 1 and n // i <= 9:
        find = True
        break

if find:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

t = False
for i in range(1,10):
    for j in range(1, 10):
        if n == i*j:
            t = True
            quit()

if t:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())

if n <= 9:
    print('Yes')
elif n >=82:
    print('No')
else:
    if any(n%i == 0 and n//i <=9 for i in range(2, 9)):
        print('Yes')
    else:
        print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())

if n <= 9:
    print('Yes')
elif n >=82:
    print('No')
else:
    if any(n%i == 0 for i in range(2, 9)):
        print('Yes')
    else:
        print('No')

Submission status: Wrong Answer

Solution code:
from sys import exit

N = int(input())

for a in range(1, 10):
    for b in range(1, 10):
        if a * b == N:
            print("Yes")
            exit()
            print("No")

Submission status: Wrong Answer

Solution code:
from sys import exit

n = int(input())

for a in range(1, 10):
    for b in range(1, 10):
        if n == a * b:
            print("Yes")
            exit()
        else:
          print("No")

Submission status: Wrong Answer

Solution code:
from sys import exit

n = int(input())

for a in range(1, 10):
    for b in range(1, 10):
        if a * b == n:
            print("Yes")
            exit()
        else:
            print("No")

Submission status: Wrong Answer

Solution code:
from sys import exit

n = int, input()

for a in range(1, 10):
    for b in range(1, 10):
        if a * b == n:
            print("Yes")
            exit()
        else:
            print("No")

Submission status: Wrong Answer

Solution code:
n = int, input()

for a in range(1, 10):
    for b in range(1, 10):
        if a * b == n:
            print("Yes")
            break
        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")
            break
        else:
            print("No")

Submission status: Wrong Answer

Solution code:
from sys import exit

n = int, input()

for a in range(1, 9):
    for b in range(1, 9):
        if a * b == n:
            print("Yes")
            exit()
        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")
            break
        else:
            print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
ans = 0
for i in range(1,10):
    for j in range(1,10):
        if n == (i*j):
            ans = 1
            break
if ans == 1:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
numbers = [1, 2, 3, 4, 5, 6, 6, 8, 9]
N = int(input())
for n in filter(lambda x: N % x == 0, numbers):
    if int(N / n) in numbers:
        print("Yes")
        exit()
print("No")

Submission status: Wrong Answer

Solution code:
numbers = [1, 2, 3, 4, 5, 6, 6, 8, 9]
N = int(input())
for n in filter(lambda x: N % x == 0, numbers):
    if N / n in numbers:
        print("Yes")
        exit()
print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

N = int(input())
lis = list(range(1, 10))
start_idx = 0
found = False
while start_idx < len(lis)-1:
    if found:
        break
    idx = start_idx
    for idx in range(len(lis)):
        if lis[start_idx] * lis[idx] == N:
            found = True
    start_idx += 1
if found:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
import math

N = int(input())
half_N = int(N // 2)
lis = list(range(1, half_N+1))
start_idx = 0
found = False
while start_idx < len(lis)-1:
    if found:
        break
    idx = start_idx
    for idx in range(len(lis)):
        if lis[start_idx] * lis[idx] == N:
            found = True
    start_idx += 1
if found:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())
if n in [i * x for i in range(10) for x in range(10)]:
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
n = int(input())
f = [i * x for i in range(1,10) for x in range(1,10)]

if n in f:
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
N =int(input())

if N !=0 and N <10:
  print("Yes")
  exit()

for i in [1,9]:
  if N % i ==0 and N //i <=9 :
    print("Yes")
    exit()


    
print("No")

Submission status: Wrong Answer

Solution code:
N =int(input())

if N !=0 and N <10:
  print("Yes")
  exit()

for i in [2,9]:
  if N % i ==0 and N //i <=9 :
    print("Yes")
    exit()


    
print("No")

Submission status: Wrong Answer

Solution code:
N =int(input())

if N !=0 and N <10:
  print("Yes")
  exit()

for i in [2,10]:
  if N % i ==0:
    print("Yes")


    
print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
c = 0
x = 0
y = 0

for i in range(1,10):
    if n%i == 0:
        x = i
        y = n//i
        if y < 9:
            c += 1

if c > 0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

for i in range(1,10):
  if N % i == 0 and N//i <= 9:
    print("Yes")
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")
    elif i*j ==81:
      print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
n=int(input())
if n<=81:
  for i in range(1,10):
    if n%i!=0:
      print('No')
      sys.exit()
  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 N==i*j:
      print('Yes')
      exit()
else:
  print('No')