ZhenlongDai/ACPR huggingface dataset:
Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = list(map(int, input().split()))

M = A[0]
D = A[1]
count = 0

for i in range(4,M+1):
  for j in range(22,D+1):
    print(j)
    day = list(str(j))
    m10 = int(day[0])
    m1 = int(day[1])
    if i == m10 * m1:
      count+=1
    
  

print(count)

Failing test case input:
16 57

Expected output:
16


Actual output:
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
18


Fixed submission (verdict: Accepted):
A = list(map(int, input().split()))
 
M = A[0]
D = A[1]
count = 0
 
for i in range(4,M+1):
  for j in range(22,D+1):
    day = list(str(j))
    m10 = int(day[0])
    m1 = int(day[1])
    if m10 < 2:
      continue
    elif m1 < 2:
      continue
    
    if i == m10 * m1:
      count+=1
    
  
 
print(count)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M,D = map(int,input().split())
ans = 0
for i in range(4,M+1):
    if D<22:
        print(0)
        break
    elif M<4:
        print(0)
        break
    else:
      for j in range(22,D):
           k = str(j)
           if  int(k[0])*int(k[1]) == i:
              ans += 1
print(ans)

Failing test case input:
21 94

Expected output:
27


Actual output:
33


Fixed submission (verdict: Accepted):
M,D = map(int,input().split())
ans = 0
s = []
for i in range(4,M+1):
    for j in range(22,D+1):
         k = str(j)
         if  int(k[0])*int(k[1]) == i:
             ans += 1
             s.append(i)
             s.append(j)
