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):
num = input()
numlist = [i*j for i in range(1,10,1) for j in range(1,10,1)]
if int(num) in numlist:
    print("YES")
else:
    print('No')

num = input()
numlist = [i*j for i in range(1,10,1) for j in range(1,10,1)]
if int(num) in numlist:
    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):
input_num = input()
input_num = int(input_num)
for i in range(1,100,1):
  flag = False
  for j in range(1,100,1):
    if input_num == i * J:
      print("Yes")
      flag = True
      break
  if flag:
    break
if not flag:
	print("No")

input_num = input()
input_num = int(input_num)
ans_flag = False;
for i in range(1,100,1):
  for j in range(1,100,1):
    if input_num == i * J:
      print("Yes")
      ans_flag = True
      break;
if not ans_flag:
	print("No")

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

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

Verdicts: 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):
import sys
input = sys.stdin.readline

n=(int(x) for x in input().split())
l=[x*y for x in range(1,10) for y in range(1,10)]
if n not in l:
    print("No")
else :
    print("Yes")

import sys
input = sys.stdin.readline

n=int(input())
l=[x*y for x in range(1,10) for y in range(1,10)]
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):
  if N%i==0 and N//i<10:
    print("Yes")
    
print("No")
    

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

N = int(input())
k = 0
for i in range(9):
  for j in range(9):
    if (i+1)*(j+1) == N:
      k += 1
if k ==0:
  print('No')
else:
  print('Yes')

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):
    if N == i*j:
      print("Yes")
    elif i*j ==81:
      print("No")

N = int(input())

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


N = int(input())

flag =0

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

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

Verdicts: 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 = input()
for n in N:
  if 1 <= int(n) <= 9:
    print("Yes")
  elif int(n) >= 82:
    print("No")
  elif int(n) % 2 == 0:
    print("Yes")
  elif int(n) % 3 == 0:
    print("Yes")
  elif int(n) % 5 == 0:
    print("Yes")
  elif int(n) % 7 == 0:
    print("Yes")
  else:
    print("No")

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

N = int(input())
kuku = [x * y for x in range(1,10) for y in range(1, 10)]
if N in kuku:
    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):
A = input()
A = int(A)

def cal(A):
  for i in range(9):
    print(i)
    for j in range(9):
      if (i+1) *( j+1) == A:
        return 'Yes'
        break
  return 'No'

print(cal(A))


A = input()
A = int(A)

def cal(A):
  for i in range(9):
    for j in range(9):
      if (i+1) *( j+1) == A:
        return 'Yes'
        break
  return 'No'

print(cal(A))


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

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

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

import sys
N=int(input())
for i in range(1,10):
    for j in range(1,10):
        if i*j==N:
            ans='Yes'
            print('Yes')
            sys.exit()
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):
a = int(input())
f = False
for i in range(1, 10):
  if a // i * i == a:
    a == True
if f:
  print("Yes")
else:
  print("No")

a = int(input())
f = False
for i in range(1, 10):
  if (a // i * i) == a and a // i < 10:
    f = True
if f:
  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())
a = 0
for i in range(9):
    for j in range(9):
        if n == i*j:
            ans += 1
if ans >=1:
    print("Yes")
else:
    print("No")

n = int(input())
import sys
for i in range(1,10):
    for j in range(1,10):
        if n == i*j:
            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())
L=[]
for i in [1,...,9]:
    for j in [1,...,9]:
        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: 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):
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)


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)


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())
multi_list = []
for i range(1, 10):
  for j in range(1, 10):
    multi_list.append(i*j)

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

N = int(input())
multi_list = []
for i in range(1, 10):
  for j in range(1, 10):
    multi_list.append(i*j)
 
if N in multi_list:
  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,9):
    for j in range(1,9):
       if i*j == N:
         break
　　　　　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")
   exit()
print("NO")

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

Verdicts: 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):
A, B = map(int, input().split())

ans = -1

if A <= 9:
    if B <= 9:
        ans = A * B

print(ans)

