TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: 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`.

Submission attempts (in order):
n=int(input())
for a in range(1,10):
  for b in range(1,10):
  if n==a*b:
    break
    print("Yes")
  else:
    print("No")

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


n=int(input())
for a in range(1,10):
  for b in range(1,10):
    if n==a*b:
      break
    print("Yes")
      
    
print("No")


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


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

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

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

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

input() = N
for i in range(10):
  if N==i**2:
    print("Yes")
  else:
    print("No")

int(input()) = N
for a in range(1,10):
  for b in range(1,10):
  if N==a*b:
    break
    print("Yes")
  else:
    print("No")

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

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

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
n = int(input())

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

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


Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
n = int(input())

for i in range(9):
  for j in range(9):
    if (i+1)*(j+1) == n:
      print("Yes")

print("No")

n = int(input())

for i in range(9):
  for j in range(9):
    if (i+1)*(j+1) == n:
      print("Yes")
      exit()

print("No")


Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
a=int(input())
for i range(1,10):
  if a//i<10:
    if a%i=0:
      print(Yes)
else:
  print(No)

a=int(input())
while x<10:
if a%x=0 and a//x<10:
	print('Yes')
    x += 1
else:
  print('No')

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
n = int(input())
a, 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')
        break
    else :
        print('No')
        break

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
import sys

judge = [9, 8, 7, 6, 5, 4, 3, 2]
in_n = int(input())
for target_list in judge:
    if in_n % target_list == 0:
        first_n = in_n / target_list
        if first_n < 10:
            print('yes')
            sys.exit()
print('no')


import sys

judge = [9, 8, 7, 6, 5, 4, 3, 2, 1]
in_n = int(input())
for target_list in judge:
    if in_n % target_list == 0:
        first_n = in_n / target_list
        if first_n < 10:
            print('yes')
            sys.exit()
print('no')


import sys

judge = [9, 8, 7, 6, 5, 4, 3, 2]
in_n = int(input())
for target_list in judge:
    if in_n % target_list == 0:
        first_n = in_n / target_list
        if first_n < 10 and first_n != 1:
            print('yes')
            sys.exit()
print('no')


n = int(input())

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


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
N = int(input())
ans = "No"
if N <=81:
	for i in range(1,9):
       if N%i == 0:
           ans = "Yes"
print(ans)

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

#abc144_b.py
N = int(input())
ans = "No"
for i in range(1,10):
    for j in range(1,10):
        if N==j*i:
            ans ="Yes"
            print(ans)
            exit()
print(ans)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
N=int(input())

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

N=int(input())

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

N=int(input())

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
n = int(input())

for i in range(1,10):
	a = n / i
	if not isinstance(a, int):
		print('No')
		exit()
print('Yes')

n = int(input())

for i in range(1,10):
	a = n / i
	if not isinstance(a, int):
		print('No')
print('Yes')

n = int(input())

for i in range(1,10):
	a = n % i
    if !isinstance(a, int):
		print('No')
print('Yes')

n = int(input())

for i in range(1,10):
	a = n / i
	if a - int(a) == 0 and a < 10:
		print('Yes')
		exit()
print('No')

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
a=int(input())
i=1
end=0
while(i<=9):
    j=1
    while(j<=9 and end==0):
        if i*j==a:
            print('yes')
            end=1
        j+=1
    i+=1
    if end ==1:
        break
if end ==0:
    print('No')

a=int(input())
i=1
end=0
while(i<=9 and end ==0):
    j=1
    while(j<=9 and end==0):
        if i*j==a:
            print('yes')
            end=1
        j+=1
    i+=1
    if end ==1:
        break
if end ==0:
    print('No')

a=int(input())
i=1
end=0
while(i<=9 and end ==0):
    j=1
    while(j<=9 and end==0):
        if i*j==a:
            print('Yes')
            end=1
        j+=1
    i+=1
    if end ==1:
        break
if end ==0:
    print('No')

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
N = int(input())

for i in range(1,10):
  q = N // i
  mod = N % i
  if mod == 0:
    if q <= 9:
      print(q,i)


N = int(input())

pp = 'No'
for i in range(1,10):
  q = N // i
  mod = N % i
  if mod==0 and q <= 9:
    pp = 'Yes'
    break
  
print(pp)


Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
N = int(input())
for i in range(1, 10):
  if N / i == N // i:
    if N / i < 10:
      print("Yes")
      return
print("No")
      

N = int(input())
for i in range(1, 10):
  if N / i == int(N / i):
    if N / i < 10:
      print("Yes")
      return
print("No")

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
inp = int(input())
flag = "NO"
for i in range(1,10):
  if (str(inp/i)).split(".")[1]=="0":
    a = str((inp/i)).split(".")[0]
    
    if(len(a)==1):
      for j in range(1,10): 
        if (str(int(a)/j)).split(".")[1]=="0":
          b = str((int(a)/j)).split(".")[0]
          if (b=="1"):
            flag="YES"
            break  
print(flag)

inp = int(input())
flag = "No"
for i in range(1,10):
  if (str(inp/i)).split(".")[1]=="0":
    a = str((inp/i)).split(".")[0]
    
    if(len(a)==1):
      for j in range(1,10): 
        if (str(int(a)/j)).split(".")[1]=="0":
          b = str((int(a)/j)).split(".")[0]
          if (b=="1"):
            flag="Yes"
            break  
print(flag)

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
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

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

print(Ans)

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
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)

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
num = int(input())
nine = [1,2,3,4,5,6,7,8,9]
flag = 0
for i in nine:
    amari = num % i 
    if amari == 0:
        if num / i in nine:
            print("yes")
            flag = 1
            break
if flag == 0:
    print('No')


num = int(input())
nine = [1,2,3,4,5,6,7,8,9]
flag = 0
for i in nine:
    amari = num % i 
    if amari == 0:
        if num // i in nine:
            print("Yes")
            flag = 1
            break
if flag == 0:
    print('No')


Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
N = int(input())
flag = 0
for i in range(1,10,1):
  if N % i == 0 and N/i < 10:
    print("YES")
    flag = 1
if flag == 0:
  print("NO")

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

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
A=[i*j for i in range(1,10) for j in range(1,10)]
B=int(input())
if B in A:
    print("yes")
elif B not in A:
    print("no")

A=[i*j for i in range(1,10) for j in range(1,10)]
B=int(input())
if B in A:
    print("Yes")
elif B not in A:
    print("No")

Verdicts: Wrong Answer

Accepted
Problem: 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`.

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