ans_2 = ans
for i in range(len(s)
    if s[i*2-1]%10 == 1 or s[1*2-1]
        ans_2 -= 1
print(ans_2)
Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m, d = map(int, input().split())
ans = 0
for i in range(4, m + 1):
    for j in range(22, d + 1):
        arr = str(j)
        if i == int(arr[0]) * int(arr[1]):
            ans += 1
print(ans)


Failing test case input:
9 48

Expected output:
6


Actual output:
7


Fixed submission (verdict: Accepted):
m, d = map(int, input().split())
ans = 0
for i in range(4, m + 1):
    for j in range(22, d + 1):
        arr = str(j)
        if int(arr[0]) >= 2 and int(arr[1]) >= 2 and i == int(arr[0]) * int(arr[1]):
            ans += 1
print(ans)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m,d =map(int,input().split())
cnt =0
for i in range(10,d):
    d10 = int(str(i)[0])
    d1 = int(str(i)[1])
    
    if d10 >= 2 and d1 >= 2:
        if d10 * d1 <= m:
            cnt = cnt +1
print(cnt)

Failing test case input:
12 32

Expected output:
6


Actual output:
5


Fixed submission (verdict: Accepted):
m,d =map(int,input().split())
cnt =0
for i in range(10,d+1):
    d10 = int(str(i)[0])
    d1 = int(str(i)[1])
    
    if d10 >= 2 and d1 >= 2:
        if d10 * d1 <= m:
            cnt = cnt +1
print(cnt)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def calendar():
    m, d = map(int, input().split())
    
    res = []
    for month in range(1, m + 1):
        for day in range(2, d + 1):
            for x in range(2, d + 1):
                if x * day == month:
                    temp = str(day) + str(x)
                    temp = int(temp)
                    if temp <= d:
                        res.append(temp)
    return res
 
 
calendar()

Failing test case input:
12 60

Expected output:
11


Actual output:

Fixed submission (verdict: Accepted):
def calendar():
    m, d = map(int, input().split())
    res = []
 
    for month in range(1, m + 1):
        for day in range(2, 10):
            for x in range(2, 10):
                if x * day == month:
                    temp = str(day) + str(x)
                    temp = int(temp)
                    if temp <= d:
                        res.append(temp)
    return len(res)
 
 
print(calendar())

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m, d = list(map(str, input().split()))
ans = 0

if int(d) < 22 or int(m) < 4:
    print(ans)
    exit()

for i in range(4, int(m)+1):
    for j in range(22, int(d)+1):
        if i == int(str(j)[0]) * int(str(j)[1]):
            ans += 1

print(ans)

Failing test case input:
12 48

Expected output:
10


Actual output:
11


Fixed submission (verdict: Accepted):
m, d = list(map(str, input().split()))
ans = 0

if int(d) < 22 or int(m) < 4:
    print(ans)
    exit()

for i in range(4, int(m)+1):
    for j in range(22, int(d)+1):
        if i == int(str(j)[0]) * int(str(j)[1]) and int(str(j)[0]) > 1 and int(str(j)[1]) > 1:
            ans += 1

print(ans)
Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = list(map(int, input().split()))
 
M = A[0]
D = A[1]
count = 0
 
for i in range(4,M+1):
  for j in range(22,D+1):
    day = list(str(j))
    m10 = int(day[0])
    m1 = int(day[1])
    if i == m10 * m1:
      count+=1
    
  
 
print(count)

Failing test case input:
12 60

Expected output:
11


Actual output:
13


Fixed submission (verdict: Accepted):
A = list(map(int, input().split()))
 
M = A[0]
D = A[1]
count = 0
 
for i in range(4,M+1):
  for j in range(22,D+1):
    day = list(str(j))
    m10 = int(day[0])
    m1 = int(day[1])
    if m10 < 2:
      continue
    elif m1 < 2:
      continue
    
    if i == m10 * m1:
      count+=1
    
  
 
print(count)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M, D = map(int, input().split())
cnt = 0
for m in range(1, M + 1):
    for d in range(22, D + 1):
        d1, d10 = int(str(d)[1]), int(str(d)[0])
        if d1 >= 2 and d1 * d10 == m:
            print(m, d)
            cnt += 1
print(cnt)

Failing test case input:
12 48

Expected output:
10


Actual output:
4 22
6 23
6 32
8 24
8 42
9 33
10 25
12 26
12 34
12 43
10


Fixed submission (verdict: Accepted):
M, D = map(int, input().split())
cnt = 0
for m in range(1, M + 1):
    for d in range(22, D + 1):
        d1, d10 = int(str(d)[1]), int(str(d)[0])
        if d1 >= 2 and d1 * d10 == m:
            cnt += 1
print(cnt)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
def main():
  M,D = map(int,input().split())
  if D < 22:
       print(0)
       return
  cnt = 0
  for i in range(D):
      if 2 <= (i/10) and 2 <= (i%10) and math.floor(i/10)*(i%10) <= M:
          cnt += 1
  print(cnt)
  
main()

Failing test case input:
26 38

Expected output:
15


Actual output:
14


Fixed submission (verdict: Accepted):
import math
def main():
  M,D = map(int,input().split())
  if D < 22:
       print(0)
       return
  cnt = 0
  for i in range(D + 1):
      if 2 <= (i/10) and 2 <= (i%10) and math.floor(i/10)*(i%10) <= M:
          cnt += 1
  print(cnt)
  
main()

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m,d = map(int,input().split())
ans = 0
if d < 10:
    print(ans)
else:
    for month in range(1,m+1):
        for day in range(20,d):
            if int(str(day)[0])*int(str(day)[1]) == month:
                if int(str(day)[1]) >= 2:
                    ans += 1
    print(ans)

Failing test case input:
26 28

Expected output:
7


Actual output:
6


Fixed submission (verdict: Accepted):
m,d = map(int,input().split())
ans = 0
if d < 10:
    print(ans)
else:
    for month in range(1,m+1):
        for day in range(10,d+1):
            if int(str(day)[0])*int(str(day)[1]) == month:
                if int(str(day)[1]) >= 2 and int(str(day)[0]) >= 2:
                    ans += 1
    print(ans)
Problem: p02927
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
m,d=map(int,input().split())
M=[i for i in range(4,m+1)]
if d<22:
	print(0)
else:
	c=0
	for i in range(22,d+1):
		d10=int(str(i)[0])
		d1=int(str(i)[1])
		if d1>=2:
			if d10 * d1 in M:
				print(d10*d1,i)
				c+=1
	print(c)

Failing test case input:
12 25

Expected output:
4


Actual output:
4 22
6 23
8 24
10 25
4


Fixed submission (verdict: Accepted):
m,d=map(int,input().split())
c=0
for i in range(1,m+1):
	for j in range(1,d+1):
		if j>=10:
			d10=int(str(j)[0])
			d1=int(str(j)[1])
			if d10>1 and d1>1:
				if i==d10*d1:
					
					c+=1
print(c)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m,d=map(int,input().split())
month = [i for i in range(1,m+1)]
ct=0
if d<10:
  print(0)
  exit()
for i in range(11,d+1):
  a=int(str(i)[0])
  b=int(str(i)[1])
  if a*b in month:
    ct+=1
print(ct)

Failing test case input:
12 44

Expected output:
10


Actual output:
22


Fixed submission (verdict: Accepted):
m,d=map(int,input().split())
month = [i for i in range(1,m+1)]
ct=0
if d<10:
  print(0)
  exit()
for i in range(11,d+1):
  a=int(str(i)[0])
  b=int(str(i)[1])
  if a*b in month and a>=2 and b>=2:
    ct+=1
print(ct)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M, D = map(int,input().split())

c=0
for m in range(1,M+1):
    for d in range(1,D+1):
        if d>=10:
            t=str(d)
            if int(t[0])*int(t[1]) == m:
                c+=1

print(c)

Failing test case input:
21 94

Expected output:
27


Actual output:
44


Fixed submission (verdict: Accepted):



M, D = map(int,input().split())

c=0
for m in range(1,M+1):
    for d in range(1,D+1):
        if d>=10:
            t=str(d)
            if int(t[0])>1 and int(t[1])>1 and int(t[0])*int(t[1]) == m:
                c+=1

print(c)

Problem: p02927
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
m, d = map(int, input().split())
ans = 0
for i in range(4, m + 1):
    for j in range(22, d + 1):
        if str(j)[0] == 1 or str(j)[1] == 1:
            continue
        else:
            if i == int(str(j)[0]) * int(str(j)[1]):
                ans += 1
print(ans)



Failing test case input:
16 57

Expected output:
16


Actual output:
18


Fixed submission (verdict: Accepted):
m, d = map(int, input().split())
ans = 0
for i in range(4, m + 1):
    for j in range(22, d + 1):
        if str(j)[0] != "1" and str(j)[1] != "1":
            if i == int(str(j)[0]) * int(str(j)[1]):
                ans += 1
print(ans)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M,D = list(map(int, input().strip().split()))
count = 0
for m in range(2,M+1):
    for d in range(11, D+1):
        if ((d % 10) >= 2) and (round(d / 10) >= 2) and (m == round(d / 10) * (d % 10)):
            count += 1
print(count)


Failing test case input:
24 51

Expected output:
20


Actual output:
21


Fixed submission (verdict: Accepted):
M,D = list(map(int, input().strip().split()))
count = 0
for m in range(2,M+1):
    for d in range(11, D+1):
        if ((d%10) >= 2) and (int(d/10) >= 2) and (m == int(d/10) * (d%10)):
            count+=1
print(count)
Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k = 0
m,d  = (int(i) for i in input().split()) 
listm = range(1,m+1)
listd = range(1,d)
for a in listm:
 for b in listd:
  dt = str(b)
  da = dt[0]
  da = int(da)
  if len(dt) == 2:
   db = dt[1]
   db = int(db)
   if db >= 2:
    if da >= 2:
     if a == da * db:
      if a >= 2:
       k = k + 1
       print(a,"月",b,"日")
print(k)

Failing test case input:
13 31

Expected output:
5


Actual output:
4 月 22 日
6 月 23 日
8 月 24 日
10 月 25 日
12 月 26 日
5


Fixed submission (verdict: Accepted):
k = 0
m,d  = (int(i) for i in input().split()) 
listm = range(1,m + 1)
listd = range(1,d + 1)
for a in listm:
 for b in listd:
  if len(str(b)) >= 2:
   if int(str(b)[0]) >= 2:
    if int(str(b)[1]) >= 2:
       
       if a == int(str(b)[0]) * int(str(b)[1]):
         
         k = k + 1
print(k)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M,D = map(int,input().split())
cnt = 0
if D > 21 and M > 3:
  for m in range(4,M+1):
    for d in range(22,D+1):
      a,b = divmod(d,10)
      if m == a*b:
        cnt += 1
      
print(cnt)

Failing test case input:
16 59

Expected output:
16


Actual output:
18


Fixed submission (verdict: Accepted):
M,D = map(int,input().split())
cnt = 0
if D > 21 and M > 3:
  for m in range(4,M+1):
    for d in range(22,D+1):
      a,b = divmod(d,10)
      if a > 1 and b > 1:
        if m == a*b:
          cnt += 1
      
print(cnt)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k = 0
m,d  = (int(i) for i in input().split()) 
listm = range(1,m + 1)
listd = range(1,d + 1)
for a in listm:
 for b in listd:
  
  dt = str(b)
  da = dt[0]
  da = int(da)
  if len(dt) == 2:
   db = dt[1]
   db = int(db)
   if db >= 2:
    if da >= 2:
     if a == da * db:
      if a >= 2:
       k = k + 1
       print(a,"月",b,"日")
print(k)

Failing test case input:
24 51

Expected output:
20


Actual output:
4 月 22 日
6 月 23 日
6 月 32 日
8 月 24 日
8 月 42 日
9 月 33 日
10 月 25 日
12 月 26 日
12 月 34 日
12 月 43 日
14 月 27 日
15 月 35 日
16 月 28 日
16 月 44 日
18 月 29 日
18 月 36 日
20 月 45 日
21 月 37 日
24 月 38 日
24 月 46 日
20


Fixed submission (verdict: Accepted):
k = 0
m,d  = (int(i) for i in input().split()) 
listm = range(1,m + 1)
listd = range(1,d + 1)
for a in listm:
 for b in listd:
  if len(str(b)) >= 2:
   if int(str(b)[0]) >= 2:
    if int(str(b)[1]) >= 2:
       
       if a == int(str(b)[0]) * int(str(b)[1]):
         
         k = k + 1
print(k)
Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M,D = map(int, input().split())
if M < 4 or D < 22:
    print(0)
else:
    result=0
    for m in range(4,M+1):
        for d in range(22,D+1):
            if int(str(d)[0])*int(str(d)[1])==m:
                result += 1
    print(result)

Failing test case input:
22 79

Expected output:
25


Actual output:
29


Fixed submission (verdict: Accepted):
M,D = map(int, input().split())
if M < 4 or D < 22:
    print(0)
else:
    result=0
    for m in range(4,M+1):
        for d in range(22,D+1):
            if int(str(d)[0]) >= 2 and int(str(d)[1]) >= 2 and int(str(d)[0])*int(str(d)[1])==m:
                result += 1
    print(result)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M, D  = map(int, input().split())
cnt = 0
for i in range(D):
    str = "{:02d}".format(i)
    
    d1 = str[0]
    d2 = str[1]
    if 1 <= int(d1)*int(d2) <= M and int(d1)>=2 and int(d2)>=2:
        cnt += 1
        
print(cnt)

Failing test case input:
21 63

Expected output:
23


Actual output:
22


Fixed submission (verdict: Accepted):
M, D  = map(int, input().split())
cnt = 0
for i in range(D+1):
    str = "{:02d}".format(i)
    
    d1 = str[0]
    d2 = str[1]
    if int(d1)*int(d2) <= M and int(d1)>=2 and int(d2)>=2:
        cnt += 1
        
        
print(cnt)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M,D = list(map(int, input().strip().split()))
count = 0
for m in range(2,M+1):
    for d in range(22, D+1):
        if m == round(d / 10) * (d % 10):
            count += 1
print(count)


Failing test case input:
22 79

Expected output:
25


Actual output:
26


Fixed submission (verdict: Accepted):
M,D = list(map(int, input().strip().split()))
count = 0
for m in range(2,M+1):
    for d in range(11, D+1):
        if ((d%10) >= 2) and (int(d/10) >= 2) and (m == int(d/10) * (d%10)):
            count+=1
print(count)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
input_a,input_b = map(int, input().split())

count = 0
if input_a < 4 or input_b < 22:
    print(0)
else:
    for i in range(4,input_a+1):
        for j in range(22,input_b+1):
            j1 = j % 10
            j10 = (j - j1)/10
            if j1 * j10 == i:
                count += 1
print(count)



Failing test case input:
16 57

Expected output:
16


Actual output:
18


Fixed submission (verdict: Accepted):
input_a,input_b = map(int, input().split())


count = 0

if input_a < 4 or input_b < 22:
    print(0)
    
else:
    for i in range(4, input_a+1):
        for j in range(22, input_b + 1):
            j1 = j%10
            j10 = (j-j1)/10
            if j1>=2 and j1*j10 == i:
                
                count += 1
    print(count)
Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m,d = map(int,input().split())
if len(str(d)) == 2:
	d1,d2 = str(d)[0],str(d)[1]

cnt = 0
m_list = [i+1 for i in range(m)]
if len(str(d)) == 2:
  for i in range(d):
    if i >= 20:
      d1,d2 = str(i)[0],str(i)[1]
      if d1=='1' or d2=='1':
        continue
      if int(d1)*int(d2) in m_list:
        cnt += 1
print(cnt)
    

Failing test case input:
12 25

Expected output:
4


Actual output:
3


Fixed submission (verdict: Accepted):
m,d = map(int,input().split())
if len(str(d)) == 2:
	d1,d2 = str(d)[0],str(d)[1]

cnt = 0
m_list = [i+1 for i in range(m)]

if len(str(d)) == 2:
  for i in range(d+1):
    
    if i >= 20:
      d1,d2 = str(i)[0],str(i)[1]
      if d1=='1' or d2=='1':
        continue
      if int(d1)*int(d2) in m_list:
        cnt += 1
print(cnt)

Problem: p02927
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
M, D = [int(x) for x in input().split()]
dates = list(range(22,D+1))
c = 0
 
for i in range(len(dates)):
  d1 = int(str(dates[i])[-1])
  d2 = int(str(dates[i])[-2])
  if d1*d2 <= M and d1 > 1 and d2 > 1:
    print(d1,d2)
    c += 1
print(c)

Failing test case input:
12 44

Expected output:
10


Actual output:
2 2
3 2
4 2
5 2
6 2
2 3
3 3
4 3
2 4
3 4
10


Fixed submission (verdict: Accepted):
M, D = [int(x) for x in input().split()]
dates = list(range(22,D+1))
c = 0
 
for i in range(len(dates)):
  d1 = int(str(dates[i])[-1])
  d2 = int(str(dates[i])[-2])
  if d1*d2 <= M and d1 > 1 and d2 > 1:
    
    c += 1
print(c)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M,D = map(int,input().split())
cnt = 0


for i in range(M+1):
    for j in range(D):
        if len(str(j)) >= 2:
            aaa=str(j)[-1]
            bbb=str(j)[-2]
            if int(aaa) >= 2 and int(bbb) >= 2 and int(aaa)*int(bbb) == i :
                cnt +=1
        else:
            pass
print(cnt)

Failing test case input:
30 32

Expected output:
9


Actual output:
8


Fixed submission (verdict: Accepted):
M,D = map(int,input().split())
cnt = 0


for i in range(M+1):
    for j in range(D+1):
        if len(str(j)) >= 2:
            aaa=str(j)[-1]
            bbb=str(j)[-2]
            if int(aaa) >= 2 and int(bbb) >= 2 and int(aaa)*int(bbb) == i :
                cnt +=1
        else:
            pass
print(cnt)
Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M, D = map(int, input().split())
cnt = 0

if M < 4:
    print('0')
else:
    for i in range(4, M+1):
        for j in range(22, D+1):
            j = str(j)
            jli = list(j)
            if jli[1] == '0' or jli[1] == '1':
                pass
            else:
                if int(jli[0])*int(jli[1]) == i:
                    print(i, jli)
                    cnt += 1

print(cnt)



Failing test case input:
12 94

Expected output:
12


Actual output:
4 ['2', '2']
6 ['2', '3']
6 ['3', '2']
8 ['2', '4']
8 ['4', '2']
9 ['3', '3']
10 ['2', '5']
10 ['5', '2']
12 ['2', '6']
12 ['3', '4']
12 ['4', '3']
12 ['6', '2']
12


Fixed submission (verdict: Accepted):
M, D = map(int, input().split())
cnt = 0

if M < 4:
    print('0')
else:
    for i in range(4, M+1):
        for j in range(22, D+1):
            j = str(j)
            jli = list(j)
            if jli[1] == '0' or jli[1] == '1':
                pass
            else:
                if int(jli[0])*int(jli[1]) == i:
                    
                    cnt += 1

    print(cnt)

Problem: p02927
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):



