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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
kuku = []
for x in range(1,10):
  for y in range(1,10):
    kuku.append(x*y)
    
if N in kuku:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

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 #innerloopがbreakしなかった時、outerloopを継続する
    break #innerloopがbreakすると、outerloopもbreakする 
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if '__main__' == __name__:
    resolve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
for i in range(1,10):
    if not N%i == 0:
        continue
    rest = N/i
    if rest<10:
        print('Yes')
        exit()

print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

N = int(input())

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

Submission status: Accepted

Solution code:
n = int(input())

for i in range(1, 10):
    tmp = (n / i)
    if tmp.is_integer() and 1<=tmp and tmp <=9:
        print("Yes")
        exit()
print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print("No")

Submission status: Accepted

Solution code:
num = int(input())

data = list()

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

if num in data:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

for J in range(1,10):
    for K in range(1,10):
        if N == J*K:
            print('Yes')
            sys.exit()
print('No')

Submission status: Accepted

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

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

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

for i in range(1,10):
    for j in range(1,10):
        if n == i*j:
            count += 1

        else:
            pass
print(['No','Yes'][count != 0])

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
N = int(input())
Suji_check = False
for s in range(1,10):
  for t in range(1,10):
    if s*t == N:
      Suji_check = True
      break
if Suji_check:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

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

if n in L:
    print('Yes')
if n not in L:
    print('No')

Submission status: Accepted

Solution code:
def i():
	return int(input())
def i2():
	return map(int,input().split())
def s():
	return str(input())
def l():
	return list(input())
def intl():
	return list(int(k) for k in input().split())

n = i()

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

Submission status: Accepted

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

N = int(input());

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

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

    start = 1
    end = 9
    ans = 'No'

    # シンプルな全探索
    for i in range(start, end + 1):
        for j in range(start, end + 1):
            if n == i * j:
                ans = 'Yes'
                break
    print(ans)


if __name__ == '__main__':
    abc144b()

Submission status: Accepted

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

    start = 1
    end = 9
    flag = False

    # シンプルな全探索
    for i in range(start, end + 1):
        for j in range(start, end + 1):
            if n == i * j:
                flag = True
                break

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

if __name__ == '__main__':
    abc144b()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())

ok=False

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

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(1, 10):
    if ans == 'Yes':
        break

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

for x in range(1,10):
    for y in range(1,10):
        if n == x * y:
            z += 1

if z == 0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
n = int(input())

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

print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8

N = int(input())

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

print("No")

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

for i in range(1,10):
    if n%i == 0:
        div = n/i
        if div>=1 and div<=9:
            flag = 1
            break

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
ans = 'No'
for a in range(10):
    for b in range(10):
        if a * b == n:
            ans = 'Yes'
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

for a in range(1,10):
  for b in range(1,10):
    if a*b == n:
      print('Yes')
      exit(0)

print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

    print("No")

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import time
import math
def inpl():
    return list(map(int, input().split()))
st = time.perf_counter()
# ------------------------------

N = int(input())
for i in range(1, 9+1):
	if N % i == 0:
		if N // i < 10:
			print('Yes')
			sys.exit()
print('No')

# ------------------------------
ed = time.perf_counter()
print('time:', ed-st, file=sys.stderr)

Submission status: Accepted

Solution code:
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7
count = 0
ans = 0
inf = float("inf")

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

Solution code:
from sys import exit

N = int(input())


for x in range(1, 10):
    for y in range(1, 10):
        if x * y == N:
            print('Yes')
            exit()

print('No')

Submission status: Accepted

Solution code:
N = int(input())

table = set()

for i in range(1,10):
    for j in range(1,10):
        table.add(i*j)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

n=int(input())

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

print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
l = list(range(1, 10))

for i in l:
    if n % i == 0 and (n / i in l):
        print("Yes")
        exit(0)
print("No")

Submission status: Accepted

Solution code:
n = int(input())
l = list(range(1, 10))

for i in l:
    if n % i == 0 and (n / i in l):
        print("Yes")
        break
else:
    print("No")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python

import sys
input = sys.stdin.buffer.readline
sys.setrecursionlimit(10**6)
INF = float("inf")

def main():
    N = int(input())
    for i in range(1,10):
        for j in range(1,10):
            if i*j == N:
                print("Yes")
                exit()
    print("No")

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
N = int(input())

xs = list(range(1,10))
xt = [(x*y) for x in xs for y in xs]

print('Yes') if N in xt else print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    N = int(input())
    vals = set([])
    for v1 in range(1, 10):
        for v2 in range(1, 10):
            vals.add(v1 * v2)
    if N in vals:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

