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 num in range(1,10):
    for num2 in range(1,10):
        if N==num*num2:
            print('Yes')
    break
else:
    print('No')

N=int(input())
c=1
for a in range(1,10):
    if c==2:
        break
    for b in range(1,10):
        if N==a*b:
            print('Yes')
            c+=1
            break
    if c==1:
        print('No')
        break

N=int(input())
c=1
for a in range(1,10):
    if c==2:
        break
    for b in range(1,10):
        if N==a*b:
            print('Yes')
            c+=1
            break
if c==1:
    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 ==0 and n//i <=9:
    	print("Yes")
    	break
else:
	print("No")

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

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<=9:
    print(Yes)
    break
    
  

N=int(input())
judge=0
for i in range(1,10):
  if N%i==0 and N/i<=9:
    print("Yes")
    judge=1
    break
if(judge==0):
  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())
mylist = []
for i in range(1,10):
    for j in range(1,10):
        mylist.append(i*j)
        if mylist.count(N):
            print("YES")
            exit(0)

print("NO")    

N = int(input())
mylist = []
for i in range(1,10):
    for j in range(1,10):
        mylist.append(i*j)
#print(mylist)        

if mylist.count(N):
    print("YES")
else: print("NO")    


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

print("NO")   

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

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())
list = [1,2,3,4,5,6,7,8,9,10,12,14,15,16,18,20,21,
       24,25,27,28,30,32,35,36,40,42,45,48,49,54,
       56,63,64,72,81]

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

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

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

n=int(input())
flag=0
for i in range(1,10):
    for j in range(1,10):
        if i*j==n:
            flag=1
            break
if flag: 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):
def main():
  N=int(input())
  for i in range(1:10)
    for j in range(1:10):
      if N=i*j:
        print("Yes")
      else:
        print("No")
main()

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

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

def main():
  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")
main()

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

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

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

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())
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: Runtime Error

Runtime Error

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(9):
  for j in range(9):
    if N == i * j:
      print('Yes')
      return
print('No')

import sys

N = int(input())

for i in range(9):
  for j in range(9):
    if N == (i + 1) * (j + 1):
      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())
flag =False
for a in range(1,10):
  print(a)
  if N%a==0 and N/a <=9:
    flag=True
    break
if flag:
  print("Yes")
else:
  print("No")

N=int(input())
flag =False
for a in range(1,10):
  if N%a==0 and N/a <=9:
    flag=True
    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())
print(N in [1, 2, 3, 4, 5, 6, 7 ,8 ,9,10, 12, 14, 15, 16, 18, 20, 21 ,24, 25, 27, 30, 32, 35, 36, 40,45, 48, 49, 54, 56, 63, 64 ,72, 81])


import sys

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


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

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

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 = float(input())
ans = 'False'
for l in range(1, 10):
    m = n / l
    if m.is_integer() and 1 <= m <= 9:
        ans = 'True'
        break
print(ans)

n = float(input())
ans = 'No'
for l in range(1, 10):
    m = n / l
    if m.is_integer() and 1 <= m <= 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)
for i in range(1, 10):
    for j in range(1, 10):
        if n == i * j:
            print('Yes')
            exit()

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: 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())
for i in range(1,9):
  if a//i<10 and a%i==0:
    print('Yes')
    break
  else:
    continue
print('No')

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

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(9):
  if n / (i + 1) <= 9 and n % (i + 1) == 0:
    print("YES")
    flag = False
    break
if flag:
  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())

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

print(ans)

N=int(input())

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

print(ans)

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:
    ans = "yes"
    break
  else:
      ans = "no"
print(ans)

N = int(input())
for i in range(1,10):
  if N%i == 0 and N//i < 10:
    ans = "Yes"
    break
  else:
      ans = "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):
import numpy as np

N = int(input())

x   = np.arange(1,10).reshape(1,9)
lst = np.dot(x.T, x).reshape(1, 81)

print(True) if N in lst else print(False)

import numpy as np

N = int(input())

x   = np.arange(1,10).reshape(1,9)
lst = np.dot(x.T, x).reshape(1, 81)

print('Yes') if N in lst 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())
print(["YES", "NO"][n > 81])