N = int(input())
ans = 'No'
for i in range(9):
    q, mod = divmod(N, i+1)
    if mod == 0:
        if q <= 9:
            ans = 'Yes'
            break
print(ans)

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
N=input()

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

import sys
X=input()
N=int(X)

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

nums=[]

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

if n in nums:
  print('yes')
else:
  print('no')

n = int(input())

nums=[]

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

if n in nums:
  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())
check=True
for i in range(9,0,-1):
  if N%i==0:
    N /= i
    break
  else:
    check=False
for j in range(9,0,-1):
  if N%i==0:
    N /= i
    break
  else:
    check=False
print('Yes' if check and N==1 else 'No')

N=int(input())
count=0
while N>=2:
  for i in range(9,0,-1):
    if N%i==0:
      N = N/i
      count+=1
      break
  if N>=10:
    N=0
print('Yes' if count<=2 and N==1 else '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 = input()
printed = False
for i in range(1, 10):
    for j in range(1, 10):
        if N == i * j:
            print('Yes')
            printed = True
            break

if not printed:
    print('No')

N = int(input())
printed = False
for i in range(1, 10):
    for j in range(1, 10):
        if N == i * j:
            print('Yes')
            printed = True
            break

if not printed:
    print('No')

N = int(input())
printed = False
try:
    for i in range(1, 10):
        for j in range(1, 10):
            if N == i * j:
                print('Yes')
                printed = True
                raise Exception
except Exception:
    pass

if not printed:
    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())

y=[]
for i in range(1,10):
    for j in range(1,10):
        x=i*j
        y.append(x)

count=0
for z in y:
    if N==z:
        count+=1
    else:
        count=count
if count==1:
    print('Yes')
else:
    print('No')

N=int(input())

y=[]
for i in range(1,10):
    for j in range(1,10):
        x=i*j
        y.append(x)

count=0
for z in y:
    if N==z:
        count+=1
    else:
        count=count
if count==0:
    print('No')
else:
    print('Yes')

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())
bandera=False
for i in range(10):
  for j in range(10):
    producto=i*j
    if producto==N:
      bandera=True
if bandera==True:
  print("yes")
else:
  print("no")

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


N = int(input())

productos = []

def mult(N):
    for i in range(1,10):
        for n in range(1,10):

            calc = n * i
            productos.append(calc)

    if N in productos:
        print("Yes")
    else:
        print("No")
mult(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())
a = [0]
for i in range(9):
    for j in range(9):
        a.append((i+1)*(j+1))
ans = "Yes" if N in a else "No"

N = int(input())
a = [0]
for i in range(9):
    for j in range(9):
        a.append((i+1)*(j+1))
ans = "Yes" if N in a else "No"
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())
flg = 'NO'
for i in range(2,10):
    if N % i == 0 and N / i < 10:
        flg = 'YES'
        break
print(flg)

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

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 < 11:
	if i == 10:
		print('NO')
		break
	elif n % i == 0 and n / i < 10:
		print('YES')
		break
	else:
		i += 1

n = int(input())
i = 1
while i < 11:
	if i == 10:
		print('No')
		break
	elif n % i == 0 and n / i < 10:
		print('Yes')
		break
	else:
		i += 1


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 = True

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

if flag:
    print("No")

n = int(input())
flag = False

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

if not(flag):
    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(10):
  for j in range(10):
    a = i * j
    if(N == a):
      print('Yes')
      c = 1
      break
if (c == 0):
  print('No')

N = int(input())
c = 0
for i in range(10):
  for j in range(10):
    a = i * j
    if(N == a):
      print('Yes')
      c = 1
      break
  if(c == 1):
    break
if (c == 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):
b = int(input())
flg=0
for i in range(1,10):
    for j in range(1,10):
        if(b==i*j):
            print("Yes")
            flg=1
            break
if(flg==0):
    print("No")

import fractions
b = int(input())
flg=0
for i in range(1,10):
    if(b%i==0)and(fractions.gcd(b,i)>0)and(fractions.gcd(b,i)<10):
        print("Yes")
        flg=1
        break
