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

# A*B=Nとなるような1以上9以下の整数(A, B)が存在するかどうか全探索を行う
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 = '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())
num = []
for i in range(1, 9+1):
     for j in range(1, 9+1):
         num.append(i * j)

if N in num:
    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())
ans="No"
for i in range(10):
    for j in range(10):
        if n==i*j:
            ans="Yes"

print(ans)

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"

print(ans)

Submission status: Accepted

Solution code:
n = int(input())
#lis = list(map(int,input().split()))

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

print("No")

Submission status: Accepted

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

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

print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def atc_144b(input_value: int) -> str:
    for i in range(1, 9 + 1):
        if input_value % i == 0 and input_value / i <= 9:
            return "Yes"
    return "No"


input_value = int(input())
print(atc_144b(input_value))

Submission status: Accepted

Solution code:
N = int(input())
def answer(N: int) -> str:
    x = 0
    for i in range(1, 10):
        for j in range(1, 10):
            if N == i * j:
                x = 1
                return 'Yes'
    if x == 0:
        return 'No'
print(answer(N))

Submission status: Accepted

Solution code:
def main():
    import sys
    readline = sys.stdin.buffer.readline

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

answer = 'No'

for i in range(1, 9 + 1):
    for j in range(1, 9 + 1):
        if N == i * j:
            answer = 'Yes'

print(answer)

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())
f=0
for i in range(1,10):
    for j in range(i,10):
        if i*j==n:
            f=1
print("Yes" if f else "No")

Submission status: Accepted

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

a = int(input())
c =0

for i in range(1,10):
    if a/i  == a//i and a//i<=9:
        c+=1
        break

if c>=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 i * j == n:
            print('Yes')
            exit(0)
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:
num = int(input())
i = 1

while i <= 9:
    j = 1
    while j <= 9:
        if (i * j) / num == 1:
            print("Yes")
            exit()
        else:
            j += 1
    i += 1


print("No")

Submission status: Accepted

Solution code:
num = int(input())

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

print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

kk_list = []

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

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

Submission status: Accepted

Solution code:
N = int(input())

product = []

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

if N in product:
    result = 'Yes'
else:
    result = 'No'

print(result)

Submission status: Accepted

Solution code:
n = int(input())
kk_list = []
# 九九の答えをリストに入れる
for i in range(1,10):
    for j in range(1,10):
        kk_list.append(i * j)
# 九九の答えリストにｎがあればYes
if n in kk_list:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# B-81

# 標準入力 N

N = int(input())
num_list = [1, 2, 3, 4, 5, 6, 7, 8, 9]
j = 0

for i in range(1, 9 + 1):
    if (N / i) in num_list:
        j += 1

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

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

jage = "No"
for l in range(1, 10):
    for r in range(1,10):
        if N == r * l:
            jage = "Yes"
print(jage)

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)
print("Yes" if N in kuku else "No")

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

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

print(ans)

Submission status: Accepted

Solution code:
N = int(input())

# Nを 1以上 9以下の 2つの整数の積として表すことができるなら Yes を、できないなら No を出力せよ。

for i in range(1, 9+1):
    for j in range(1, 9+1):
        if i * j == N:
            print("Yes")
            exit()
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 n == i * j :
            ans = 'Yes'
print(ans)

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

if N > 81 or N == 0:
    print("No")
    exit()

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

# 1~9の積で表現できるか検査
cnt = 1
judge = ("No")
for cnt in range(1,10,1):
    if N // cnt <10\
    and N % cnt == 0:
        judge = ("Yes")
        break

# 結果を出力
print(judge)

Submission status: Accepted

Solution code:
from math import atan, degrees

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# Generated by https://github.com/kyuridenamida/atcoder-tools
from typing import *
import collections
import functools
import itertools
import math
import sys

INF = float('inf')
YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(N: int):
    return [NO, YES][N in [i * j for i in range(1, 10) for j in range(i, 10)]]


def main():

    sys.setrecursionlimit(10 ** 6)

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    print(f'{solve(N)}')


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N = int(input())

if N > 81:
    print('No')

ans_list = []
if N <= 81:
    for i in range(1,10):
        for j in range(1,10):
            ans_list.append(i * j) 
    if N in ans_list:
        print('Yes')
    if N not in ans_list:
        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())
ans=0
for i in range(1,10):
  for j in range(1,10):
    if n==i*j:
      ans=1
print('Yes' if ans else 'No')

Submission status: Accepted

Solution code:
N = int(input())

product = []

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

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

Submission status: Accepted

Solution code:
N = int(input())