M, D = map(int, input().split())

count=0
for i in range(4, M+1):
    for j in range(22, D+1):
        str_j = str(j)
        if int(str_j[0]) <= 1:
            continue
        if (int(str_j[0]) * int(str_j[1])) == i:
            count += 1
print(count)


Failing test case input:
24 94

Expected output:
31


Actual output:
37


Fixed submission (verdict: Accepted):



M, D = map(int, input().split())

count=0
for i in range(4, M+1):
    for j in range(22, D+1):
        str_j = str(j)
        if int(str_j[1]) <= 1:
            continue
        if (int(str_j[0]) * int(str_j[1])) == i:
            count += 1
print(count)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M,D = list(map(int, input().split()))
ans = 0
for i in range(1, M+1):
    if D > 22:
        for j in range(23, D+1):
            if i == int(j/10) * int(j%10):
                ans += 1
print(ans)

Failing test case input:
16 59

Expected output:
16


Actual output:
18


Fixed submission (verdict: Accepted):
M,D = list(map(int, input().split()))
ans = 0
if M >=4:
    for i in range(4, M+1):
        if D >= 22:
            for j in range(22, D+1):
                if int(j/10) >=2 and j%10 >=2 and i == int(j/10) * int(j%10):
                    ans += 1
                    
print(ans)
Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M, D = map(int, input().split())
cnt = 0