if(flg==0):
    print("No")

b = int(input())
flg=0
for i in range(1,10):
    if(flg==1):
        break
    for j in range(1,10):
        if(b==i*j):
            print("Yes")
            flg=1
            break
if(flg==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):
    a,b=divmod(N,i)
    if 1 <= a <= 9 and i==0:
        print('Yes')
        exit()

print('No')

N=int(input())

for i in range(1,10):
    a,b=divmod(N,i)
    if 1 <= a <= 9 and b==0:
        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 = map(int, input().split())			# "5 7" -> ["5", "7"] -> 5, 7 => N=5,K=7

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

print(ans)



n = map(int, input().split())			# "5 7" -> ["5", "7"] -> 5, 7 => N=5,K=7

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

print(ans)



n = int(input())						# 5

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

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):
n = int(input())
i = 1   
result = False
while i < 10:
    j = 1   
    while j < 10:
        j = j + 1
        if n == j:
            result = True
    i = i + 1
print(result)

n = int(input())
i = 1   
result = 'No'
while i < 9:
    j = 1   
    while j < 9:
        j = j + 1
        print(j*i)
        if n == (j*i) and j != i:
            result = 'Yes'
    i = i + 1
print(result)

n = int(input())
i = 1   
result = 'No'
while i < 9:
    j = 1   
    while j < 9:
        j = j + 1
        print(j*i)
        if n == (j*i):
            result = 'Yes'
    i = i + 1
print(result)

n = int(input())
i = 1   
result = 'No'
while i < 10:
    j = 1   
    while j < 10:
        j = j + 1
        print(j*i)
        if n == (j*i) and j != i:
            result = 'Yes'
    i = i + 1
print(result)

n = int(input())
i = 1   
result = 'No'
while i < 10:
    j = 1   
    while j < 10:
        if n == (j*i):
            result = 'Yes'
        j = j + 1

    i = i + 1
print(result)

Verdicts: 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):
a = int(input())
i = 1
while i < 10:
  if a%i = 0 and 1<= a//i <=9:
    print("Yes")
    break
  else:
    i += 1

a = int(input())
i = 1
while i < 10:
  if a%i == 0 and 1<= a//i <=9:
    print("Yes")
    break
  else:
    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())
for i in range(1, 10):
    if n % i == 0 and n / i < 10:
        print('YES')
        break
    elif i == 9 :
        print('NO')


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

n=int(input())

for i in range(1,10):
    for j in range(i,10):
        if n==i*j:
            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):
n = int(input())
kuku=[0]*(81)
for i in range (9):
    for j in range(9):
        kuku[9*i+j]=(i+1)*(j+1)
print(kuku)

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


n = int(input())
kuku=[0]*(81)
for i in range (9):
    for j in range(9):
        kuku[9*i+j]=(i+1)*(j+1)

if (n in kuku):
    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 n==i*j:
            print("yes")
        else:
            print("no")

n = int(input())
 
for i in range(1, 10):
    for j in range(1, 10):
        if n == i*j:
            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())

A = ()
for i in range (10):
    for j in range(10):
        A.append(i*j)

if A.count(n) != 0:
    print("Yes")
else:
    print("No")

n = int(input())

A = []
for i in range (10):
    for j in range(10):
        A.append(i*j)

if A.count(n) != 0:
    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):
