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):
x = int(input())
bool ok=False
for i in range 9:
	for j in range 9:
		if(i*j==x):
			ok=True
if(ok):print("Yes")
else: print("No")

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

Verdicts: Runtime Error

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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


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


Verdicts: 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):
from sys import stdin
n = int(stdin.readline().rstrip())
for i in range(1,10):
    for j in range(1,10):
        a = i*j
        if a == n:
            print("YES")
            exit()
        else:
            pass
print("NO")


from sys import stdin
n = int(stdin.readline().rstrip())
for i in range(1,10):
    for j in range(1,10):
        a = i*j
        if a == n:
            print("Yes")
            exit()
        else:
            pass
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())
lsr=[]
for i in range(1,9):
    for j in range(1,9):
        lst.append(i*j)

print("Yes" if N in lst else "No")
        

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

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

Verdicts: Runtime Error

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
a = int(input())
if a <= 81:
    for i in range(8):
        if ((a % (i+2)) == 0) and ((a / (i+2)) <= 9):
            print("Yes")

print("No")

a = int(input())
if a <= 81:
    for i in range(8):
        if ((a % (i+2)) == 0) and ((a / (i+2)) <= 9):
            print("Yes")
            b = False

if b:
    print("No")

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

Verdicts: Wrong Answer

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    
import os     
import math


n = int(input())
#a = list(map(int, input().split()))


#lista = list(map(int, str.split()))

ans="NO"

for i in range(1,10):
    for j in range(1,10):
        if n==i *j :
            ans = "YES"


print(ans)

import sys    
import os     
import math


n = int(input())
#a = list(map(int, input().split()))


#lista = list(map(int, str.split()))

ans="No"

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


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(2, 9, 1):
  d = n / i
  if type(d) is int and d < 10:
    ans = 'Yes'
    break
    
print(ans)

n = int(input())
ans = 'No'

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

#B
import sys
n=int(input())
x=list(range(1,10))
x1=list(range(1,10))
for i in x:
    for j in x1:
        if i*j==n:
            print("Yes")
            sys.exit()
print("No")

Verdicts: Runtime Error

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

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




N = int(input())
flg = 0

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


N = int(input())
flg = 0

for i in range(1, 10, 1):
  if flg==1:
    break
  for j in range(1, 10, 1):
    if i*j==N:
      print("Yes")
      flg= 1
      break
    
      
if flg==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):
n = int(input())
f = 0
for i in range(1,10):
  if n%i == 0 and n/i<10:
    f=1
    break
if f==0:
  print('no')
else:
  print('yes')

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

for i in range(1,10):
  b = a / i
  print(i)
  if b.is_integer() and 1 < b < 10:
    print('Yes')
    ans = False
    break
  
if ans:
  print('No')

a = int(input())
ans = True

for i in range(1,10):
  b = a / i
  if b.is_integer() and 1 <= b < 10:
    print('Yes')
    ans = False
    break
  
if ans:
  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):
s = int(input())
L = []
for i in range(1,10):
  for j in range(1,10):
    L.append(i * j)
if s in L:
  print('YES')
else:
  print('NO')

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

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


n = int(input())
for i in range(1, 9):
  if n % i == 0:
    print("YES")
    exit()
print("NO")

n = int(input())
k = 0
for i in range(1, 9):
    if n % i == 0:
      print("YES")
      k = 1
      break
if k == 0:
    print("NO")


n = int(input())
k = 0
if n >= 1 and n <= 9 or n % 2 == 0 and n <= 18 or n % 3 == 0 and n <= 27 or n % 4 == 0 and n <= 36 or n % 5 == 0 and n <= 45 or n % 6 == 0 and n <= 54 or n % 7 == 0 and n <= 63 or n % 8 == 0 and n <= 72 or n % 9 == 0 and n <= 81:
    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())

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

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

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
 
N=int(input())
for i in range(1,10):
  if N/i==N//i and N/i<10:
    print("Yes")
    sys.exit()
  else:
    print("No")

import sys

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

import sys

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

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

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

n=int(input())

a=[]
for i in range(1,10):
	if n/i<10:
      a.append("Yes")

if "Yes" in a:
  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")

Verdicts: Wrong Answer

Runtime Error

Wrong Answer

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(2,10):
  if n % i == 0:
    if n / i <=  9:
      print("Yes")
    else:
      print("No")
  else:
    print("No")