if M < 4:
    print('0')
else:
    for i in range(4, M+1):
        for j in range(22, D+1):
            j = str(j)
            jli = list(j)
            if jli[1] == '0' or jli[1] == '1':
                pass
            else:
                if int(jli[0])*int(jli[1]) == i:
                    cnt += 1

print(cnt)



Failing test case input:
-1 32

Expected output:
0


Actual output:
0
0


Fixed submission (verdict: Accepted):
M, D = map(int, input().split())
cnt = 0

if M < 4:
    print('0')
else:
    for i in range(4, M+1):
        for j in range(22, D+1):
            j = str(j)
            jli = list(j)
            if jli[1] == '0' or jli[1] == '1':
                pass
            else:
                if int(jli[0])*int(jli[1]) == i:
                    
                    cnt += 1

    print(cnt)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def calendar():
    m, d = map(int, input().split())
    
    res = []
    for month in range(1, m + 1):
        for day in range(2, d + 1):
            for x in range(2, d + 1):
                if x * day == month:
                    temp = str(day) + str(x)
                    temp = int(temp)
                    if temp <= d:
                        res.append(temp)
    return len(res)
 
 
calendar()

Failing test case input:
19 28

Expected output:
7


Actual output:

Fixed submission (verdict: Accepted):
def calendar():
    m, d = map(int, input().split())
    res = []
 
    for month in range(1, m + 1):
        for day in range(2, 10):
            for x in range(2, 10):
                if x * day == month:
                    temp = str(day) + str(x)
                    temp = int(temp)
                    if temp <= d:
                        res.append(temp)
    return len(res)
 
 
print(calendar())

Problem: p02927
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
m,d  =map(int,input().split())
count = 0
for i in range(1,m+1):
    for j in range(d+1):
        if j < 22 or j%10<2:
            continue
        else:
            a = str(j)
            if int(a[0])*int(a[1])==i:
                count += 1
                print(i,j)
print(count)

Failing test case input:
21 38

Expected output:
14


Actual output:
4 22
6 23
6 32
8 24
9 33
10 25
12 26
12 34
14 27
15 35
16 28
18 29
18 36
21 37
14