A = int(input())
c = 0
for i in range(1,10):
  if (A % i == 0 and A // i < 10):
    c += 1
if c > 0:
  print("Yes")
else:
  print("No"

A = int(input())
c = 0
for i in range(1,10):
  if (A % i == 0 and A // i < 10):
    c += 1
if c > 0:
  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())
a = 1
b = 1
if (N == 1)or(N == 81):
    print("yes")
elif (2 < N < 80):
    for a in range(1,10):
        for b in range(1,10):
            if N == a*b:
                a = a
                b = b
                if (a == 9)and(b == 9):
                    print("no")
                else:
                    print("yes")
            else:
                None
else:
    print("no")

N = int(input())
ans = 0
for a in range(1,10):
    for b in range(1,10):
        if N == a*b:
            ans = 1
if (ans == 1):
    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())
counter=0
for i in range(1,10):
    if N/i==1 or N/i==2 or N/i==3 or N/i==4 or N/i==5 or N/i==6 or N/i==7 or N/i==8 or N/i==9:
        print(N/i)
        print('Yes')
        break
    else:
        counter+=1
if counter==9:
    print('No')


N=int(input())
counter=0
for i in range(1,10):
    if N/i==1 or N/i==2 or N/i==3 or N/i==4 or N/i==5 or N/i==6 or N/i==7 or N/i==8 or N/i==9:
        print('Yes')
        break
    else:
        counter+=1
if counter==9:
    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())

YesFlg=0
NoFlag=0
for i in range(1,10):
    a,b=divmod(num, i)
    
    print(i, a, b)

    if b==0 and a<10:
        YesFlg=1
   

if YesFlg!=1:
    print("No")
else:
    print("Yes")

num=int(input())

YesFlg=0
NoFlag=0
for i in range(1,10):
    a,b=divmod(num, i)
    
    if b==0 and a<10:
        YesFlg=1
   

if YesFlg!=1:
    print("No")
else:
    print("Yes")

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())
_output = False
for n in range(1,10):
  if N % n == 0:
    tmp = N/n
  	if tmp <= 9:
      print("Yes")
      _output = True
      break
if not _output:
  print("No")

N = int(input())
_output = False
for n in range(1,10):
  if N % n == 0:
      tmp = N/n
      if tmp <= 9:
          print("Yes")
          _output = True
          break
if not _output:
    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())
if not isinstance(n, int):
    print("No")
else:
    ran = list(range(1,10))
	product = [x*y for x in ran for y in ran]
    print("Yes") if n in product else print("No")

n = input()

ran = list(range(1,10))
product = [x*y for x in ran for y in ran]
print("Yes") if n in product else print("No")

n = int(input())
if not isinstance(n, int):
    print("No")
else:
    ran = list(range(1,10))
    product = [x*y for x in ran for y in ran]
    print("Yes") if n in product else print("No")

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

flag = 0
for i in range(10):
    if N % i == 0:
        a = N // i
        if a <= 9:
            print("Yes")
            flag = 1

if flag == 0:
    print("No")

N = int(input())

flag = 0
for i in range(1, 10):
    if N % i == 0:
        a = N // i
        if a <= 9:
            flag = 1

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

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):
S = []
N = int(input())

for i in range(10):
    for j in range(10):
        S.append(i*j)

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

S = []
N = int(input())
 
for i in range(10):
    for j in range(10):
        S.append(i*j)
 
if N in S:
    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())
ans="No"
for i in range(100):
  if n%i==0:
    ans="Yes"
    break
print(ans)

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)

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):
print("Yes" if sum([int(input()) == x * y for x in range(1, 10) for y in range(1, 10)]) else "No")

n = int(input())
print("Yes" if sum([n == x * y for x in range(1, 10) for y in range(1, 10)]) else "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):
A, B = map(int, input().split())
if(A>9 or B>9):
  print("-1")
elif(A>10 and B>10):
  print("-1")
else:
  ans=A*B
  print(ans)

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

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

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

Verdicts: 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):
num = int(input())
c = False
for i in range(1,10):
    if num % i : continue
    n1 = num/i
    n2 = num/n1
    if ((n1 * n2) == num) and (n1 < 10 and n2 < 10): 
        c = True
        break

if c:
    print('yes')
else:
    print('no')


def main(n):
    for i in range(1,10):
        if (n/i) <= 9:
            if (n/i)%1 == 0:
                return "Yes"
    return "No"

n = int(input())

print(main(n))



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())
num = 0

for i in range(2,10):
    while True:
        if N % i == 0:
            N = N//i
            num += 1
        else:
            break

if i == 1 and num ==2:
    print("Yes")
else:
    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: 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())