n = int(input())
for i in range(2,10):
  if n % i == 0:
    if n / i <  10:
      print("Yes")
      exit()
if n == 1:
  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())

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


n = int(input())

for i in range(1, 10):
    for j in range(1, 10):
        if n / i == j:
            print('Yes')
            break

print('No')


n = int(input())

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

print('No')


n = int(input())

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

print('No')


n = int(input())
for i in range(10):
    for j in range(10):
        if n / i == j:
            print('Yes')

print('No')


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
            break

if flag:
    print('No')


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
            break
    else:
        continue
    break

if flag:
    print('No')


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

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

for i in range(9):

     if n%i == 0 and n//i < 10:
         print('Yes')
         break

else:
    print('No')

n = int(input())

for i in range(9):

     if n%(i+1) == 0 and n//(i+1) < 10:
         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 = list(map(int, input().split()))
# N = 50

l = []

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

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

N = int(input())
# N = 10

l = []

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

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

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

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

# -*- coding: utf-8 -*-
N = int(input())
a = 0
for i in range(1,10):
    if N % i == 0 and 1 <= N // i <= 9:
        a = 1
if a == 0:
    print("No")
else:
    print("YES")

# -*- coding: utf-8 -*-
N = int(input())
a = 0
for i in range(1,10):
    if N % i == 0 and N // i < 10:
        a = 1
if a == 0:
    print("No")
else:
    print("YES")

# -*- coding: utf-8 -*-
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")

# -*- coding: utf-8 -*-
N = int(input())
a = 0
for i in range(1,10):
    if N % i == 0 and 1 <= N // i <= 9:
        a = 1
if a == 0:
    print("No")
else:
    print("Yes")

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

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

if n > 0:
    print('yes')
else:
    print('no')


N = int(input())
n = 0

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

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


Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

N = int(input())
for i in range(9):
  if (N % (i+1) ) == 0:
    if (N/(i+1)) < 10:
      print("YES")
      exit()
print("NO")

N = int(input())
for i in range(9):
  if N % (i+1) == 0:
    if N / (i+1) < 10:
      print("YES")
      exit()
print("NO")

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

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


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):
for a in range(1, 10):
    for b in range(1, 10):
        if a * b == N:
            print('yes')
        else:
            print('No')

N = int(input())
for a in range(1, 10):
    flag = False
    for b in range(1, 10):
        if a * b == N:

            flag = True
            break
    if flag:
        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 = 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())
k=[i*j for i in range(1,10) for j in range(1,10)]
print('Yes' if n in k 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):
lst = []
for i in range(10):
  for j in range(10):
    lst.append(i*j)

N = int(input())
if N in lst:
  print(Yes)
else:
  print(No)

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

N = int(input())
if N in lst:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
import sys
import math
stdin = sys.stdin
mod = 10**9 + 7

ns = lambda: stdin.readline().rstrip()
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
sa = lambda h: [list(map(int, stdin.readline().split())) for i in range(h)]

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

import sys
import math
stdin = sys.stdin
mod = 10**9 + 7

ns = lambda: stdin.readline().rstrip()
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
sa = lambda h: [list(map(int, stdin.readline().split())) for i in range(h)]

a = set()
for i in range(1,10):
    for j in range(1, 10):
        a.add(i*j)

n = ni()
if n 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):
a = int(input())
f = False
for i in range(1,10):
    for j in range(1,10):
        if i*j == a:
            f = True
if f:
    print("YES")
else:
    print("NO")


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


Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
a = int (input())
if a>81:
  print("No")
else:
  c = 1
  for i in range(7):
    b = a/(9-i)
    print(b)
    
    if b.is_integer()==True and b<10:
      c = 0
      print(c)
    else:
      c = c*1
      print(c)
if c==0:
  print("Yes")
else:
  print("No")

a = int (input())  
c = 1
if a>81:
  print("No")
else:

  for i in range(7):
    b = a/(9-i)
    
    if b.is_integer()==True and b<10:
      c = 0
    else:
      c = c*1
      if c==0:
        print("Yes")
      else:
        print("No")

a = int (input())
if a>81:
  print("No")
else:
  c = 1
  for i in range(7):
    b = a/(9-i)
    print(b)
    
    if b.is_integer()==True and b<10:
      c = 0
      print(c)
    else:
      c = c*1
      print(c)