Fixed submission (verdict: Accepted):
m,d  =map(int,input().split())
count = 0
for i in range(1,m+1):
    for j in range(d+1):
        if j < 22 or j%10<2:
            continue
        else:
            a = str(j)
            if int(a[0])*int(a[1])==i:
                count += 1
print(count)
Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m,d=map(int,input().split())
x=0
if m>=4 and d>=22:
  o=int(str(d)[1])
  t=int(str(d)[0])
  for i in range(2,t):
    if m%i==0 and m/i<10:
      x+=1
  if m%t==0 and m/t<=o:
    x+=1
print(x)

Failing test case input:
9 48

Expected output:
6


Actual output:
1


Fixed submission (verdict: Accepted):
m,d=map(int,input().split())
x=0
if m>=4 and d>=22:
  for i in range(4,m+1):
    for j in range(22,d+1):
      if j%10>1 and int(str(j)[1])*int(str(j)[0])==i:
        x+=1
print(x)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m,d = map(int,input().split())

c = 0
for j in range(1,m+1):
    d1 = 1
    d2 = 0
    for i in range(d):
        if d1 >= 2 and d2 >= 2 and d1*d2 == j:
            c += 1
        if d1 < 10:
            d1 += 1
        else:
            d1 = 0
        if d1 == 0:
            d2 += 1
            
print(c)
    

Failing test case input:
31 48

Expected output:
22


Actual output:
21


Fixed submission (verdict: Accepted):
m,d = map(int,input().split())

c = 0
for j in range(1,m+1):
    d1 = 1
    d2 = 0
    for i in range(d):
        if d1 >= 2 and d2 >= 2 and d1*d2 == j:
            c += 1
        if d1 < 9:
            d1 += 1
        else:
            d1 = 0
        if d1 == 0:
            d2 += 1
            
print(c)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m, d2 = map(int, input().split())
count = 0
for m in range(1,m+1):
    for d in range(d2):
        d = str(d)
        if len(d) < 2:
            continue
        d1 = int(d[1])
        d10 = int(d[0])
        if d10 >= 2 and d1 >= 2 and d10 * d1 == m:
            count += 1
print(count)

Failing test case input:
12 25

Expected output:
4


Actual output:
3


Fixed submission (verdict: Accepted):
m, d2 = map(int, input().split())
count = 0
for m in range(1,m+1):
    for d in range(1,d2+1):
        d = str(d)
        if len(d) < 2:
            continue
        d1 = int(d[1])
        d10 = int(d[0])
        if d10 >= 2 and d1 >= 2 and d10 * d1 == m:
            count += 1
print(count)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m,d = list(map(int, input().split())) 
cnt = 0
for  j in range(1,m+1):
    for i in range(1, d+1, 1):
        d1 = i % 10
        d2 = int(i / 10)
        if((d1 >= 2) & (d2 >= 2) & (d1 * d2 == j) ):
            cnt+=1
            print(str(j)+'月'+str(i)+'日')

Failing test case input:
9 66

Expected output:
6


Actual output:
4月22日
6月23日
6月32日
8月24日
8月42日
9月33日


Fixed submission (verdict: Accepted):
m,d = list(map(int, input().split())) 
cnt = 0
for  j in range(1,m+1):
    for i in range(1, d+1, 1):
        d1 = i % 10
        d2 = int(i / 10)
        if((d1 >= 2) & (d2 >= 2) & (d1 * d2 == j) ):
            cnt+=1
print(cnt)
Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m,d=map(int,input().split())
x=0
if m>=4 and d>=22:
  o=int(str(d)[1])
  t=int(str(d)[0])
  for j in range(4,m+1):
    for i in range(2,t):
      if j%i==0 and j/i<10:
        x+=1
    if j%t==0 and j/t<=o:
      x+=1
print(x)

Failing test case input:
24 94

Expected output:
31


Actual output:
37


Fixed submission (verdict: Accepted):
m,d=map(int,input().split())
x=0
if m>=4 and d>=22:
  for i in range(4,m+1):
    for j in range(22,d+1):
      if j%10>1 and int(str(j)[1])*int(str(j)[0])==i:
        x+=1
print(x)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m,d=input().split()
m,d=int(m),int(d)

c=0
if d<22:
    print(0)
else:
    for j in range(m):
        for i in range(d-22):
            d1,d10=int(str(i+22)[1]),int(str(i+22)[0])
            
            
            if d1>1 and d10>1 and d1*d10==j+1:
                c+=1
                print(j+1,i+22)
    print(c)


Failing test case input:
16 59

Expected output:
16


Actual output:
4 22
6 23
6 32
8 24
8 42
9 33
10 25
10 52
12 26
12 34
12 43
14 27
15 35
15 53
16 28
16 44
16


Fixed submission (verdict: Accepted):
m,d=input().split()
m,d=int(m),int(d)

c=0
if d<22:
    print(0)
else:
    for j in range(m):
        for i in range(d-21):
            d1,d10=int(str(i+22)[1]),int(str(i+22)[0])
            
            
            if d1>1 and d10>1 and d1*d10==j+1:
                c+=1
                
    print(c)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m, d = map(int, input().split())
if m < 4 or d < 22:
  print("0")
else:
  res=0
  for i in range(22, d+1):
    d1, d2 = int(d/10), d%10
    res += 1 if d1*d2<=m else 0
  print(res)

Failing test case input:
12 60

Expected output:
11


Actual output:
39


Fixed submission (verdict: Accepted):
m, d = map(int, input().split())
if m < 4 or d < 22:
  print("0")
else:
  res=0
  for i in range(22, d+1):
    d1, d2 = int(i/10), i%10
    if d2 < 2:
      continue
    res += 1 if d1*d2<=m else 0
  print(res)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
[M, D] = map(int, input().split())

count = 0
for d in range(22, D):
    d10 = int(d / 10)
    d1 = d - d10 * 10
    if (d1 >= 2) and (d10 >= 2) and (M >= d10 * d1):
        count += 1

print(count)

Failing test case input:
12 25

Expected output:
4


Actual output:
3