all = [i * j for i in range(1, 10) for j in range(1, 10)]
print(["NO", "YES"][int(input()) in all])

all = [i * j for i in range(1, 10) for j in range(1, 10)]

print(["No", "Yes"][int(input()) in all])

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())
flag = false
for i in range(1,10):
  if n%i == 0 and 0 < n/i < 10:
    flag = True
    break
if flag:
  print("Yes")
else
  print("No")

n = int(input())
flag = False
for i in range(1,10):
  if n%i == 0 and 0 < n/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):
N = int(input())
for x in range(9,0,-1):
  if N % x == 0 and N // x < 10:
    print("yes")
    exit()
print("no")

N = int(input())
for x in range(9,0,-1):
  if N % x == 0 and N // x < 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())
y = 0
for a in range(1,10):
    for b in range(1,10) :
        if N == a*b :
            print('Yes')
            y += 1
            break
if y == 0 :
    print('No')

N = int(input())
y = 0
for a in range(1,10):
    for b in range(1,10) :
        if N == a*b :
            print('Yes')
            y += 1
            break
    if y != 0 :
        break
if y == 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())

able = False
for i in range(1, 10):
    j = N // i
    if j < 10 and N == i * j:
        able = True
        break

if able == True:
    print('YES')
else:
    print('No')

N = int(input())

able = False
for i in range(1, 10):
    for j in range(1, 10):
        if N == i * j:
            able = True
            break
    if able == True:
        break

if able == True:
    print('YES')
else:
    print('No')

N = int(input())

able = False
for i in range(1, 10):
    for j in range(1, 10):
        if N == i * j:
            able = True
            break
    if able == True:
        break

if able == True:
    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):
    if n//i==0 and n/i<10:
      print("Yes")
      exit()
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):
c = int(input())

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

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


c = int(input())

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

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

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

def judge(N):
  if N == 1:
    return 'Yes'
  for i in reversed(range(1, 10)):
    if N%i == 0 and N//i in range(1, 10):
      return 'Yes'
    else:
      return 'No'

print(judge(N))

N = int(input())

def judge(N):
  if N == 1:
    return True
  for i in reversed(range(1, 10)):
    if N%i == 0 and N//i in range(1, 10):
      return True
  else:
    return False

print(judge(N))

N = int(input())

def judge(N):
  if N == 1:
    return True
  for i in reversed(range(1, 10)):
    if N%i == 0 and N//i in range(1, 10):
      return True
    else:
      return False

print(judge(N))

N = int(input())

def judge(N):
  if N == 1:
    return 'Yes'
  for i in reversed(range(1, 10)):
    if N%i == 0 and N//i in range(1, 10):
      return 'Yes'
  else:
    return 'No'

print(judge(N))

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 1 <= N // i and N //i <= 9:
        print("yes")
        break
else:
    print("no")




N = int(input())

for i in range(1, 10):
    if N % i == 0 and 1 <= N // i and N //i <= 9:
        print("Yes")
        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):
# -*- coding: utf-8 -*-


a = int(input())

flag = 0
for i in range(1, 10):
  if (a % i == 0 and a / i < 10 and a / i >= 1):
    print('YES')
    flag = 1
    break

if (flag == 0):
  print('NO')


# -*- coding: utf-8 -*-


a = int(input())

flag = 0
for i in range(2, 10):
  if (a % i == 0 and a / i < 10):
    print('YES')
    flag = 1
    break

if (flag == 0):
  print('NO')


# -*- coding: utf-8 -*-


a = int(input())

flag = 0
for i in range(1, 10):
  if (a % i == 0 and a / i < 10 and a / i >= 1):
    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,b = map(int,input().split())
if a or b >= 10:
    print(-1)
else:
    print(a*b)

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

n = int(input())
ans = 0
for i in range(10):
    for j in range(i+1):
        if i*j == n:
            ans += 1
if ans == 1:
    print("Yes")
elif n == 2,4,16,25,36,49,64:
  print("Yes")
else:
    print("No")

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

Verdicts: Runtime Error

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):
n = int(input())
l = []
for i in range(1,10):
    for j in range(1, 10):
        l.append(i * j)