if c==0:
  print("Yes")
else:
  print("No")

a = int (input())  

if a>81:
  print("No")
else:
  c = 1
  for i in range(9):
    b = a/(9-i)
    
    if b.is_integer()==True and b<10:
      c = 0
    else:
      c = c*1
  if c==0:
    print("Yes")
  else:
    print("No")

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

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

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 = input()
b = 0
if a >= 82:
  print("No")
else:
  for i in range(9):
    for j in range(9):
      if (i+1)*(j+1)==a:
        print("Yes")
        b = 1
        break;
if b == 0:
  print("No")

a = int(input())
b = 0
if a<= 81:
  for i in range(9):
    for j in range(9):
      if (i+1)*(j+1)==a:
        b=1
        break
if b==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):
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')

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

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

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

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

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

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


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

kk_list = []

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

print(kk_list)

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

N = int(input())

kk_list = []

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

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


Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

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

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

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

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
num=int(input())
if num>81:
    return('No')
else:
    num_list=[]
    
    for a in range(1,10):
        for b in range(1,10):
            num_list.appned(a*b)
    num_list=set(num_list)
    if num in num_list:
        print('Yes')
    else:
        print('No')

num=int(input())
if num>81:
    print('No')
else:
    num_list=[]
    
    for a in range(1,10):
        for b in range(1,10):
            num_list.append(a*b)
    num_list=set(num_list)
    if num in num_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,10):
    for j in range(1, 10):
        if i * j == N:
            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()
        else:
            continue
print("No")


Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
n=int(input())
for i in range(9):
    for j in range(9):
        k = i*j
        if n%k==0:
            print('Yes')
            exit()
        else:
            continue
print('No')


n=int(input())
for i in range(9):
    for j in range(9):
        if n%(i*j)==0:
            print('Yes')
        else:
            print('No')

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

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

for i in range(9):
  if N%(i+1)==0 and N/(i+1)<=9:
    break
    print('Yes')
  else:
    pass
    
    if N%9!=0 or N/9>9:
      print('No')
  

N=int(input())
count=0

for i in range(9):
  if N%(i+1)==0 and N/(i+1)<=9:
    pass
  else:
    count+=1

if count==9:
  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):
a = int(input())
for i in range(9):
  if(a%(i+1) ==0 and a/(i+1)<=9):
    print(i) 
    exit()
print("No")  

a = int(input())
for i in range(9):
  if(a%(i+1) ==0 and a/(i+1)<=9):
    print("Yes") 
    exit()
print("No")  

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

a = input()
f = False
for i in range(1,10):
    if a % i == 0 and a/i < 10:
        f = True
        break
if f:
    print "Yes"
else:
    print "No"

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


N = int(input())
for i in range(1,10):
    for j in range(1, 10):
        if i * j == N:
            print("Yes")
            exit()
        elif i * j == 81:
            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())
ans = 0
for i in range(1,10):
  for j in range(1,10):
    if i*j == N:
      ans += 1
      break
if ans == 1:
  print("Yes")
else:
  print("No")

N = int(input())
f = 0
for i in range(1,10):
  for j in range(1,10):
    if i*j == N:
      f += 1
      break
if f == 0:
  print("No")
else:
  print("Yes")

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(1:10):
	for j in range(i:10):
		b = i*j
        a.append(b)
if list.count(N) == 0:
	print('Yes')
else:
	print('No')


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


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


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


N = int(input())
a = [ ]
for i in range(1:10):
    for j in range(i:10):
        b = i*j
        a.append(b)
if list.count(N) == 0:
    print('Yes')
else:
    print('No')


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


Verdicts: Runtime Error

Runtime Error

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())
resurt=''
for i in range(1,10):
    if N%i ==0 and N//i<=9:  
        result='Yes'

    else:
        result='No'
print(result)


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

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