Fixed submission (verdict: Accepted):
[M, D] = map(int, input().split())

count = 0
for d in range(22, D+1):
    d10 = int(d / 10)
    d1 = d - d10 * 10
    if (d1 >= 2) and (d10 >= 2) and (M >= d10 * d1):
        count += 1

print(count)
Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M,D = map(int,input().split())

ans = 0
for m in range(4,M+1):
    for d in range(22,D+1):
        d = str(d)
        da = d[0]
        db = d[1]
        if m == int(da)*int(db):
            ans += 1
print(ans)

Failing test case input:
12 58

Expected output:
11


Actual output:
13


Fixed submission (verdict: Accepted):
M,D = map(int,input().split())

ans = 0
for m in range(4,M+1):
    for d in range(22,D+1):
        d = str(d)
        da = d[0]
        db = d[1]
        if int(db) < 2:continue
        if m == int(da)*int(db):
            ans += 1
print(ans)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M,D=[int(i) for i in input().split()]

if D<10:
  print(0)
else :
  count = 0
  for i in range(1,M+1):
    for id in list(range(10, D+1)):
      if ( int(str(id)[0]))*int((str(id))[1]) == i :
         count += 1
  print(count)


Failing test case input:
18 58

Expected output:
18


Actual output:
31


Fixed submission (verdict: Accepted):
M,D=[int(i) for i in input().split()]

if D<20:
  print(0)
else :
  count = 0
  for i in range(1,M+1):
    for id in list(range(20, D+1)):
      if int((str(id))[1]) >= 2 and ( int(str(id)[0]))*int((str(id))[1]) == i :
         count += 1
  print(count)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def find(M,D):
    count=0
    for m in range(1,M+1):
        for d in range(1,D):
            if len(str(d))==2:
                d0=int(str(d)[0])
                d1=int(str(d)[1])
                if d0>1 and d1>1:
                    if d0*d1==m:
                        count+=1
    return count
M,D=list(map(int,input().strip().split(' ')))
print(find(M,D))

Failing test case input:
30 32

Expected output:
9


Actual output:
8


Fixed submission (verdict: Accepted):
def find(M,D):
    count=0
    for m in range(1,M+1):
        for d in range(1,D+1):
            if len(str(d))==2:
                d0=int(str(d)[0])
                d1=int(str(d)[1])
                if d0>1 and d1>1:
                    if d0*d1==m:
                        count+=1
    return count
M,D=list(map(int,input().strip().split(' ')))
print(find(M,D))

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m,d=map(int,input().split())
x=0
if d>99:
  d=99
if m>=4 and d>=22:
  o=int(str(d)[1])
  t=int(str(d)[0])
  for j in range(4,m+1):
    for i in range(2,t):
      if j%i==0 and j/i<10:
        x+=1
    if j%t==0 and j/t<=o:
      x+=1
print(x)

Failing test case input:
12 60

Expected output:
11


Actual output:
13


Fixed submission (verdict: Accepted):
m,d=map(int,input().split())
x=0
if m>=4 and d>=22:
  for i in range(4,m+1):
    for j in range(22,d+1):
      if j%10>1 and int(str(j)[1])*int(str(j)[0])==i:
        x+=1
print(x)
Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
def main():
  M,D = map(int,input().split())
  if D < 22:
       print(0)
       print(D)
       return
  cnt = 0
  for i in range(D):
      if 2 <= (i/10) and 2 <= (i%10) and math.floor(i/10)*(i%10) <= M:
          cnt += 1
  print(cnt)
  
main()

Failing test case input:
21 63

Expected output:
23


Actual output:
22


Fixed submission (verdict: Accepted):
import math
def main():
  M,D = map(int,input().split())
  if D < 22:
       print(0)
       return
  cnt = 0
  for i in range(D + 1):
      if 2 <= (i/10) and 2 <= (i%10) and math.floor(i/10)*(i%10) <= M:
          cnt += 1
  print(cnt)
  
main()

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m,d = map(int,input().split())
count=0
for i in range(4,m+1):
  for j in range(22,d+1):
    if i==int(str(j)[0])*int(str(j)[1]):
      count+=1
print(count)

Failing test case input:
16 57

Expected output:
16


Actual output:
18


Fixed submission (verdict: Accepted):
m,d = map(int,input().split())
count=0
for i in range(4,m+1):
  for j in range(22,d+1):
    if i==int(str(j)[0])*int(str(j)[1]) and int(str(j)[1])!=0 and int(str(j)[1])!=1:
      count+=1
print(count)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M, D = map(int, input().split())
for i in range(M+1):
    for j in range(D+1):
        d10 = int(j /10)
        d1 = int(j % 10)
        if d10 >=2 and d1 >=2 and d10 * d1 ==i:
            print("{}月{}日".format(i, j))

Failing test case input:
12 32

Expected output:
6


Actual output:
4月22日
6月23日
6月32日
8月24日
10月25日
12月26日


Fixed submission (verdict: Accepted):
M, D = map(int, input().split())
count = 0
for i in range(M+1):
    for j in range(D+1):
        d10 = int(j /10)
        d1 = int(j % 10)
        if d10 >=2 and d1 >=2 and d10 * d1 ==i:
            count += 1
print(count)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=list(map(int,input().split())),0
for i in range(a[0]):
    for j in range(a[1]):
        if len(str(j))==2:
            if int(str(j)[0])*int(str(j)[1])==i+1 and int(str(j)[0])>=2 and int(str(j)[1])>=2 :
                b+=1
print(b)

Failing test case input:
19 28

Expected output:
7


Actual output:
6


Fixed submission (verdict: Accepted):
a,b=list(map(int,input().split())),0
for i in range(a[0]):
    for j in range(a[1]):
        if len(str(j))==2:
            if (int(str(j)[0]))*(int(str(j)[1])+1)==i+1 and int(str(j)[0])>=2 and int(str(j+1)[1])>=2:
                b+=1
print(b)

Problem: p02927
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
m,d = map(int,input().split())
ans = 0
for m in range(1,m+1):
  for i in range(22,d+1):
    d0 = i%10
    d1 = int(i/10)
    if m == d0 * d1:
      ans += 1