for k in l:
    if i == n:
        print("Yes")
        break
else:
    print("No")


n = int(input())
l = []
for i in range(1,10):
    for j in range(1, 10):
        l.append(i * j)
for k in l:
    if n == k:
        print("Yes")
        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):
#include <bits/stdc++.h>
using namespace std;
string solve()
{
    int N;
    cin>>N;
    int last = 1;
    for(int i=2; i*i<=N; i++){
        if(N%i==0){
            last = i;
        }
    }
    N = N/last;
    if(N>9 || last>9)return "No";
    return "Yes";
}
int main()
{
    cout << solve() << endl;
}

#include <bits/stdc++.h>
using namespace std;
string solve()
{
    int N;
    cin>>N;
    int last = 1;
    for(int i=2; i*i<=N; i++){
        if(N%i==0){
            last = i;
        }
    }
    N = N/last;
    if(N>9 || last>9)return "No";
    return "Yes";
}
int main()
{
    cout << solve() << endl;
}

a = int(input())
if(a > 81 or a==0):
    print("-1")
elif(0<a<10):
    print(1, a)
else:
    for i in range(9, 0, -1):
        if(a%i==0):
            a = a//i
            break
    if(a>9):
        print(-1)
    else:
        print(i, a)

a = int(input())
if(a > 81 or a==0):
    print("No")
elif(0<a<10):
    print("Yes")
else:
    for i in range(9, 0, -1):
        if(a%i==0):
            a = a//i
            break
    if(a>9):
        print("No")
    else:
        print("Yes")

Verdicts: 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):
import numpy as np
N = input()
kuku_array = np.zeros((9, 9))
for i in range(9):
  for j in range(9):
    kuku_array[i][j] = i*j
if np.any(kuku_array = N) == True:
  print('Yes')
else:
  print('No')

import numpy as np
N = input()
kuku_array = np.zeros((9, 9))
for i in range(1,10):
  for j in range(i,10):
    kuku_array[i-1][j-1] = i*j
if np.any(kuku_array == N) == True:
  print('Yes')
else:
  print('No')

import numpy as np
N = int(input())
kuku_array = np.zeros((9, 9))
for i in range(1,10):
  for j in range(i,10):
    kuku_array[i-1][j-1] = i*j
if np.any(kuku_array == N) == True:
  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=int(input())
error=False
for i in range(1,9):
    for j in range(1,9):
        if N==i*j:
            error==True
if error:
    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):
a = input()
a = int(a)
n = 0
for i in range(1,10):
    if a % i == 0:
        for j in range(1,10):
            if (a/i) < 10 and (a/i) % j == 0:
                n = n + 1

if n > 0:
    print("YES")
else:
    print("NO")

a = input()
a = int(a)
n = 0
for i in range(1,10):
    if a % i == 0:
        for j in range(2,10):
            if (a/i) < 10 and (a/i) / j == 0:
                n = n + 1

if n > 0:
    print("YES")
else:
    print("NO")

a = input()
a = int(a)
n = 0
for i in range(2,10):
    if a % i == 0:
        for j in range(1,10):
            if (a/i) < 10 and (a/i) / j == 0:
                n = n + 1

if n > 0:
    print("YES")
else:
    print("NO")

a = input()
a = int(a)
n = 0
for i in range(2,10):
    if a % i == 0:
        if (a/i) < 10:
            n = n + 1

if n > 0:
    print("YES")
else:
    print("NO")

a = input()
a = int(a)
n = 0
for i in range(1,10):
    if a % i == 0:
        for j in range(1,10):
            if (a/i) < 10 and (a/i) % j == 0:
                n = n + 1

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

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):
N=int(input())
A=str()
for i in (1,9):
    if N%i==0 and N//i<=9:
      A=("Yes")
      break
    else:
      A=("No")
print(A)

N=int(input())
A=str()
for i in (1,9):
    if N%i==0 and N/i<=9:
      A=("Yes")
      break
    else:
      A=("No")
print(A)

N=int(input())
a=0
for i in range(1,10):
   for j in range(1,10):
      if i*j==N:
        a+=1
      else:
        a+=0
