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())
count=0
for i in range(2,10):
  if n%i==0 and (n//i)<=9 and count==0:
    print("Yes")
    count+=1
if count==0:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
for i in range(1,10):
    for j in range(1,10):
        if n==i*j:
            print("yes")
        else:
            print("no")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

print('No')

Submission status: Wrong Answer

Solution code:
N=int(input())

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

Submission status: Wrong Answer

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

print(c)

Submission status: Wrong Answer

Solution code:
n = int(input())


flug = False

for i in range(9):
  pe = n%(i+1)
  if pe == 0:
    res = n/(i+1)
    #print(res)
    if res<10:
      flug = True
      break
 

if flug == True:
  print("YES")
  
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
n = int(input())

iter = 1
flug = False
while iter == 10 or flug == False:
  pe = n%iter
  if pe == 0:
    res = n/iter
    if res<10:
      flug = True
  iter+=1

if flug == True:
  print("YES")
  
else:
  print("NO")

Submission status: Wrong Answer

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

if N > 81 or N == 50 or N == 70:
    print('No')
    sys.exit()
else:
    val = []
    i = 3
    while N != 1:
        if N % 2 == 0:
            val.append(2)
            N //= 2
        else:
            if i >= 10:
                print('No')
                sys.exit()
            elif N % i == 0:
                val.append(i)
                N //= i
            else:
                i += 2

print('Yes')

Submission status: Wrong Answer

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

if N > 81:
    print('No')
    sys.exit()
else:
    val = []
    i = 3
    while N != 1:
        if N % 2 == 0:
            val.append(2)
            N //= 2
        else:
            if i >= 10:
                print('No')
                sys.exit()
            elif N % i == 0:
                val.append(i)
                N //= i
            else:
                i += 2
if val.count(5) >= 2 and len(val) >= 3:
    print('No')
elif val.count(7) >= 2 and len(val) >= 3:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
if n>81:
    print('No')
else:
    mod=(2,3,4,5,6,7,8,9)
    for i in mod:
        if n%i==0 and n//i<=9:
            print('Yes')
            break
        else:
            if i==9:
                print('No')
                break
            else:
                continue

Submission status: Wrong Answer

Solution code:
n=int(input())
c=0
if n>81:
    print('No')
else:
    mod=(2,3,5,7)
    for i in mod:
        if n%i==0:
            print('Yes')
            break
        else:
            if i==7:
                print('No')
                break
            else:
                continue

Submission status: Wrong Answer

Solution code:
n = int(input())
a = [9,8,7,6,5,4,3,2,1]
if 0 < n and n <= 81:
    for i in range(9):
        if n % a[i] == 0:
            if n // a[i] > 9:
                print('No')
            else:
                print('Yes')
                break
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())
a = [9,8,7,6,5,4,3,2,1]
if 0 < n and n <= 81:
    for i in range(9):
        if n % a[i] == 0:
            if n / a[i] > 9:
                print('No')
            else:
                print('Yes')
                break
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n=int(input())
frag='No'
for i in range(9):
  if n/(i+1)%1==0:
    frag='Yes'
print(frag)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in range(1,9):
    if N % i == 0:
        if N / i <= 9:
            ans='Yes'

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
for i in range(1,10):
  for k in range(1,10):
    list=[]
    if i*k not in list:
      list.append(i*k)
      
if n in list:
  print('Yes')
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<=9:
            print("Yes")
            exit()
print(-1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
N=int(input())
if N==1:
    print('Yes')
    sys.exit()
A=[]
B=list(range(2,10))
B=B[::-1]
for i in B:
    while N%i==0:
        A.append(i)
        N//=i
if 1<=len(A) and len(A)<=2:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N=int(input())
A=[]
B=list(range(2,10))
B=B[::-1]
for i in B:
    while N%i==0:
        A.append(i)
        N//=i
if 1<=len(A) and len(A)<=2:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N=int(input())
A=[]
B=list(range(2,10))
B=B[::-1]
for i in B:
    while N%i==0:
        A.append(i)
        N//=i
if 1<=len(A)<=2:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N=int(input())
A=[]
B=list(range(2,10))
B=B[::-1]
for i in B:
    while N%i==0:
        A.append(i)
        N//=i
if len(A)<=2:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())

for i in range(1,10):
  r = n%i
  ans = n//i
  if r == 0:
    if ans >= 10:
      print("No")
    else:
      print("Yes")
  else:
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())