print(ans)

Failing test case input:
18 58

Expected output:
18


Actual output:
21


Fixed submission (verdict: Accepted):
m,d = map(int,input().split())
ans = 0
for i in range(22,d+1):
  d0 = i%10
  d1 = int(i/10)
  if d0 == 1 or d0 == 0:
    continue
  if m >= d0 * d1:
    ans += 1
    
print(ans)
Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m,d = map(int, input().split())
res = 0
for i in range(1,m+1):
  for j in range(1,d+1):
    if j >= 22 and j % 10 >= 2 and int(str(j)[0]) * int(str(j)[1]) == i:
      res += 1
      print(i,j)
print(res)


Failing test case input:
14 68

Expected output:
13


Actual output:
4 22
6 23
6 32
8 24
8 42
9 33
10 25
10 52
12 26
12 34
12 43
12 62
14 27
13


Fixed submission (verdict: Accepted):
m,d = map(int, input().split())
res = 0
for i in range(1,m+1):
  for j in range(1,d+1):
    if j >= 22 and j % 10 >= 2 and int(str(j)[0]) * int(str(j)[1]) == i:
      res += 1
print(res)

Problem: p02927
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):


import sys
input = sys.stdin.readline

M,D = map(int, input().split())
ans = 0
for i in range(4, M+1):
    for j in range(22, D+1):
        if int(j/10) * int(j - int(j/10)*10) == i:
            ans += 1

print(ans)


Failing test case input:
12 58

Expected output:
11


Actual output:
13


Fixed submission (verdict: Accepted):


import sys
input = sys.stdin.readline

M,D = map(int, input().split())
ans = 0
for i in range(1, M+1):
    for j in range(22, D+1):
        a = int(str(j)[0])
        b = int(str(j)[1])
        if a >= 2 and b >= 2:
            if a * b == i:
                ans += 1

print(ans)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M, D = map(int, input().split())
my_list = []
for i in range(1, D + 1): 
    new = []
    number = list(str(i))
    for t in range(0, len(number)):
        new.append(int(number[t]))
    if len(new) == 1:
        continue
    else:
        if new[0] >= 2 and new[1] >= 2:
            for k in range(1, M + 1): 
                if k == (new[0] * new[1]):
                    my_list.append(k)
                    my_list.append(i)
                else:
                    continue
        else:
            continue
print(len(my_list) / 2)


Failing test case input:
1 69

Expected output:
0


Actual output:
0.0


Fixed submission (verdict: Accepted):
M, D = map(int, input().split())
my_list = []
for i in range(1, D + 1): 
    new = []
    number = list(str(i))
    for t in range(0, len(number)):
        new.append(int(number[t]))
    if len(new) == 1:
        continue
    else:
        if new[0] >= 2 and new[1] >= 2:
            for k in range(1, M + 1): 
                if k == (new[0] * new[1]):
                    my_list.append(k)
                    my_list.append(i)
                else:
                    continue
        else:
            continue
print(int(len(my_list) / 2))
Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m,d=map(int, input().split())
ans=0
if d<=21:
    print(0)
else:
    for i in range(1,m+1):
        for j in range(22,d+1):
            if int(str(j)[0])*int(str(j)[1])==i and int(str(j)[1])>=2:
                print(i,j)
                ans+=1
    print(ans)

Failing test case input:
26 38

Expected output:
15


Actual output:
4 22
6 23
6 32
8 24
9 33
10 25
12 26
12 34
14 27
15 35
16 28
18 29
18 36
21 37
24 38
15


Fixed submission (verdict: Accepted):
m,d=map(int, input().split())
ans=0
if d<=21:
    print(0)
else:
    for i in range(1,m+1):
        for j in range(22,d+1):
            if int(str(j)[0])*int(str(j)[1])==i and int(str(j)[1])>=2:
                ans+=1
    print(ans)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M,D = map(int,input().split())
cnt = 0

for i in range(M+1):
    for j in range(D):
        if len(str(j)) >= 2:
            aaa=str(j)[-1]
            bbb=str(j)[-2]
            if int(aaa) >= 2 and int(bbb) >= 2 and int(aaa)*int(bbb) == i :
                print(bbb+aaa)
                cnt +=1
        else:
            pass

Failing test case input:
12 60

Expected output:
11


Actual output:
22
23
32
24
42
33
25
52
26
34
43


Fixed submission (verdict: Accepted):
M,D = map(int,input().split())
cnt = 0


for i in range(M+1):
    for j in range(D+1):
        if len(str(j)) >= 2:
            aaa=str(j)[-1]
            bbb=str(j)[-2]
            if int(aaa) >= 2 and int(bbb) >= 2 and int(aaa)*int(bbb) == i :
                cnt +=1
        else:
            pass
print(cnt)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M,D = map(int,input().split())
cnt = 0


for i in range(M+1):
    for j in range(D):
        if len(str(j)) >= 2:
            aaa=str(j)[-1]
            bbb=str(j)[-2]
            if int(aaa) >= 2 and int(bbb) >= 2 and int(aaa)*int(bbb) == i :
                print(bbb+aaa)
                cnt +=1
        else:
            pass
print(cnt)

Failing test case input:
26 38

Expected output:
15


Actual output:
22
23
32
24
33
25
26
34
27
35
28
29
36
37
14


Fixed submission (verdict: Accepted):
M,D = map(int,input().split())
cnt = 0


for i in range(M+1):
    for j in range(D+1):
        if len(str(j)) >= 2:
            aaa=str(j)[-1]
            bbb=str(j)[-2]
            if int(aaa) >= 2 and int(bbb) >= 2 and int(aaa)*int(bbb) == i :
                cnt +=1
        else:
            pass
print(cnt)

Problem: p02927
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):



M, D = map(int, input().split())

count=0
for i in range(4, M+1):
    for j in range(22, D+1):
        str_j = str(j)
        if (int(str_j[0]) * int(str_j[1])) == i:
            count += 1
print(count)


Failing test case input:
12 94

Expected output:
12


Actual output:
18


Fixed submission (verdict: Accepted):



M, D = map(int, input().split())