if a>=1:
   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):
# coding: utf-8
# submission # - User: herp_sy

#
# lang: Python3 (3.4.3)

import math
import statistics
import numpy as np
import queue

a,b = map(int, input().split())
if a > 9 or b > 9:
  print('-1')
else:
  print(a * b)


# coding: utf-8
# submission # - User: herp_sy

#
# lang: Python3 (3.4.3)

import math
import statistics
import numpy as np
import queue

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


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):
# B 81
def calc():
    for i in range(1, 10):
        if A % i == 0:
            x = A / i
            if x >= 0 and x < 10:
                print('YES')
                return
    
    print('NO')

if __name__ == "__main__":
    A = int(input())
    calc()

# B 81
def calc():
    for i in range(1, 10):
        if A % i == 0:
            x = A / i
            if x >= 0 and x < 10:
                print('Yes')
                return
    
    print('No')

if __name__ == "__main__":
    A = int(input())
    calc()

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):
s = int(input())
i = 9
flag = True
while i >= 1:
    if s % i == 0 and s / i <=9:
        print("Yes")
        flag = False
        break
if flag:
    print("No")

s = int(input())
i = 9
flag = True
while i >= 1:
    if s % i == 0 and s / i <=9:
        print("Yes")
        flag = False
        break
if flag:
    print("No")

s = int(input())
i = 9
flag = True
while i >= 1:
    if s % i == 0 and s / i <=9:
        print("Yes")
        flag = False
        break
    i -= 1
if flag:
    print("No")

Verdicts: Time Limit Exceeded

Time Limit Exceeded

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:
    if n/i <=9:
      f=1
      break
if f==0:
  print('No')
else:
  print('YES')

n=int(input())
f=0
for i in range(1,10,1):
  if n%i==0:
    if (n//i)<=9:
      f=1
      break
if f==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())

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


n=int(input())

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


n=int(input())

flag = 0
for i in range(1,10):
    for j in range(1,10):
        if n == (i * j):
            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):
import sys
N = int(input())
array = [ I for I in range(1,10) ]

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

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

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

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

for J in range(1,10):
    for K in range(1,10):
        if n == J*K:
            print('Yes')
print('No')

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

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

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

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

ans = "NO"
for i in range(9):
	if (N % (i+1) == 0) & ( N / (i+1) <= 9):
		ans = "YES"
		break
print(ans)

N = int(input())

ans = "No"
for i in range(9):
	if (N % (i+1) == 0) & ( N / (i+1) <= 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):
def b81(N):
    for i in range(1,10):
        for j in range(1,10):
            if i*j == N:
                return True
    return False


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

def b81_re(N):
    if N>81:
        return 'No'
    for i in reversed(range(1,10)):
        if N%i == 0:
            if N/i<=9:
                return 'Yes'
    return 'No'


if __name__ == "__main__":
    N = int(input())
    print(b81_re(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())
b = False
i=2
while i<=9:
    j=1
    while j<=9:
        if j*i==n:
            print('Yes')
            b = True
            break
        j+=1
    i+=1
if b==False:
    print('No')

n = int(input())
b = False
i=1
while i<=9:
    j=1
    while j<=i:
        if j*i==n:
            print('Yes')
            b = True
            break
        j+=1
    if b==True:
        break
    i+=1
if b==False:
    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')
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')

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,b,n = map(int, input().split())
n=a*b
if a<=9 and b<=9:
    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: 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:
            result = "Yes"
        else:
            result = 'No'
print(result)

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

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

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

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())
if 0 < n <= 81:
    print('Yea')
else:
    print('No')

n = int(input())
l = []
for i in range(1,10):
    for j in range(1,10):
        x = i * j
        l.append(x)
if n not in l:
    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())
ifbreak = "FALSE"
for i in range(n**0.5):
  for j in range(**0.5):
    print(i,j)


n=int(input())
ifbreak = "FALSE"
for i in range(9):
  for j in range(9):
    if n == ((i+1)*(j+1)):
      print("Yes")
      ifbreak = "TRUE"
      break
  if ifbreak=="TRUE":
    break
if ifbreak == "FALSE":
  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())