for i in range(1,101):
  r = n%i
  ans = n//i
  if r == 0:
    if ans >= 10:
      print("No")
    else:
      print("Yes")
  else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

def calc():
    for i in range(2,10):
        if N % i == 0:
            if N // i <= 9:
                return 'Yes'
    return 'No'
    
print(calc())

Submission status: Wrong Answer

Solution code:
N = int(input())

def calc():
    for i in range(2,11):
        if N % i == 0:
            return 'Yes'
    return 'No'
    
print(calc())

Submission status: Wrong Answer

Solution code:
N = int(input())

Ans = "No"

for i in range(1, 10):
    for j in range(1, 10):
        ans = i * j
        if ans == N:
            Ans = "Yes"
        else:
             pass

Submission status: Wrong Answer

Solution code:
x = int(input())

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

print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())

flag = 'No'
for i in range(10):
  for j in range(10):
    if i*j == 0:
      flag = 'Yes'
      break
    else:
      continue
print(flag)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

for i in range(1,9):
    if N // (10-i) < 10:
        print("Yes")
        break
    else:
        print("No")
        break

Submission status: Wrong Answer

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

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")
            exit()
            a +=1
        else:
            continue

print("No")

if a == 0:
    print("No")
else:
    exit()

Submission status: Wrong Answer

Solution code:


def search(N):
    ans = False
    if not N >= 90:
        for i in range(1,10):
            if 1 <= N // i <= 9:
                ans = True
                break
            else:
                pass        
    return ans

    
N = int(input())
if search(N):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:


def search(N):
    ans = False
    for i in range(1,10):
        if 1 <= N // i <= 9:
            ans = True
            break
        else:
            pass
    return ans
    
    
N = int(input())
if search(N):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())
for i in range(9):
    for r in range(9):
        if (i+1)*(r+1)==N:
            print("Yes")
            break
        elif (i+1)*(r+1)==81 :
            print("No")
        else:
            continue

Submission status: Wrong Answer

Solution code:
N = int(input())
out = "No"
for i in range(1,9):
    for x in range(0,10):
        if i*x==N:
            out = "Yes"
print(out)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

def judge(n):
  if n == 100:
    return "No"
  elif float.is_integer(math.sqrt(n)):
    return "Yes"
  else:
    return "No"
  
print(judge(int(input())))

Submission status: Wrong Answer

Solution code:
def judge(n):
  if float.is_integer(n**(1/2)):
    return "Yes"
  else:
    return "No"
  
print(judge(int(input())))

Submission status: Wrong Answer

Solution code:
N = int(input())

f = 0
for i in range(1,10):
  for j in range(1,10):
    if i*j == N:
      f = 1
      break
  if f == 1:
    break
if f == 0:
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input());

for i in range(1,10):
  if n % i == 0:
    print("Yes");
    break;
  else:
    continue;
else:
  print("No")

Submission status: Wrong Answer

Solution code:
n=int(input())
for i in range(10):
    for s in range (10):
        result=i*s
        if n==result:
            print('Yes')
            break
        elif result<81:
            continue
        else:
            print('No')

Submission status: Wrong Answer

Solution code:
n=int(input())
def c():
    for i in range(1,10):
        for s in range(1,11-i):
            if i*s==n:
                print("Yes")
                return
    print("No")
c()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import fileinput

n = int(input())

a = False

for i in range(9):
    for j in range (9):
        if i * j == n:
            a = True

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())

ans='NO'
for i in range(1,10,1):
    for j in range(1,10,1):
        if int(i*j)==N:
            ans='YES'
            break

print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())

q = 0

for i in range(10):
    for s in range(10):
        if i*s == n:
            q = 1
            print("Yes")
            break
        break
if q == 0:
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())

q = 0

for i in range(10):
    for s in range(10):
        if i*s == n:
            q = 1
            print("Yes")
            break
if q == 0:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
for i in range(1,10):
    m=n/i
    if m.is_integer() and 1<=m<=10:
        ans="Yes"
        break
else:
    ans="No"
    print(ans)

Submission status: Wrong Answer

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

    for i in range(1,10):
        tmp, mod = divmod(n, i)
        if mod != 0 and tmp < 10:
            print('Yes')
            exit()
    print('No')

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
n=int(input())
l=[]
for i in range(1,9):
    for j in range(1,i+1):
        l.append((i+1)*(j+1))