Submission attempts (in order):
n = int(input())
flag = False
for i in range(2, 10):
  flag = flag or (n/i = n//i and n//i <= 9)    
print ("Yes" if n <= 9 or (flag and n <= 81) else "No")

n = int(input())
flag = False
for i in range(2, 10):
  flag = flag or (n/i == n//i and n//i <= 9)    
print ("Yes" if n <= 9 or (flag and n <= 81) 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(1, 10):
        if n == a * b:
            print('Yes')
            return
print('No')


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

i=1
l=0
while i<10:
    if n/i==n//i and n//i<10:
        l=l+1
    i=i+1
print("yes" if l>0 else "no")

n=int(input())

i=1
l=0
while i<10:
    if n/i==n//i and n//i<9:
        l=l+1
    i=i+1
print("yes" if l>0 else "no")


n=int(input())
 
i=1
l=0
for i range (9):
    if n/i==n//i and n//i<10:
      l=l+1
print("Yes" if l>0 else "No")

n=int(input())

i=1
l=0
while i<10:
    if n/i==n//i and n//i<10:
        l=l+1
    i=i+1
print("Yes" if l>0 else "No")


Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

k = 0

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

x = int(input())
 
k = 0
 
for i in range(1,10):
  for j in range (1,10):
    if x==i*j:
      k += k+1
      
print('No') if k==0 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):
#coding: utf-8
# n,k = int(input())
# list = list(map(int,input().split()))


n = int(input())
ans = 'No'

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

print(ans)


#coding: utf-8
# n,k = int(input())
# list = list(map(int,input().split()))


n = int(input())
ans = 'No'

for i in range(1,10):
    # print(i)
    if n % i == 0 and n // i < 10:
        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):
a = map(int,input().split())
for i in range(2,10,1):
  if a % i == 0 and a/i < 10:
    print('Yes')
	return 0
print('No)

a = int(input())
for i in range(1,10,1):
  if a % i == 0 and a/i < 10:
    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):
import sys

def main():
    n = map(int, input().split())
    for i in range(1, 10, 1):
        if 1 <= n//i <= 9 and (n/i).is_integer():
            print('Yes')
            sys.exit()
    print('No')
main()

def main():
    n = map(int, input().split())
    for i in range(1, 10):
        if 1 <= n//i <= 9 and (n/i).is_integer():
            print('Yes')
        else:
            print('No')
main()

import sys

def main():
    n = map(int, input().split())
    for i in range(1, 10, 1):
        if 1 <= n//i <= 9 and (n/i).is_integer():
            print('Yes')
            sys.exit()
        else:
            print('No')
main()

def main():
    n = map(int, input().split())
    for i in range(1, 10, 1):
        if 1 <= n//i <= 9:
            print('Yes')
        else:
            print('No')
main()

import sys

def main():
    n = int(input())
    for i in range(1, 10, 1):
        if 1 <= n//i <= 9 and (n/i).is_integer():
            print('Yes')
            sys.exit()
    print('No')
    
main()

Verdicts: 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):
avail_numbers = [(i + 1) * (j + 1) for i, j in zip(range(9), range(9))]

if int(input()) in avail_numbers:
  print("Yes")
else:
  print("No")


from itertools import product as prod
avail_numbers = [(i + 1) * (j + 1) for i, j in prod(range(9), range(9))]

if int(input()) in avail_numbers:
  print("Yes")
else:
  print("No")


Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

flag=0
for i in range(1,10):
  if n%i==0:
    flag=1

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

n=int(input())

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

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


Verdicts: Runtime Error

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

ln = []

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

n = int(input())

ln = []

for i in range(1,10):
  for j in range(1,10):
    ln.append(i*j)
    
print("Yes" if n in ln 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())
L=set()
for i in range(2,9):
  for j in range(2,9):
    L.add(i*j)
if N in L:
  print(Yes)
else:
  print(No)

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

Verdicts: Wrong Answer

Accepted
Problem: Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together.  Given an integer N, determine whether N can be represented as the product of two integers between 1 and 9. If it can, print `Yes`; if it cannot, print `No`.

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

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

if n in [1,2,3,4,5,6,7,8,9,12,14,16,18,20,21,24,25,27,28,30,32,35,42,45,48,49,54,56,64,72,81]:
  print('Yes')
else:
  print('No')


n=int(input())

x=0
for i in range(1,10):
  if n%i==0 and n//i <= 9:
    x=1

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

kuku = []
for i in range(1, 10):
  for j in range(1, 10):
    kuku.append(i * j)
num = set(kuku)
n = int(input())
if(n in num):
  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())

if n <= 81:
    print('yes')
else:
    print('no')

n = int(input())
 
x = [i * j for i in range(1,10) for j in range(1,10)]

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

Verdicts: Wrong Answer

Accepted