s=0
for a in range(1,10):
  for b in range(1,10):
    if a*b==n:
      print("Yes")
      s+=1
  else:
    continue
if s==0:
  print("No")

N=int(input())
A,B=map(int,input().split())
if 9 >= A >= 1 and 9 >= B >= 1 and A*B==N:
  print('Yes')
else:
  print('No')

n=int(input())
s=0
for a in range(1,10):
  for b in range(1,10):
    if a*b==n:
      print('Yes')
      s+=1
      break
  else:
    continue
  break
if s==0:
  print('No')

Verdicts: 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())
flag = False
for i in range(1,10):
  for j in range(1,10):
    if i*j == A:
      flag = True
      break;
    else:
      flag = False
if flag:
  print('Yes')
else:
  print('No')

A = int(input())
flag = False
for i in range(1,10):
  if flag:
    break;
  for j in range(1,10):
    if i*j == A:
      flag = True
    else:
      flag = False
    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 = input()
dict = {}

for i in range(1: 10):
    for j in range(i+1: 10):
        dict[i*j] = True

return dict.get(N)

N = int(input())
dict = {}

for i in range(1, 10):
    for j in range(i, 10):
        dict[i*j] = True
print('Yes' if dict.get(N) 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())
ans = 0

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

if ans >= 1:
    print("Yes")
else:
    print("No")

N = int(input())
ans = 0

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

if ans >= 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())
flag=0
for i in range(9):
  nn=n/(i+1)
  if(nn<10 and type(nn)==int):
    flag=1
    break
if(flag):
  print("Yes")
else:
  print("No")

n=int(input())
flag=0
for i in range(9):
  nn=n/(i+1)
  if(nn<10 and type(nn)==int):
    flag=1
    break:
if(flag):
  print("Yes")
else:
  print("No")

n=int(input())
flag=0
for i in range(9):
  if(19960710 < n/(i+1)):
    flag=19960823

n=int(input())
flag=0
for i in range(9):
  nn=n/(i+1)
  if(nn<10 and (nn.is_integer())):
    flag=1
    break
if(flag):
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

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

if a >= 1 and a <= 9 and b >= 1 and b <= 9:
    print('Yes')
else:
    print('No')

import sys

a = int(input())

for i in range(9):
    for j in range(9):
        if a == (i+1) * (j+1):
            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):
import sys

n = int(input())

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


import sys

n = int(input())

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


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):
  if N%a==0 and N/a<=9:
    print("Yes")
    break
  else:
    print("No")
    if a>=10:
      break


N=int(input())
for a in range(0,10):
  if N%a==0 and N/a<=9:
    print("Yes")
    break
  else:
    if a>=10:
      print("No")
    


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

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

def main():
    li = [a * b for a in range(1, 10) for b in range(1, 10)]
    print ('YES' if N in li else 'NO')

if __name__ == '__main__':
    main()

N = int(input())

def main():
    li = [a * b for a in range(1, 10) for b in range(1, 10)]
    print ('Yes' if N in li else 'No')

if __name__ == '__main__':
    main()

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 sys

stdin = sys.stdin

ni = lambda: int(ns())
ns = lambda: stdin.readline()

N = ni()

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

print(ans)



import sys

stdin = sys.stdin

ni = lambda: int(ns())
ns = lambda: stdin.readline()

N = ni()

ans = "No"
for i in range(1, 10):
    for j in range(1, 10):       
        if (i * j ) == N:
            ans="Yes"
            break
    else:
        continue
    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())

def is_product_of_two_digits(n):
  for i in range(10):
    if n % i == 0 and 1 <= n // i <= 9:
      return True
  return False
    
if is_product_of_two_digits(n):
  print('Yes')
else:
  print('No')
  

n = int(input())
 
def is_product_of_two_digits(n):
  for i in range(1, 10):
    if n % i == 0 and 1 <= n // i <= 9:
      return True
  return False
    
if is_product_of_two_digits(n):
  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())
flag = False
a, b = 0
for i in range(2, 9):
    if(n % i): continue
    else: flag = True
if(flag and (n/i <= 9)): print('Yes')
else: print('No')


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

Verdicts: Runtime Error

Accepted