if n in l:
    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) == 0:
            flag = 1
            break

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

Submission status: Wrong Answer

Solution code:
n = int(input())
for i in range(1, 10):
  m = n / i
  if m.is_integer() and 1 <= m <= 9:
    print('Yes')
    break
  else:
    print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())
for i in range(1, 10):
  m = n / i
  if m.is_integer() and 1 <= 9:
    print('Yes')
    break
  else:
    print('No')

Submission status: Wrong Answer

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

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

if i in list:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

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

if i in list:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x=int(input())
flg=0
for i in range(2,10):
	if x%i==0:
		x//=i
		flg=1
if flg:
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for n in range(1, 10):
    for k in range(1, 10):
        a = n * k
        if a == x:
            count += 1
            exit()
        else:
            pass
if count > 0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

for n in range(1, 9):
    for k in range(1, 9):
        a = n * k
        if a == x:
            count += 1
            break
        else:
            pass
if count > 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 i*j==n:
			print('Yes')
			exit()
		elif i*j!=n and i==9:
			print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
def ans():
  if math.sqrt(n)==(1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9):
    print('Yes')
  else:
    print('No')
ans()

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
def ans():
  if  1 <= math.sqrt(n) <= 9:
    print('Yes')
  else:
    print('No')
ans()

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:
            continue
        else:
            flag = True

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

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:
            print("Yes")
        else:
            flag = True

if flag:
    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())
ans=""
mod = [1,2,3,4,5,6,7,8,9]
 
for m in mod:
  if(ans == "Yes"):
    break
  for l in mod:
    if (N == int(m*l)):
      ans = 'Yes'
      break
    else:
      ans = 'No' 
      print(m*l)
 
print(ans)

Submission status: Wrong Answer