k = 0
for i in range (1, 10):
  for j in range (1, 10):
    if i*j == N:
      print('Yes')
      k = 1
      break
if k == 0:
  print('No')

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

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=[9,8,7,6,5,4,3,2]
count=0
for i in l:
    if n in l :
        count+=2
        n=1
    if n%i==0 and n//i<10:
        count+=1
        n=n/i
        if n==i:
            count+=1
            n=int(n/i)
        
print('Yes' if count==2 and n==1 else 'No')

n=int(input())
l=[9,8,7,6,5,4,3,2]
count=0

if 1*2*3*4*25*6*49*8*9%n==0 and n//9<10:
    for i in l:
        if n%i==0 and n/i<10:
            count+=1
            break
print('Yes' if count==1 or n==1 else '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:
      print("Yes")
    else:
      print("No")


n = int(input())

for i in range(10):
  for j in range(10):
    if i * j == n:
      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):

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

print(flag)

n = int(input())

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

print(flag)

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):
    if N % i != 0:
        print("No")
    elif 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
    else:
        continue
    break
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)
isDiv = 'No'
for i in range(1, 10):
  if N % i == 0:
    isDiv = 'Yes'
    break
print(isDiv)

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


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


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())
res = False
for i in range(N):
  if i * i > N:
    break
  else:
    q = N // i
    if i * q == N and 1 <= i <= 9 and 1 <= q <= 9:
      res = True
      break
print('Yes' if res else 'No')

N = int(input())
res = False
for i in range(1, N+1):
  if i * i > N:
    break
  else:
    q = N // i
    if i * q == N and 1 <= i <= 9 and 1 <= q <= 9:
      res = True
      break
print('Yes' if res else '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 a in range(1, 10):
  for b in range(a, 10):
    if n = a * b:
      print('Yes')
      exit()

print('No')


n = int(input())

for a in range(1, 10):
  for b in range(a, 10):
    if n == a * b:
      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):
def kakezan_list():
    kake_list = list()
    for i in range(1, 10):
        for j in range(1, 10):
            kake_list.append(i*j)
    return kake_list

n = int(input())
print(kakezan_list())

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

def kakezan_list():
    kake_list = list()
    for i in range(1, 10):
        for j in range(1, 10):
            kake_list.append(i*j)
    return kake_list

n = int(input())


if n in kakezan_list():
    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=input(n)
t=False

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


n=int(input(n))
t=False

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


n=int(input())
t=False

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


n = int(input())
s = 0

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

n = int(input())
list = []

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

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

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


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):
A,B = map(int,input().split())
if 1 <= A and A <=9 and 1 <= B and B <=9 :
    print("Yes")
else:
    print("No")

N = int(input())
a = 0
for i in range(1,10):
    if N % i == 0:
        if N/i <= 9:
            a = 1
        else:
            continue
    else:
        continue
if a == 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):
x=int(input())
for i in range(1,10):
  if x%i==0:
    if x/i<10:
      print('yes');exit()
      
print('no')

x=int(input())
for i in range(1,10):
  if x%i==0:
    if x/i<10:
      print('yes');exit()
      
print('no')

x=int(input())
for i in range(1,101):
  if x%i==0:
    if x%i<10:
      print('yes');exit()
      
print('no')

x=int(input())
for i in range(1,10):
  if x%i==0:
    if x/i<10:
      print('Yes');exit()
      
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):
a = []
for i in range(1,10):
    for j in range(1,10):
        a.append(i*j)
b = int(input())
if b in a:
    print("Yes")
else:
    print("No")
print(a)


a = []
for i in range(1,10):
    for j in range(1,10):
        a.append(i*j)
b = int(input())
if b in a:
    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())
m = int(input())
if (n<=9 and m<=9):
    print(n*m)
else:
    print("-1")

import math
m = int(input())
k = 0
for i in range(1,10,1):
    for j in range(1,10,1):
        if i*j == m:
            k = 1
            break
if k == 1:
    print("Yes")
else:
    print("No")




Verdicts: Runtime Error

Accepted