func()


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



#     print("{0}:".format(i), end="")
i = int(input())
func(i)


Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
N=int(input())
for i in range(2,10):
    if N%i == 0:
        for j in range(2,10):
            print(i,j)
            if N/i/j == 1:
                print("Yes")
                exit(0)
print("No")

N=int(input())
for i in range(2,10):
    if N%i == 0:
        for j in range(2,10):
            print(i,j)
            if N/i/j == 150:
                print("Yes")
                exit(0)
print("No")

N=int(input())
for i in range(2,10):
    if N%i == 0:
        for j in range(2,10):
            if N/i/j == 150:
                print("Yes")
                exit(0)
print("No")

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
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")
        

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


Verdicts: Wrong Answer

Accepted
Problem: 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`.

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

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
N = int(input())
lst = []
for i in range(1,10):
	for k in range(1, 10):
		m = i * k
    	lst.append(m)
if N in lst:
	print('Yes')
else:
	print('No')

N = int(input())
lst = []
for m in range(1, 10):
	for n in range(1, 10):
		q = m * n
		lst.append(q)
if N in lst:
	print('Yes')
else:
	print('No')


Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
n = int(input())
for i in range(1, 10):
    for j in range(1, 10):
        print(i,j)
        if i * j == n:
            print('Yes')
            exit()
else:print('No')

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
N = int(input())

for i in range(9):
  if N % (i+1) == 0:
    if 1<=(N%(i+1))<=9:
      print('Yes')
      exit()
else:
  print('No')

N = int(input())

for i in range(9):
  if N % (i+1) == 0:
    if 1<=(N/(i+1))<=9:
      print('Yes')
      exit()
else:
  print('No')


Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
n = int(input())
c = 0
for i in range(9):
  q, mod = divmod(n, i + 1)
  if q < 10 and mod == 0:
    print("YES")
    c += 1
    break
if c == 0:
  print("NO")

n = int(input())
c = 0
for i in range(9):
  q, mod = divmod(n, i + 1)
  if q < 10 and mod == 0:
    print("yes")
    c += 1
    break
if c == 0:
  print("No")

n = int(input())

l1 = []
for i in range(9):
  for j in range(9):
    l1.append((i +1) * (j + 1))

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
N = int(input())
for i in range(1, 10):
    for j in range(1, 10):
        if i * j == N:
            print('YES')
            exit()
print('NO')

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
N=int(input())
if N>81:
  print("No")
for i in range(1,9):
  if N%i==0 and N<=i*9:
    print("yes")
    exit(0)
print("No")

N=int(input())
if N>81:
  print("No")
for i in range(1,10):
  if N%i==0:
    print("yes")
    exit(0)
print("No")

N=int(input())
if N>81:
  print("No")
for i in range(2,9):
  if N%i==0 and N<=i*9:
    print("yes")
    exit(0)
print("No")

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

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

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
N = int(input())

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

N = int(input())

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
dp=[i*j for i in range(1,10) for j in range(1,10)]
n=map(int,input().split())
if n in dp:
  print("Yes")
else:
  print("No")


dp=[int(i*j) for i in range(1,10) for j in range(1,10)]
# print(dp)
# dp=set(dp)
# dp=list(dp)
n=int(input())
# print(n)
if n in dp:
  print("Yes")
else:
  print("No")


Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
a = float(input())

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

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

print("NO")

a = float(input())

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

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

print("No")

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
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())))


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

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
n = int(input())
for i in range(1,10):
  for j in range(1,10):
    if i * j == n:
      print('Yes')
      break
  print('No') 

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

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

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

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

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

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

n = int(input())
for i in range(1,10):
    for j in range(1,10):
        if i * j == n:
            print('Yes')
            break
        else:
            continue
    if i * j == n:
        break
    elif i == 9 and i * j != n:
        print('No')

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
S = int(input())

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

import sympy
S = int(input("入力："))

divisors = sympy.divisors(S)

n = len(divisors)

for i in range(int(n / 2+n % 2)):
    
    if S // divisors[i] <= 9:
        result ="Yes"
    else:
        result ="No"
print(result)

S = int(input())

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

S = int(input())

def divisor(n): 
    i = 1
    table = []
    while i * i <= n:
        if n%i == 0:
            table.append(i)
            table.append(n//i)
        i += 1
    table = list(set(table))
    return table

divisors = sorted(divisor(S))
n = len(divisors)
for i in range(int(n / 2+n % 2)):
    print(divisors[i])
    if S // divisors[i] <= 9:
        result ="Yes"
    else:
        result ="No"
print(result)

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)


Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
N = int(input())

a = max(N/1,N/2,N/3,N/4,N/5,N/6,N/7,N/8,N/9)
if a // 1 == a and a < 10:
    print("Yes")
else:
    print("No")

N = int(input())
b = [N/1,N/2,N/3,N/4,N/5,N/6,N/7,N/8,N/9]
check = 0
for a in b:
    if float(a) == int(a) and a < 10 :
        check += 1
if check > 0:
    print("Yes")
else:
    print("No")

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):

    N = int(input())
    flag = 0
    
    for i  in range(9):
        atai = N / (i + 1) 
        for j in range(9):
            if atai == j + 1:
                flag = 1
                break
        if flag == 1:
            break
    if flag == 1:
        print("Yes")
    else:
        print("No")


N = int(input())
flag = 0

for i  in range(9):
    atai = N / (i + 1) 
    for j in range(9):
        if atai == j + 1:
            flag = 1
            break
    if flag == 1:
        break
if flag == 1:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
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)     

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)   

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)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
a,b=map(int,input().split())


if a//10!=0:
    print(-1)

elif b//10!=0:
    print(-1)

else:
    print(a*b)


n=int(input())
flag=False

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

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




Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
num = int(input())


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



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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

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


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




N = int(input())
flag = False
for a in range(1, 10):
    for b in range(1, 10):
        if N == a * b:
            print("Yes")
            flag = True
            break
    else:
        continue
    break
if flag == False:
    print("No")




Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
N = int(input())
count =0
for i in range(1, 10):
    if  N % i == 0:
        A = N/i
        if 1 <= A <= 9: 
            for a in range(1, 10):
                if a != i :
                    if A % a == 0:
                        print('Yes')
                        count += 1
if  count != 1:
    print('No')

N = int(input())
count =0
t = True
for i in range(1, 10):
    if  N % i == 0:
        A = N/i
        if 1 <= A <= 9:
            while(t): 
                for a in range(1, 10):
                    if a != i :
                        if A % a == 0:
                            print('Yes')
                            count += 1
                            t = False
                            break
    else:
        print('No')
        break

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


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

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

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
N = 11
def func(n):
  for i in range(1,10):
    for j in range(1,10):
      if n ==i*j:
        print("Yes")
        return i,j
  if n != i*j:
    print("No")

func(N)

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
n=int(input())
i=1
while i < 10:
  if n%i==0:
    if n/i < 10:
      print(Yes)
      i=10
  i=i+1
if i=10:
  print(No)

n=int(input())
i=1
while i < 10:
  if n%i==0:
    if n/i < 10:
      print("Yes")
      i=10
  i=i+1
if i == 10:
  print("No")

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
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==0:
    print("NO")
else:
    print("YES")

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

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

n=int(input())
a=0
for i in range(1,10):
    for j in range(1,19):
        if n==i*j:
            a+=1
if a==0:
    print("NO")
else:
    print("YES")

n=int(input())
a=0
for i in range(1,10):
    for j in range(1,10):
        print(i*j)
        if n==i*j:
            a+=1
if a==0:
    print("NO")
else:
    print("YES")

n=int(input())
a=0
for i in range(1,9):
    for j in range(1,9):
        if n==i*j:
            a+=1
if a==0:
    print("NO")
else:
    print("YES")

a=int(input())

ans=0
for i in range(1,10):
    for j in range(1,10):
        if i*j==a:
            ans+=1

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
n = int(input())
for i in range(10):
    for j in range(i, 10):
        if n == i*j:
            print("YES")
            break
        elif i == 9 and j == 9:
            print("NO")
            break

n = int(input())
for i in range(10):
    for j in range(i, 10):
        if n == i*j:
            print("Yes")
            break
        elif i == 9 and j == 9:
            print("No")
            break

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
n = int(input())

for x in range(1, 9 + 1):
    if n % x == 0:
            a  = n / x
            if a < 10:
                print('Yes')
    else:
        print('No')

n = int(input())

for x in range(1, 9 + 1):
    a  = n / x
    if a < 10:
        print('Yes')
    else:
        print('No')

n = int(input())
a = 0
for x in range(1, 9 + 1):
    for y in range(1, 9 + 1):
        if x * y == n:
            a = True

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
if __name__ == "__main__":
    a = int(input())
    a = int(a)
    flag=False
    for i in range(1, 10):
        for j in range(1, 10):
            if a == i*j:
                print('Yes')
                flag=True
    if flag==False :
        print('No')

def prime_factorize(n):
    a = []
    while n % 2 == 0:
        a.append(2)
        n //= 2
    f = 3
    while f * f <= n:
        if n % f == 0:
            a.append(f)
            n //= f
        else:
            f += 2
    if n != 1:
        a.append(n)
    return a

if __name__ == "__main__":
    a = int(input())
    a = int(a)
    b = prime_factorize(a)
    print(b)
    c = len(b)
    if c==1:
        if b[0]<=9 and b[0]>=1:
            print('yes')
        else :
            print('no')
    elif c==2:
        if b[0]<=9 and b[0]>=1 and b[1]<=9 and b[1]>=1:
            print('yes')
        else :
            print('no')
    else :
        while len(b) > 2:
            b1 = b.pop(0)
            b2 = b.pop(0)
            b.append(b1*b2)
        print(b)
        if b[0]<=9 and b[0]>=1 and b[1]<=9 and b[1]>=1:
            print('yes')
        else :
            print('no')

def prime_factorize(n):
    a = []
    while n % 2 == 0:
        a.append(2)
        n //= 2
    f = 3
    while f * f <= n:
        if n % f == 0:
            a.append(f)
            n //= f
        else:
            f += 2
    if n != 1:
        a.append(n)
    return a

if __name__ == "__main__":
    a = int(input())
    a = int(a)
    b = prime_factorize(a)
    c = len(b)
    if c==1:
        if b[0]<=9 and b[0]>=1:
            print('yes')
        else :
            print('no')
    elif c==2:
        if b[0]<=9 and b[0]>=1 and b[1]<=9 and b[1]>=1:
            print('yes')
        else :
            print('no')
    else :
        while len(b) > 2:
            b1 = b.pop(0)
            b2 = b.pop(0)
            b.append(b1*b2)
        if b[0]<=9 and b[0]>=1 and b[1]<=9 and b[1]>=1:
            print('yes')
        else :
            print('no')

if __name__ == "__main__":
    a = int(input())
    a = int(a)
    flag=False
    for i in range(1, 10):
        for j in range(1, 10):
            if a == i*j:
                print('yes')
                flag=True
    if flag==False :
        print('no')

if __name__ == "__main__":
    a = int(input())
    a = int(a)
    flag=False
    for i in range(1, 10):
        for j in range(1, 10):
            if a == i*j:
                flag=True
                break
        if flag:
            break
            
    if flag==False :
        print('No')
    else :
        print('Yes')

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
n = int(input())
a = [1,2,3,4,5,6,7,8,9]

for i in a:
  if n%i==0:
    if (n/i)<=9:
      print("Yes")
      break
    else:
      print("No")
      break
  else:
    print("No")
    
  

n = int(input())
a = [1,2,3,4,5,6,7,8,9]

b = 0
for i in a:
  if n%i==0:
    if (n/i)<=9:
      print("Yes")
      break
    else:
      print("No")
      break
  else:
    b =1
if b==1:
  print("No")
    

    
  

n = int(input())
a = [1,2,3,4,5,6,7,8,9]

for i in a:
  if n%i==0:
    if (n/i)<=9:
      print("Yes")
      break
    else:
      print("No")
      break
  else:
    print("No")
    break
    
  

n = int(input())
a=[]
for i in range(9):
  for j in range(9):
    a.apppend(i*j)
    
for i in a:
  if a[i]==n:
    print("Yes")
    break
  else:
    print("No")

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

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

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

b = 0
for i in a:
  if a[i]==n:
    print("Yes")
    break
  else:
    b = 1
  
if b==1:
  print("No")

n = int(input())
a=[]
for i in range(1,10):
  for j in range(1,10):
    a.append(i*j)
c=0
b = 0
for i in range(81):
  if a[i]==n:
    c=1
    print("Yes")
    break
  else:
    b = 1

if b==1 and c!=1:
  print("No")

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
N=int(input())
for x in range(1,10):
    for y in range (1,10):
        if x*y==N:
            print('Yes')
else:
    print('No')

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

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

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
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()



n = int(input())
ans = "No"
for i in range(1,10):
    for j in range(1,10):
        if i*j == n:
            ans = "Yes"
        else:
            pass

print(ans)


Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
N=int(input())
for i in range(9):
  if (N%i)==0 and N/i<10:
    print('Yes')
  else:
    print('No')

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
n = int(input())
for i in range(9):
  for j in range(9):
    if (i+1)*(j+1)==n:
      print("Yes")
    else:
      print("No")

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

Verdicts: Wrong Answer

Accepted