for i in range(1, 11):
    if i == 10:
        print('No')
        break
    for j in range(1, 10):
        kuku = i * j

        if n == kuku:
            print('Yes')
            break
    else:
        continue
    break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

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

Submission status: Accepted

Solution code:
N = int(input())

for i in range(1, 10):
    for j in range(1, 10):
        if i * j == N:
            print("Yes")
            break   # 一致すれば jのループを抜けて
    else:
        continue
    break   # i ループを抜ける
else:   # i ループで break しなければ
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())


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

Submission status: Accepted

Solution code:
n = int(input())
ansSet = set(x * y for x in range(1, 10) for y in range(1, 10))
res = 'Yes' if n in ansSet else 'No'
print(res)

Submission status: Accepted

Solution code:
from collections import defaultdict
d = defaultdict(int)

for a in range(1, 10):
    for b in range(1, 10):
        d[a*b] = 1

if d[int(input())]:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)

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

Submission status: Accepted

Solution code:
qqtable =[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,49,54,56,63,64,72,81]

n = int(input())
if n in qqtable:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
nn_list = []
for i1 in range(1,10):
  for i2 in range(1,10):
    nn_list.append(i1 * i2)
if n in nn_list:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
import sys
n = int(input())
for a in range(1,10):
    for b in range(1,10):
        if a*b == n:
            print('Yes')
            sys.exit()
print('No')

Submission status: Accepted

Solution code:
N=int(input())

list=[]

for i in range(1,10):
    if N%i==0 and N//i<=9:
        list.append(i)

if list==[]:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
product = {}
for i in range(1, 10):
    for j in range(1, 10):
        product[i * j] = True

N = int(input())

if N in product:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
kuku = []

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

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

Submission status: Accepted

Solution code:
ans = [a*b for a in range(1, 10) for b in range(1, 10)]
N = int(input())

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

Submission status: Accepted

Solution code:
import sys


# input = sys.stdin.readline

def main():
    N = int(input())
    for i in range(1,10):
        for j in range(1,10):
            if i*j ==N:
                print("Yes")
                exit()
    print("No")


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
n = int(input())

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

print("No")

Submission status: Accepted

Solution code:
N = int(input())

n = []
for i in range(10):
    if i > 0:
        for t in range(10):
            if t > 0:
                p = i * t
                n.append(p)
if N in n:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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: Accepted

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: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
n=int(input())
i=9
while i>0:
    if n%i==0:
        print("YNeos"[n//i>9::2])
        exit()
    i-=1
print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

for i in range(1,10):
  if N % i == 0:
    if int(N / i) in [1,2,3,4,5,6,7,8,9]:
      print("Yes")
      exit()
print("No")

Submission status: Accepted

Solution code:
N = int(input())

flag =0

for i in range(1,10):
    for j in range(1,10):
        if j*i == N:
            flag +=1

print('Yes' if flag >0 else 'No')

Submission status: Accepted

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

l1 = [x for x in range(10)]
l2 = [x for x in range(10)]

for v1, v2 in itertools.product(l1, l2):
    if v1*v2 == n:
        print("Yes")
        exit(0)

print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
f = 0
for x in range(1,10):
    for y in range(1,10):
        if x*y == n:
            f = 1
            break
    if f == 1:
        break
if f ==0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# モジュールのインポート
import itertools


def get_input() -> int:
    """
    標準入力を取得.

    Returns:\n
        int: 標準入力
    """
    N = int(input())
    return N


def main(N: int) -> None:
    """
    メイン処理.

    Args:\n
        N (int): 整数（1<=N<=100）
    """
    # 求解処理
    ans = "No"
    for i, j in itertools.product(range(1, 10), range(1, 10)):
        n = i * j
        if n == N:
            ans = "Yes"
            break

    # 結果出力
    print(ans)


if __name__ == "__main__":
    # 標準入力を取得
    N = get_input()

    # メイン処理
    main(N)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# モジュールのインポート
import itertools

# 標準入力を取得
N = int(input())

# 結果出力
ans = "No"
for i, j in itertools.product(range(1, 10), range(1, 10)):
    n = i * j
    if n == N:
        ans = "Yes"
        break

# 結果出力
print(ans)

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

for i in range(1, 10):
    for j in range(1,10):
        if N == i * j:
            flag = True
        else:
            pass

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
print("Yes" if sum([n == x * y for x in range(1, 10) for y in range(1, 10)]) else "No")