for i in range(1, 9 + 1, ):
    q, mod = divmod(N, i)
    if q <= 9 and mod == 0:
        print('Yes')
        exit()

print('No')

Submission status: Accepted

Solution code:
# 各桁の数値の総和を計算する.
def calc_digit_sum(num):
    sums = 0
    while num > 0:
        sums += num % 10
        num //= 10
    return sums


n = int(input())
for idx1 in range(1, 10):
    for idx2 in range(1, 10):
        if idx1 * idx2 == n:
            print("Yes")
            exit()

print("No")

Submission status: Accepted

Solution code:
user_input= int(input())
found= False
for counter in range(1, 10):
    for index in range(1, 10):
        if (counter * index)==user_input:
            found= True
            break
if found==True:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
N = int(input())

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

print(result)

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())
a = 'No'
for i in range(1, 9+1):
    for j in range(1, 9+1):
        ans = i * j
        if ans == N:
            a = 'Yes'
            break
print(a)

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

Submission status: Accepted

Solution code:
import sys
n = int(sys.stdin.readline().rstrip("\n"))
l = [False]*101
for a in range(1,10):
    for b in range(1,10):
            l[a*b] = True
if l[n]:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

for N_l in range(1,10):
    for N_r in range(1,10):
        if N_l * N_r == N:
            print('Yes')
            exit()
print('No')

Submission status: Accepted

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

for x in a:
    if N / x in a:
        print("Yes")
        exit()
print("No")

Submission status: Accepted

Solution code:
n = int(input())
a = 0
for i in range(1,10):
  for j in range(1,10):
    if(n==i*j):
      a+=1
if(a>=1):
  print("Yes")
else:
  print("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:
            count=count

if count==0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
N=int(input())
count=0
for i in range(1,10):
     if N/i==1:
         count=count+1
     elif N/i==2:
         count=count+1
     elif N/i==3:
         count=count+1
     elif N/i==4:
         count=count+1
     elif N/i==5:
         count=count+1
     elif N/i==6:
         count=count+1
     elif N/i==7:
         count=count+1
     elif N/i==8:
         count=count+1
     elif N/i==9:
         count=count+1
     else:
         count=count
if count==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:
a=int(input())
if a==11 or a==13 or a==17 or a==19 or a==22 or a==23 or a==26 or a==29 or a==31 or a==33 or a==34 or a==37 or a==38 or a==39 or a==41 or a==43 or a==44 or a==46 or a==47 or a==50 or a==51 or a==52 or a==53 or a==55 or a==57 or a==58 or a==59 or a==60 or a==61 or a==62 or a==65 or a==66 or a==67 or a==68 or a==69 or a==70 or a==71 or a==73 or a==74 or a==75 or a==76 or a==77 or a==78 or a==79 or a==80 or a>=82:
  print("No")
else:
  print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

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

if __name__ == "__main__":
    main()

Submission status: Accepted

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

def main():
    N = int(input())
    # N = 10
    ok = False
    for i in range(1, 10):
        for j in range(1, 10):
            if i*j == N:
                ok = True
                break
        if ok:
            break
    print("Yes" if ok else "No")


if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
S = int(input())

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

Submission status: Accepted

Solution code:
int_num = int(input())
takahashi_can_calculation = set()

for i_left in range(1, 10):
    for i_right in range(1, 10):
        result = i_left * i_right
        takahashi_can_calculation.add(result)

if int_num in takahashi_can_calculation:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=int(input())

A=[x*y for x in range(1,10) for y in range(1,10)]
A=set(A)

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

Submission status: Accepted

Solution code:
N = int(input())

for i in range(1,10):
    if N % i == 0 and 1<=N/i<=9:
        print('Yes')
        break
    elif i == 9:
        print('No')
        
# break:その後の処理を行わない。

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    N = int(readline())
    s = set()

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

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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:
# 問題: https://atcoder.jp/contests/abc144/tasks/abc144_b

n = int(input())
has_multiple = False
for a in range(1, 10):
    if n % a > 0:
        continue
    b = n / a
    if 0 < b < 10:
        has_multiple = True
        break

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
n = int(input())
r = False
for i in range(1,10):
  if n % i == 0:
    if n // i < 10:
      r = True
      break

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

Submission status: Accepted

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

N = int(input())

ans ='No'
for x in range(1, 10, 1):
    if (N % x) == 0:
        for y in range(x, 10, 1):
            if x * y == N:
                ans = 'Yes'
                break
    
    if ans == 'Yes':
        break

print(ans)

Submission status: Accepted

Solution code:
n = int(input())
can = False
for i in range(1, 10):
    for j in range(1, 10):
        if(i * j == n):
            can = True

if(can):
    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")
            exit()
print("No")

Submission status: Accepted

Solution code:
x = int(input())

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

print('No')

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

n=int(input())

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

Submission status: Accepted

Solution code:
import sys
def I(): return int(sys.stdin.readline().rstrip())


A = [i*j for i in range(1,10) for j in range(1,10)]
print('Yes' if I() in A else 'No')

Submission status: Accepted

Solution code:
n=int(input())
l=list()
flag=0
for i in range(1, 10):
    if n % i == 0: 
        if (n//i)<=9:
            flag+=1

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

Submission status: Accepted

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

Submission status: 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())
s = set()
for i in range(1, 10):
    for j in range(1, 10):
        s.add(i*j)
if N in s:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
import sys

N = int(sys.stdin.readline())
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())
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:
import sys