Solution code:
N = int(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'
      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 and 1 <= n % i <= 9:
        print("Yes")
        exit()
print("No")

Submission status: Wrong Answer

Solution code:

n = int(input())

for i in range(1,9):
    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(1,9):
    if n % i == 0:
        print("Yes")
        exit()
print("No")

Submission status: Wrong Answer

Solution code:
import math
from functools import reduce
import itertools
import numpy as np

def solve():
    n = int(input())
    num = list(range(1,10))
    bit = 0
    for i in num:
        for j in num:
            if i * j == n:
                print("Yes")
                bit = 1
                break
    if bit == 0:
        print("No")
    return 0

if __name__ == "__main__":
    solve()

Submission status: Wrong Answer

Solution code:
import math
from functools import reduce
import itertools
import numpy as np

def solve():
    n = int(input())
    num = list(range(1,10))
    bit = 0
    for i in num:
        if n % i in num:
            bit = 1
            print("Yes")
            break
    if bit == 0:
        print("No")
    return 0

if __name__ == "__main__":
    solve()

Submission status: Wrong Answer

Solution code:
import math
from functools import reduce
import itertools
import numpy as np

def solve():
    n = int(input())
    num = list(range(1,10))
    bit = 0
    for i in num:
        if n % i == 0:
            bit = 1
            print("Yes")
            break
    if bit == 0:
        print("No")
    return 0

if __name__ == "__main__":
    solve()

Submission status: Wrong Answer

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

print(ans)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a=input()
c=int(a)
b=0
if c%2!=0:
	b=b+1
if c%3!=0:
	b=b+1
if c%4!=0:
	b=b+1
if c%5!=0:
	b=b+1
if c%6!=0:
	b=b+1
if c%7!=0:
	b=b+1
if c%8!=0:
	b=b+1
if c%9!=0:
	b=b+1
if c<=81:
    if b<8:
        print("Yes")
    elif c==1:
        print("Yes")
    elif c>=50:
        if c%10==0:
            print("No")
        
    else:
      	print("No")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a=input()
c=int(a)
b=0
if c%2!=0:
	b=b+1
if c%3!=0:
	b=b+1
if c%4!=0:
	b=b+1
if c%5!=0:
	b=b+1
if c%6!=0:
	b=b+1
if c%7!=0:
	b=b+1
if c%8!=0:
	b=b+1
if c%9!=0:
	b=b+1
if c<=81:
    if b<8:
        print("Yes")
    elif c==1:
        print("Yes")
        
    else:
      	print("No")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a=input()
c=int(a)
b=0
if c%2!=0:
	b=b+1
if c%3!=0:
	b=b+1
if c%4!=0:
	b=b+1
if c%5!=0:
	b=b+1
if c%6!=0:
	b=b+1
if c%7!=0:
	b=b+1
if c%8!=0:
	b=b+1
if c%9!=0:
	b=b+1
if c<=81:
    if b<8:
        print("Yes")
    else:
      	print("No")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a=input()
c=int(a)
b=0
if c%2!=0:
	b=b+1
if c%3!=0:
	b=b+1
if c%4!=0:
	b=b+1
if c%5!=0:
	b=b+1
if c%6!=0:
	b=b+1
if c%7!=0:
	b=b+1
if c%8!=0:
	b=b+1
if c%9!=0:
	b=b+1
if c<=81:
    if b<8:
	    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a=input()
c=int(a)
b=0
if c%2!=0:
	b=b+1
if c%3!=0:
	b=b+1
if c%5!=0:
	b=b+1
if c%7!=0:
	b=b+1
if b<4:
	print("Yes")
else:
	print("No")

Submission status: Wrong Answer

Solution code:
a=input()
c=int(a)
b=0
if c%2!=0:
	b=b+1
if c%3!=0:
	b=b+1
if c%5!=0:
	b=b+1
if c%7!=0:
	b=b+1
if b<4:
	print("No")
else:
	print("Yes")

Submission status: Wrong Answer

Solution code:
a=input()
c=int(a)
b=0
if c%2!=0:
	b=b+1
if c%3!=0:
	b=b+1
if c%5!=0:
	b=b+1
if c%7!=0:
	b=b+1
if b>=3:
	print("No")
else:
	print("Yes")

Submission status: Wrong Answer

Solution code:
a=input()
c=int(a)
b=0
if c%2!=0:
	b=b+1
if c%3!=0:
	b=b+1
if c%5!=0:
	b=b+1
if c%7!=0:
	b=b+1
if b>=1:
	print("No")
else:
	print("Yes")

Submission status: Wrong Answer

Solution code:
# ABC 144: B – 81
N = int(input())

canExpress = 'No'

for i in [2, 3, 4, 5, 6, 7, 8, 9]:
    if N % i == 0 and N // i < 10:
        canExpress = 'Yes'
        break

print(canExpress)

Submission status: Wrong Answer

Solution code:
N=int(input())
OK = False
for i in range(9):
  for k in range(9):
    if N==i*k:
      OK = True
      break
if OK:
  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 i<j:
      if i*j==N:
        print("Yes")
        sys.exit()
print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

for i in range(1,10):
  if N%i == 0 and 1<=N//i<= 9:
    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 <= 81:
        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())

flag = False
for _ in range(1,9):
  sho = n // _
  amari = n % _
  if sho <= 9 and amari == 0:
    flag = True
if flag:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())

flag = False
for _ in range(1,9):
  sho = n // _
  amari = n % _
  if sho <= 9 and amari == 0:
    flag = True
print(str(flag))

Submission status: Wrong Answer

Solution code:
possible = False
a = int(input())
for m in range(1, 9):
    if a % m == 0 and a / m < 10:
        print("Yes")
        possible = True
        break
if not possible:
    print("No")

Submission status: Wrong Answer

Solution code:
possible = False
a = int(input())
for m in range(1, 9):
    if a % m == 0 and a / m <= 10:
        print("Yes")
        possible = True
        break
if not possible:
    print("No")

Submission status: Wrong Answer

Solution code:
possible = False
a = int(input())
for m in range(1, 9):
    if a % m == 0 and a / m <= 10:
        print("Yes")
        possible = True
if not possible:
    print("No")

Submission status: Wrong Answer

Solution code:
def b81(N):
    for i in range(1,10):
        for j in range(1,10):
            if i*j == N:
                return True
    return False


if __name__ == "__main__":
    N = int(input())
    print(b81(N))

Submission status: Wrong Answer

Solution code:


n = int(input())

if any([n % i == 0 and n / i < 10 for i in range(1, 10)]):
    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:
import sys

n = int(input())

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

Submission status: Wrong Answer

Solution code:
c = int(input())

x = 0
for i  in range(9):
    data = c / (i+1)
    if 1 <= data <=9:
        if int(data) * (i +1) == c: 
            print("YES")
            x = 1
            break

if x == 0 :
    print("NO")