count=0
for i in range(4, M+1):
    for j in range(22, D+1):
        str_j = str(j)
        if int(str_j[1]) <= 1:
            continue
        if (int(str_j[0]) * int(str_j[1])) == i:
            count += 1
print(count)
Problem: p02927
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
m,d=map(int,input().split())
ans=0
for i in range(1,m+1):
  for j in range(22,d+1):
    if j%10>=2 and (j/10)*(j%10)==i:
      ans=ans+1
print(ans)

Failing test case input:
21 94

Expected output:
27


Actual output:
0


Fixed submission (verdict: Accepted):
m,d=map(int,input().split())
ans=0
for i in range(1,m+1):
  for j in range(22,d+1):
    if j%10>=2 and (j
      ans=ans+1
print(ans)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m,d = map(int,input().split())

ans = 0
if(d > 21):
    for i in range(1,m+1):
        for j in range(22,d):
            d1 = int(str(j)[1])
            d10 = int(str(j)[0])
            if(d1 > 1):
                if (d1 * d10 == i):
                    ans+=1
                        
print(ans)
                

Failing test case input:
26 28

Expected output:
7


Actual output:
6


Fixed submission (verdict: Accepted):
m,d = map(int,input().split())

ans = 0
if(d > 21):
    for i in range(1,m+1):
        for j in range(22,d+1):
            d1 = int(str(j)[1])
            d10 = int(str(j)[0])
            if(d1 > 1):
                if (d1 * d10 == i):
                    ans+=1
                        
print(ans)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m,d=map(int,input().split())
x=0
if m>=4 and d>=22:
  for i in range(4,m+1):
    for j in range(22,d+1):
      if int(str(d)[1])*int(str(d)[0])==i:
        x+=1
print(x)

Failing test case input:
22 79

Expected output:
25


Actual output:
0


Fixed submission (verdict: Accepted):
m,d=map(int,input().split())
x=0
if m>=4 and d>=22:
  for i in range(4,m+1):
    for j in range(22,d+1):
      if j%10>1 and int(str(j)[1])*int(str(j)[0])==i:
        x+=1
print(x)

Problem: p02927
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
m, d = map(int, input().split())
count = 0
for i in range(2, 11):
    for j in range(2, 11):
        if 10 * i + j <= d and i * j <= m:
            count += 1
print(count)

Failing test case input:
21 38

Expected output:
14


Actual output:
15


Fixed submission (verdict: Accepted):
m, d = map(int, input().split())
count = 0
for i in range(2, 10):
    for j in range(2, 10):
        if 10 * i + j <= d and i * j <= m:
            count += 1
print(count)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M, D = map(int, input().split())
count = 0
for m in range(1, M+1):
    for i in range(2, 9):
        for j in range(2, 9):
            if (i*10 + j) > D:
                break
            if (i * j) == m:
                count += 1
        
print(count)

Failing test case input:
21 63

Expected output:
23


Actual output:
22


Fixed submission (verdict: Accepted):
M, D = map(int, input().split())
count = 0
for m in range(1, M+1):
    for i in range(2, 10):
        for j in range(2, 10):
            if (i*10 + j) > D:
                break
            if (i * j) == m:
                count += 1
        
print(count)
Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
MD = [int(i) for i in input().split()]

c = 0
for m in range(1, MD[0] + 1):
    for d in range(1, MD[1] + 1):
        if d < 22:
            continue
        d1  = d % 10
        d10 = (d - d1) /10


        if m == d1 * d10:
            
            c+=1

print(c  )

Failing test case input:
9 57

Expected output:
6


Actual output:
9


Fixed submission (verdict: Accepted):
MD = [int(i) for i in input().split()]

c = 0
for m in range(1, MD[0] + 1):
    for d in range(1, MD[1] + 1):
        
        d1  = d % 10
        d10 = (d - d1) /10
        if d1 < 2 or d10 <2:
            continue

        if m == d1 * d10:
            
            c+=1

print(c  )

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M,D = list(map(int, input().split()))
ans = 0
for i in range(1, M+1):
    if int(D/10) >=2 and D%10 >= 2:
        for j in range(23, D+1):
            if i == int(j/10) * int(j%10):
                ans += 1
print(ans)
        

Failing test case input:
21 63

Expected output:
23


Actual output:
26


Fixed submission (verdict: Accepted):
M,D = list(map(int, input().split()))
ans = 0
if M >=4:
    for i in range(4, M+1):
        if D >= 22:
            for j in range(22, D+1):
                if int(j/10) >=2 and j%10 >=2 and i == int(j/10) * int(j%10):
                    ans += 1
                    
print(ans)

Problem: p02927
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
M, D = [int(x) for x in input().split()]
dates = list(range(22,D))
c = 0

for i in range(len(dates)):
  d1 = int(str(dates[i])[-1])
  d2 = int(str(dates[i])[-2])
  if d1*d2 <= M and d1 != 1 and d2 != 1 and d2 != 0 and d1 != 0:
    c += 1
print(c)

Failing test case input:
12 32

Expected output:
6


Actual output:
5


Fixed submission (verdict: Accepted):
M, D = [int(x) for x in input().split()]
dates = list(range(22,D+1))
c = 0
 
for i in range(len(dates)):
  d1 = int(str(dates[i])[-1])
  d2 = int(str(dates[i])[-2])
  if d1*d2 <= M and d1 > 1 and d2 > 1:
    
    c += 1
print(c)

Problem: p02927
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m,d=map(int,input().split())
ans=0

for M in range(2,m+1):

    for D1 in range(2,9):
        for D2 in range(2,int(str(d)[0])+1):
            if int(str(D2)+str(D1))<=d:
                if M==D1*D2:
                    ans+=1

print(ans)

Failing test case input:
24 51

Expected output:
20


Actual output:
19


Fixed submission (verdict: Accepted):
M,D=map(int,input().split())

if D<=21:
    print(0)
    exit()
ans=0
for i in range(4,M+1):
    for j in range(22,D+1):
        D1=int(str(j)[0])
        D2=int(str(j)[1])
        if i==D1*D2 and D1!=1 and D2!=1:
            ans+=1
            
print(ans)