sys.setrecursionlimit(10**7)
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int,sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))  #空白あり
def LI2(): return list(map(int,sys.stdin.readline().rstrip()))  #空白なし
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())  #空白あり
def LS2(): return list(sys.stdin.readline().rstrip())  #空白なし


N = I()
A = [i*j for i in range(1,10) for j in range(1,10)]
print('Yes' if N in A else 'No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import bisect,collections,copy,heapq,itertools,math,numpy,string
import sys
sys.setrecursionlimit(10**7)

def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())

def main():
    N = I()
    kuku_list = []
    for i in range(1,10):
        for j in range(1,10):
            kuku_list.append(i*j)
    print("Yes" if N in kuku_list else "No")

main()

Submission status: Accepted

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

if __name__ == "__main__":
  main()

Submission status: Accepted

Solution code:
n = int(input())
for i in range(1,10):
  if 1<=n/i and n/i<=9 and n%i==0:
    print("Yes")
    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:
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())
lst = []
for i in range(1,10):
  for j in range(1,10):
    a = i*j
    lst.append(a)
if (n in lst):
  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 == int(i)*int(j):
      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 n == i * j:
      print("Yes")
      exit()
      
print("No")

Submission status: Accepted

Solution code:
g = int(input("")) # get
a = False
for i in range(1,10):
    if (g % i == 0 and (g // i >= 1) and (g // i <= 9)):
        a = True
print("Yes" if (a) else "No")

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

for i in range(1,10):
    syou=n/i
    if syou.is_integer():
        if 1<=syou and syou<=9:
            print("Yes")
            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)
ans = 'Yes' if N in A else 'No'
print(ans)

Submission status: Accepted

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

main()

Submission status: Accepted

Solution code:
N=int(input())
for i in range(10):
    for j in range(10):
        if N==i*j:
            print('Yes')
            exit()
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 N == a * b:
      print('Yes')
      sys.exit()

print('No')

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
n = int(input())
a=0
for i in range(1,10):
  for j in range(1,10):
    if n/i==j:
      a+=1
    else:
      continue
if a>0:
  print("Yes")
else:
  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:
def func():
    n = int(input())
    for i in range(1,10):
        for j in range(1, 10):
            if i * j == n:
                print('Yes')
                return
    print('No')

func()

Submission status: Accepted

Solution code:
import itertools, sys
input = lambda: sys.stdin.readline().rstrip() 
sys.setrecursionlimit(10**7)
INF = 10**20
def I(): return int(input())
def F(): return float(input())
def S(): return input()
def LI(): return [int(x) for x in input().split()]
def LI_(): return [int(x)-1 for x in input().split()]
def LF(): return [float(x) for x in input().split()]
def LS(): return input().split()

def resolve():
    N =I()

    kuku = {i * j for i, j in itertools.product(range(1, 10), repeat=2)}
    if N in kuku:
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    resolve()

Submission status: Accepted

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

Submission status: 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())
a = 0
for i in range(1,10):
    if N%i == 0 and N <= 9*i:
        print("Yes")
        a = 1
        break
if a == 0:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
result = 'No'
for i in range(1,10):
    if n / i in [1,2,3,4,5,6,7,8,9]:
        result = 'Yes'
print(result)

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())
t=0
flag=False
for i in range(1,10):
    for j in range(1,10):
        if n==i*j:
            print('Yes')
            t+=1
            flag=True
            break
    if flag:
        break

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

Submission status: Accepted

Solution code:
# coding: utf-8

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

Submission status: Accepted

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

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
n=int(input())
kuku=set()
for i in range(1,10):
    for j in range(1,10):
        kuku.add(i*j)
if n in kuku:
    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 n == i*j:
            print("Yes")
            sys.exit()
print("No")

Submission status: Accepted

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