ZhenlongDai/ACPR huggingface dataset:
Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = [i for i in input().split()]
A = a*int(b)
B = b*int(a)

if A > B:
  print(B)
  exit()

print(B)

Failing test case input:
10 25

Expected output:
10101010101010101010101010101010101010101010101010


Actual output:
25252525252525252525


Fixed submission (verdict: Accepted):
a, b = [i for i in input().split()]
A = a*int(b)
B = b*int(a)

if A > B:
  print(B)
  exit()

print(A)

Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
min(str(a)*b,str(b)*a)

Failing test case input:
67 1

Expected output:
1111111111111111111111111111111111111111111111111111111111111111111


Actual output:

Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
print(min(str(a)*b,str(b)*a))

Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
hai1=[]
hai2=[]
for k in range(0,a):
  hai1.append(str(b))
for i in range(0,b):
  hai2.append(str(a))
ak="".join(hai1)
bk="".join(hai2)
c=[0]*2
c[0]=int(ak)
c[1]=int(bk)
c.sort()
print(c[0])

Failing test case input:
10 33

Expected output:
101010101010101010101010101010101010101010101010101010101010101010


Actual output:
33333333333333333333


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
hai1=[]
hai2=[]
for k in range(0,a):
  hai1.append(str(b))
for i in range(0,b):
  hai2.append(str(a))
ak="".join(hai1)
bk="".join(hai2)
c=[0]*2
c[0]=ak
c[1]=bk
c.sort()
print(int(c[0]))

Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = input().split()

A = a*int(b)
B = b*int(a)

print(min(int(A),int(B)))


Failing test case input:
37 14

Expected output:
14141414141414141414141414141414141414141414141414141414141414141414141414


Actual output:
3737373737373737373737373737


Fixed submission (verdict: Accepted):
a,b = input().split()

A = a*int(b)
B = b*int(a)

print(str(max(int(A),int(B))))

Problem: p02790
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a, b = map(int, input().split())
print('a'*b if a <= b else 'b'*a)

Failing test case input:
20 12

Expected output:
1212121212121212121212121212121212121212


Actual output:
bbbbbbbbbbbbbbbbbbbb


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
print('{}'.format(a)*b if a <= b else '{}'.format(b)*a)

Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a<=b:
  print('a'*b)
else:
  print('b'*a)

Failing test case input:
10 33

Expected output:
101010101010101010101010101010101010101010101010101010101010101010


Actual output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a<=b:
  print(str(a)*b)
else:
  print(str(b)*a)
Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int, input().split())
ans = ""
if a>b:
    for i in range(a):
        ans = ans + str(a)
    print(int(ans))
else:
    for i in range(b):
        ans = ans + str(b)
    print(int(ans))

Failing test case input:
10 25

Expected output:
10101010101010101010101010101010101010101010101010


Actual output:
25252525252525252525252525252525252525252525252525


Fixed submission (verdict: Accepted):
a,b = list(map(int, input().split()))

ans = ""
if a>b:
    for i in range(a):
        ans = ans + str(b)
    print(ans)
else:
    for i in range(b):
        ans = ans + str(a)
    print(ans)

Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())

m=max(a,b)
ans=''
for i in range(m):
    ans+=str(m)
print(ans)


Failing test case input:
1 76

Expected output:
1111111111111111111111111111111111111111111111111111111111111111111111111111


Actual output:
76767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())

mi=min(a,b)
ma=max(a,b)
ans=''
for i in range(ma):
    ans+=str(mi)
print(ans)

Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int, input().split())
if a > b:
  print(str(a)*b)
else:
  print(str(b)*a)

Failing test case input:
10 22

Expected output:
10101010101010101010101010101010101010101010


Actual output:
22222222222222222222


Fixed submission (verdict: Accepted):
a,b = map(int, input().split())
if a > b:
  print(str(b)*a)
else:
  print(str(a)*b)

Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b  =map(int,input().split())
if a >= b:
  print(str(a) * b)
else:
  print(str(b) * a)

Failing test case input:
10 25

Expected output:
10101010101010101010101010101010101010101010101010


Actual output:
25252525252525252525


Fixed submission (verdict: Accepted):
a,b  =map(int,input().split())
if a >= b:
  print(str(b) * a)
else:
  print(str(a) * b)

Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = [i for i in input().split()]
A = a*int(b)
B = b*int(a)

if int(A) > int(B):
  print(B)
  exit()

print(B)

Failing test case input:
10 33

Expected output:
101010101010101010101010101010101010101010101010101010101010101010


Actual output:
33333333333333333333


Fixed submission (verdict: Accepted):
a, b = [i for i in input().split()]
A = a*int(b)
B = b*int(a)

if A > B:
  print(B)
  exit()

print(A)

Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, m = input().strip().split()
if(n<m):
  for i in range(int(m)):
    print(n)
else:
  for i in range(int(n)):
    print(m)

Failing test case input:
10 25

Expected output:
10101010101010101010101010101010101010101010101010


Actual output:
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10


Fixed submission (verdict: Accepted):
n, m = input().strip().split()
a = ""
if(n<m):
  for i in range(int(m)):
    a += n
else:
  for i in range(int(n)):
    a += m
print(a)
Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = input().split()
A = a*int(b)
B = b*int(a)

if A > B:
    print(A)
elif A < B:
    print(B)
else:
    print(A)

Failing test case input:
37 14

Expected output:
14141414141414141414141414141414141414141414141414141414141414141414141414


Actual output:
3737373737373737373737373737


Fixed submission (verdict: Accepted):
a,b = input().split()
A = a*int(b)
B = b*int(a)

if A > B:
    print(B)
elif A < B:
    print(A)
else:
    print(A)

Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
n=""
if a<b:
    for i in range(a):
        n=(str(n)+str(a))
    print(n)
else:
    for i in range(b):
        n=(str(n)+str(b))
    print(n)


Failing test case input:
1 76

Expected output:
1111111111111111111111111111111111111111111111111111111111111111111111111111


Actual output:
1


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
n=""
if a>b:
    for i in range(a):
        n=(str(n)+str(b))
    print(n)
else:
    for i in range(b):
        n=(str(n)+str(a))
    print(n)

Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(str,input().split())
A=""
for i in range(int(a)):
    A=A+a
B=""
for i in range(int(b)):
    B=B+b


print(min(A,B))

Failing test case input:
20 12

Expected output:
1212121212121212121212121212121212121212


Actual output:
121212121212121212121212


Fixed submission (verdict: Accepted):
a,b=map(str,input().split())
A=""
for i in range(int(b)):
    A=A+a
B=""
for i in range(int(a)):
    B=B+b


print(min(A,B))

Problem: p02790
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b = map(int,input().split())
A = ""
B = ""
for i in range(0,b):
    A += str(b)
for j in range(0,a):
    B += str(a)
print(sorted([A,B])[0])

Failing test case input:
67 1

Expected output:
1111111111111111111111111111111111111111111111111111111111111111111


Actual output:
1


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
A = ""
B = ""
for i in range(0,b):
    A += str(a)
for j in range(0,a):
    B += str(b)
print(sorted([A,B])[0])

Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a>b:
  print(str(a)*b)
elif a<b:
  print(str(b)*a)
else:
  print(str(a)*b)

Failing test case input:
37 14

Expected output:
14141414141414141414141414141414141414141414141414141414141414141414141414


Actual output:
3737373737373737373737373737


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a>b:
  print(int(str(b)*a))
elif a<b:
  print(int(str(a)*b))
else:
  print(int(str(a)*b))
Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=(int(x) for x in input().split())
i = 0
if a > b:
  while i < b:
    print(str(a), end="")
    i += 1
else:
  while i < a:
    print(str(b), end="")
    i += 1

Failing test case input:
67 1

Expected output:
1111111111111111111111111111111111111111111111111111111111111111111


Actual output:
67

Fixed submission (verdict: Accepted):
a,b=(int(x) for x in input().split())
i = 0
if a > b:
  while i < a:
    print(str(b), end="")
    i += 1
else:
  while i < b:
    print(str(a), end="")
    i += 1

Problem: p02790
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a , b  = map(int,input().split())
print(min( int( str(a) * b) , int( str(b) * a)))

Failing test case input:
67 1

Expected output:
1111111111111111111111111111111111111111111111111111111111111111111


Actual output:
67


Fixed submission (verdict: Accepted):
a , b  = map(int,input().split())
print(min(str(a) * b ,str(b) * a))

Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(str,input().split())
AB = A * int(B)
BA = B * int(A)

if A > B:
    print(AB)
elif A < B:
    print(BA)
else:
    print(AB)

Failing test case input:
37 14

Expected output:
14141414141414141414141414141414141414141414141414141414141414141414141414


Actual output:
3737373737373737373737373737


Fixed submission (verdict: Accepted):
A,B = map(str,input().split())
AB = A * int(B)
BA = B * int(A)

if A < B:
    print(AB)
elif A > B:
    print(BA)
else:
    print(AB)

Problem: p02790
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a,b=map(int,input().split())
S=max(a,b)
T=min(a,b)
A=[T for z in range(S)]
print(*A)

Failing test case input:
32 18

Expected output:
1818181818181818181818181818181818181818181818181818181818181818


Actual output:
18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
S=max(a,b)
T=min(a,b)
B=str(T)
for i in range(S-1):
  B=B+str(T)
print(B)

Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
M = input().split()
i = 0
a = ''
b = ''
c = [0,0]
for i in range(int(M[0])):
    a += str(M[1])
for i in range(int(M[1])):
    b += str(M[0])
c[0] = int(a)
c[1] = int(b)  
c.sort()
print(c[0])

Failing test case input:
10 40

Expected output:
10101010101010101010101010101010101010101010101010101010101010101010101010101010


Actual output:
40404040404040404040


Fixed submission (verdict: Accepted):
M = input().split()
i = 0
a = ''
b = ''
c = [0,0]
for i in range(int(M[0])):
    a += str(M[1])
for i in range(int(M[1])):
    b += str(M[0])
c[0] = int(a)
c[1] = int(b)  
c.sort()
print(str(c[1]))
Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
num = list(map(int, input().split()))

if num[0] == num[1]:
  max = num[0]
  min = num[1]
else:
  max = max(num[0],num[1])
  min = min(num[0],num[1])
  
print(str(max)*min)

Failing test case input:
10 25

Expected output:
10101010101010101010101010101010101010101010101010


Actual output:
25252525252525252525


Fixed submission (verdict: Accepted):
num = list(map(int, input().split()))

if num[0] == num[1]:
  max = num[0]
  min = num[1]
else:
  max = max(num[0],num[1])
  min = min(num[0],num[1])
  
print(str(min)*max)

Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
print(str(max(a,b))*(min(a,b)))

Failing test case input:
10 22

Expected output:
10101010101010101010101010101010101010101010


Actual output:
22222222222222222222


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
print(str(min(a,b))*(max(a,b)))

Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

a, b = map(str, input().split())

A = int(a * int(b))
B = int(b * int(a))

if A > B:
  print(A)
else:
  print(B)
  
print(B)

Failing test case input:
1 76

Expected output:
1111111111111111111111111111111111111111111111111111111111111111111111111111


Actual output:
1111111111111111111111111111111111111111111111111111111111111111111111111111
76


Fixed submission (verdict: Accepted):
a, b = map(str, input().split())

A = int(a * int(b))
B = int(b * int(a))

if A > B:
  print(A)
else:
  print(B)

Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b= input().split()
x=int(a*int(b))
y=int(b*int(a))
c=[x,y]
c=sorted(c)
print(c[0])

Failing test case input:
10 40

Expected output:
10101010101010101010101010101010101010101010101010101010101010101010101010101010


Actual output:
40404040404040404040


Fixed submission (verdict: Accepted):
a,b= input().split()
x=int(a*int(b))
y=int(b*int(a))

if x>y:print(x)
else:print(y)

Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = list(input().split())

ab = a * int(b)
ba = b * int(a)

if ab <= ab:
  print(ab)
else:
  print(ba)

Failing test case input:
67 1

Expected output:
1111111111111111111111111111111111111111111111111111111111111111111


Actual output:
67


Fixed submission (verdict: Accepted):
a, b = list(input().split())

ab = a * int(b)
ba = b * int(a)

if ab <= ba:
  print(ab)
else:
  print(ba)

Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
aStr = str()
bStr = str()

for i in range(b + 1):
    aStr = aStr + str(a)

for i in range(a + 1):
    bStr = bStr + str(b)

lst = list()
lst.append(aStr)
lst.append(bStr)
lst.sort()
print(lst[0])


Failing test case input:
10 22

Expected output:
10101010101010101010101010101010101010101010


Actual output:
1010101010101010101010101010101010101010101010


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
aStr = str()
bStr = str()

for i in range(b):
    aStr = aStr + str(a)

for i in range(a):
    bStr = bStr + str(b)

if aStr > bStr:
    print(bStr)
else:
    print(aStr)
Problem: p02790
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b = map(int, input().split())
print(str(a)*b if a>=b else str(b)*a)

Failing test case input:
1 76

Expected output:
1111111111111111111111111111111111111111111111111111111111111111111111111111


Actual output:
76


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
print(str(a)*b if a<=b else str(b)*a)

Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
print(str(max(a,b))*min(a,b))

Failing test case input:
1 76

Expected output:
1111111111111111111111111111111111111111111111111111111111111111111111111111


Actual output:
76


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
print(str(min(a,b))*max(a,b))

Problem: p02790
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = list(map(int, input().split()))

aa = str(a)
bb = ''
for i in range(a):
	bb += str(b)

for i in range(b):
	aa += str(a)


if int(aa) > int(bb):
	print(bb)
else:
	print(aa)


Failing test case input:
67 1

Expected output:
1111111111111111111111111111111111111111111111111111111111111111111


Actual output:
6767


Fixed submission (verdict: Accepted):
a, b = list(map(int, input().split()))

aa = ''
bb = ''
for i in range(a):
	bb += str(b)

for i in range(b):
	aa += str(a)


if aa > bb:
	print(bb)
else:
	print(aa)
Problem: p00020
Buggy submission (Python3, verdict: Wrong Answer):


sentence = input()
sentence.upper()
print(sentence)

Failing test case input:
isit si a .ngq

Expected output:
ISIT SI A .NGQ


Actual output:
isit si a .ngq


Fixed submission (verdict: Accepted):


sentence = input()
sentence = sentence.upper()
print(sentence)

Problem: p00020
Buggy submission (Python3, verdict: Wrong Answer):


sentence = input()
sentence.capitalize()
print(sentence)

Failing test case input:
isht sk b nfp/

Expected output:
ISHT SK B NFP/


Actual output:
isht sk b nfp/


Fixed submission (verdict: Accepted):


sentence = input()
sentence = sentence.upper()
print(sentence)
Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
D, X = map(int, input().split())

ans = X
for j in range(N):
    a = int(input())
    for i in range(D):
        if i*a + 1 <= D:
            ans += 1
            print(ans)

print(ans)

Failing test case input:
5
1 87
25
21
7
9
6

Expected output:
92


Actual output:
88
89
90
91
92
92


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

ans = X
for j in range(N):
    a = int(input())
    for i in range(D):
        if i*a + 1 <= D:
            ans += 1

print(ans)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
D, X = map(int, input().split())
A = [int(input()) for i in range(N)]

choco = X
j = 0

for i in range(N):
  j = 0
  a = 0
  while a <= D:
    a = j*A[i] + 1
    print(a)
    if a <= D:
      choco += 1
    j += 1
    
print(choco)


Failing test case input:
3
13 2
2
10
1

Expected output:
24


Actual output:
1
3
5
7
9
11
13
15
1
11
21
1
2
3
4
5
6
7
8
9
10
11
12
13
14
24


Fixed submission (verdict: Accepted):
N = int(input())
D, X = map(int, input().split())
A = [int(input()) for i in range(N)]

choco = X

for i in range(N):
  j = 0
  a = 0
  while a <= D:
    a = j*A[i] + 1
    if a <= D:
      choco += 1
    j += 1
    
print(choco)

Problem: p03400
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())
D,X=map(int,input().split())
A=[int(input()) for _ in range(N)]
ans=0
for i in range(N):
  for j in range(D):
    if D>=A[i]*j:
      ans+=1
    else:
      break
print(ans+X)

Failing test case input:
5
30 44
26
1
81
27
6

Expected output:
84


Actual output:
85


Fixed submission (verdict: Accepted):
N=int(input())
D,X=map(int,input().split())
A=[int(input()) for _ in range(N)]
ans=0
for i in range(N):
  for j in range(D):
    if D>A[i]*j:
      ans+=1
    else:
      break
print(ans+X)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
d,x=map(int,input().split())
cnt=x
for i in range(n):
  a = int(input())
  if a < d:
    cnt+=1
print(cnt)

Failing test case input:
5
7 29
26
18
81
18
26

Expected output:
34


Actual output:
29


Fixed submission (verdict: Accepted):
n=int(input())
d,x=map(int,input().split())
cnt=x
for i in range(n):
  a = int(input())
  day=1
  while day <= d:
    cnt+=1
    day+=a
    
print(cnt)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
a = list(map(int, input().split()))
b = [int(input()) for _ in range(N)]

res = a[1]

for i in range(N):
    for ii in range(a[0]):
        if 1 + (b[i] * 2) <= a[0]:
            res += 1
        else:
            break
print(res)

Failing test case input:
5
30 44
26
18
81
18
10

Expected output:
54


Actual output:
74


Fixed submission (verdict: Accepted):
N = int(input())
a = list(map(int, input().split()))
b = [int(input()) for _ in range(N)]
 
res = a[1]

for i in range(N):
    for ii in range(0,a[0]):
        if 1 + (b[i] * ii) <= a[0]:
            res += 1
        else:
            break
print(res)
Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
d,x = map(int,input().split())
count = x
for i in range(n):
  a = int(input())
  count += d
print(count)

Failing test case input:
5
4 89
7
21
7
9
3

Expected output:
95


Actual output:
109


Fixed submission (verdict: Accepted):
n = int(input())
d,x = map(int,input().split())
count = x
a = [int(input()) for i in range(n)]
for i in range(n):
  j = 0
  while j * a[i] + 1 <= d:
    count += 1
    j += 1
print(count)

Problem: p03400
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())
D,X=map(int,input().split())
A=[int(input()) for _ in range(N)]
ans=0
for i in range(N):
  for j in range(D):
    if D>A[i]*j:
      print(A[i]*j)
      ans+=1
    else:
      break
print(ans+X)

Failing test case input:
2
8 23
1
19

Expected output:
32


Actual output:
0
1
2
3
4
5
6
7
0
32


Fixed submission (verdict: Accepted):
N=int(input())
D,X=map(int,input().split())
A=[int(input()) for _ in range(N)]
ans=0
for i in range(N):
  for j in range(D):
    if D>A[i]*j:
      ans+=1
    else:
      break
print(ans+X)

Problem: p03400
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
d,x=map(int,input().split())
cnt = 0
for i in range(n):
    a = int(input())
    p = 1
    while p < d:
        p +=a
        cnt +=1
print(cnt+x)

Failing test case input:
5
1 28
26
21
142
37
3

Expected output:
33


Actual output:
28


Fixed submission (verdict: Accepted):
n=int(input())
d,x=map(int,input().split())
cnt = 0
for i in range(n):
    a = int(input())
    p = 1
    while p <= d:
        p +=a
        cnt +=1
print(cnt+x)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
d,x = map(int,input().split())
for i in range(n):
  a = int(input())
  b = 1
  while b > n:
    x += 1
    b += a
print(x)
    

Failing test case input:
5
1 36
26
18
76
27
6

Expected output:
41


Actual output:
36


Fixed submission (verdict: Accepted):
n = int(input())
d,x = map(int,input().split())
for i in range(n):
  a = int(input())
  b = 1
  while b <= d:
    x += 1
    b += a
print(x)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
D, X = map(int, input().split())
A = []
for i in range(N):
    A.append(int(input()))

List = []
for i in range(N):
    l = [j for j in range(1, D + 1) if j % A[i] == 1]
    List.append(l)

tmp = 0
for i in range(N):
    tmp += len(List[i])

print(tmp + X)


Failing test case input:
2
8 20
1
10

Expected output:
29

Actual output:
21


Fixed submission (verdict: Accepted):
N = int(input())
D, X = map(int, input().split())
A = []
for i in range(N):
    A.append(int(input()))

List = []
for i in range(N):
    l = [j for j in range(1, D + 1) if (j - 1) % A[i] == 0]
    List.append(l)

tmp = 0
for i in range(N):
    tmp += len(List[i])

print(tmp + X)
Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
d, x = map(int, input().split())
al = [int(input()) for _ in range(n)]
for i in range(1, d+1):
  for a in al:
    if i % a == 1:
      x += 1
print(x)

Failing test case input:
2
16 44
1
19

Expected output:
61


Actual output:
45


Fixed submission (verdict: Accepted):
n = int(input())
d, x = map(int, input().split())
al = [int(input()) for _ in range(n)]
for i in range(1, d+1):
  for a in al:
    if a == 1 or i % a == 1:
      x += 1
print(x)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
D, X = map(int, input().split())
A = [int(input()) for _ in range(N)]
ans = 0
for i in range(N):
  ans += D 
print(ans+X)

Failing test case input:
5
3 44
1
32
7
16
5

Expected output:
51


Actual output:
59


Fixed submission (verdict: Accepted):
from math import ceil
N = int(input())
D, X = map(int, input().split())
A = [int(input()) for _ in range(N)]
ans = X
for i in range(N):
  ans += ceil(D/A[i])
print(ans)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
D,X = map(int,input().split())
ans = 0

for i in range(N):
    A = int(input())
    for i in range(1,D+1):
        if (D-1) % A == 0:
            ans += 1
print(ans+X)


Failing test case input:
5
3 44
1
32
7
16
5

Expected output:
51


Actual output:
47


Fixed submission (verdict: Accepted):
N = int(input())
D,X = map(int,input().split())
ans = X

for i in range(N):
    A = int(input())
    for i in range(1,D+1):
        if (i-1) % A == 0:
            ans += 1
print(ans)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
d, x = map(int, input().split())
a = [int(input()) for _ in range(n)]

s = [0] * n
for i in range(d):
    for j in range(n):
        if i*a[j] <= d:
            s[j] += 1
print(sum(s) + x)

Failing test case input:
5
30 44
26
18
81
18
6

Expected output:
56

Actual output:
57


Fixed submission (verdict: Accepted):
n = int(input())
d, x = map(int, input().split())
day = [i for i in range(0, d+1)]

ans = 0
for _ in range(n):
    a = int(input())
    ans += len(day[1:d+1:a])
print(ans + x)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
D,X = map(int,input().split())
A = list(map(int,open(0)))
ans = 0
for i in range(1,D+1):
    for a in A:
        if D-1 % a == 0:
            ans += 1
print(ans)

Failing test case input:
3
7 1
1
5
10

Expected output:
11


Actual output:
0


Fixed submission (verdict: Accepted):
N = int(input())
D,X = map(int,input().split())
ans = X

for i in range(N):
    A = int(input())
    for i in range(1,D+1):
        if (i-1) % A == 0:
            ans += 1
print(ans)
Problem: p03400
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
d,x = map(int,input().split())
res = 0
for i in range(n):
  a = int(input())
  for j in range(1,d+1,a):
    res += 1
res = res + 1
print(res)

Failing test case input:
2
0 44
1
15

Expected output:
44


Actual output:
1


Fixed submission (verdict: Accepted):
n = int(input())
d,x = map(int,input().split())
res = 0
for i in range(n):
  a = int(input())
  for j in range(1,d+1,a):
    res += 1
print(res+x)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
d, x = map(int, input().split())
a = []
s = 0

for i in range(n):
    a.append(int(input()))

for i in range(1, d+1):
    for j in range(n):
        if i % a[j] == 1:
            s += 1
print(s + x)


Failing test case input:
3
7 1
1
5
10

Expected output:
11


Actual output:
4


Fixed submission (verdict: Accepted):
n = int(input())
d, x = map(int, input().split())
a = []
s = 0

for i in range(n):
    a.append(int(input()))

for i in range(1, d + 1):
    for j in range(n):
        if i % a[j] == 1 or a[j] == 1:
            s += 1
print(s + x)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
d,x = map(int,input().split())
count = x
a = [int(input()) for i in range(n)]
for i in range(n):
  count += d
print(count)

Failing test case input:
5
2 82
13
36
90
74
4

Expected output:
87


Actual output:
92


Fixed submission (verdict: Accepted):
n = int(input())
d,x = map(int,input().split())
count = x
a = [int(input()) for i in range(n)]
for i in range(n):
  j = 0
  while j * a[i] + 1 <= d:
    count += 1
    j += 1
print(count)

Problem: p03400
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
d, x = map(int, input().split())
a = [int(input()) for _ in range(n)]

eat = 0
for i in range(len(a)):
   for j in range(1, d, a[i]):
      eat += 1
    

print(x + eat)





Failing test case input:
5
1 25
55
16
50
9
15

Expected output:
30


Actual output:
25


Fixed submission (verdict: Accepted):
n = int(input())
d, x = map(int, input().split())
a = [int(input()) for _ in range(n)]

eat = 0
for i in range(len(a)):
    for j in range(1, d+1, a[i]):
        eat += 1

print(x + eat)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
x, d = list(map(int, input().split()))

a = [int(input()) for i in range(0, n)]

ans = x

for i in range(0, n):
    for j in range(0, n):
        if j * a[i] + 1 > d:
            break
        
        ans += 1

print(ans)


Failing test case input:
5
1 329
25
24
13
9
5

Expected output:
334


Actual output:
26


Fixed submission (verdict: Accepted):
n = int(input())
d, x = list(map(int, input().split()))

a = [int(input()) for i in range(0, n)]

ans = x

for i in range(0, n):
    day = 1

    while day <= d:
        ans += 1
        day += a[i]


print(ans)
Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
D,X = map(int,input().split())
result = X
for i in range(N):
  A = int(input())
  for j in range(1,D,A):
    result += 1 
print(result)

Failing test case input:
5
1 72
25
21
7
9
7

Expected output:
77


Actual output:
72


Fixed submission (verdict: Accepted):
N = int(input())
D,X = map(int,input().split())
result = X
for i in range(N):
  A = int(input())
  for j in range(1,D+1,A):
    result += 1 
print(result)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
D, X = map(int, input().split())

sum_c = 0
for _ in range(N):
    A = int(input())
    choco = 0
    for i in range(1, 100):
        choco += 1
        day = i * A + 1
        if day > D:
            break
    sum_c += choco
print(sum_c + X)

Failing test case input:
5
0 52
13
21
96
74
2

Expected output:
52


Actual output:
57


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

sum_c = 0
for _ in range(N):
    A = int(input())
    choco = 0
    for i in range(0, 100):
        day = i * A + 1
        if day > D:
            break
        choco += 1
    sum_c += choco
print(sum_c + X)

Problem: p03400
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
d,x=map(int,input().split())
cnt = n
for i in range(n):
    a = int(input())
    p = 1
    while p <= d:
        p +=a
        cnt +=1
print(cnt+x)

Failing test case input:
5
0 161
54
30
43
4
7

Expected output:
161


Actual output:
166


Fixed submission (verdict: Accepted):
n=int(input())
d,x=map(int,input().split())
cnt = 0
for i in range(n):
    a = int(input())
    p = 1
    while p <= d:
        p +=a
        cnt +=1
print(cnt+x)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
D, X = map(int, input().split())
A = [int(input()) for i in range(N)]

choco = 0

for i in range(N):
  for j in range(N):
    a = i*A[j] + 1
    if a < D:
      choco += 1
    
print(choco+1)

Failing test case input:
2
8 20
1
1

Expected output:
36


Actual output:
5


Fixed submission (verdict: Accepted):
N = int(input())
D, X = map(int, input().split())
A = [int(input()) for i in range(N)]

choco = X

for i in range(N):
  j = 0
  a = 0
  while a <= D:
    a = j*A[i] + 1
    if a <= D:
      choco += 1
    j += 1
    
print(choco)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
d, x = map(int, input().split())
a = [int(input()) for _ in range(n)]

eat = 1
for i in range(n):
    one = 1
    while one < d:
        one += a[i]
        eat += 1
print(x + eat) 

Failing test case input:
3
1 -1
2
5
15

Expected output:
2


Actual output:
0


Fixed submission (verdict: Accepted):
n = int(input())
d, x = map(int, input().split())
a = [int(input()) for _ in range(n)]

eat = 0
for i in range(n):
    one = 1
    while one <= d:
        one += a[i]
        eat += 1
print(x + eat)
Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
d,x=map(int,input().split())
a=[int(input()) for _ in range(n)]
for i in range(1,d+1):
    for j in range(n):
        if i%a[j]==1:
            x+=1
print(x)

Failing test case input:
5
2 52
1
21
43
37
6

Expected output:
58


Actual output:
56


Fixed submission (verdict: Accepted):
n=int(input())
d,x=map(int,input().split())
a=[int(input()) for _ in range(n)]
for i in range(1,d+1):
    for j in range(n):
        if a[j]==1:
            x+=1
        elif i%a[j]==1:
            x+=1
print(x)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
x=input()
x=x.split()
d=int(x[0])
x=int(x[1])
o=0
for i in range(n):
  a=int(input())
  b=0
  c=0
  while b<d:
    o+=1
    b=c*a+1
    c+=1
o+=x
print(str(o))

Failing test case input:
5
30 44
26
18
81
18
6

Expected output:
56

Actual output:
61


Fixed submission (verdict: Accepted):
n=int(input())
x=input()
x=x.split()
d=int(x[0])
x=int(x[1])
o=0
for i in range(n):
  a=int(input())
  b=0
  c=0
  while (c*a+1)<=d:
    o+=1
    c+=1
    
o+=x
print(str(o))

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
D, X = map(int, input().split())
As = [int(input()) for _ in range(N)]

c = X
for A in As:
  c += (D-1) 
  
print(c)

Failing test case input:
5
30 29
26
18
81
18
19

Expected output:
38


Actual output:
174


Fixed submission (verdict: Accepted):
N = int(input())
D, X = map(int, input().split())
As = [int(input()) for _ in range(N)]
 
c = X
for A in As:
  c += ((D-1) 
  
print(c)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
D, X = map(int, input().split())
A = [int(input()) for i in range(N)]

choco = 0

for i in A:
    for j in range(1,D+1,i):
        print(j)
        choco += 1
print(choco + X)

Failing test case input:
5
2 45
13
36
90
74
4

Expected output:
50


Actual output:
1
1
1
1
1
50


Fixed submission (verdict: Accepted):
N = int(input())
D, X = map(int, input().split())
A = [int(input()) for i in range(N)]

choco = 0

for i in A:
    for j in range(1,D+1,i):
        choco += 1
print(choco + X)

Problem: p03400
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())
D,X=map(int,input().split())
A=[int(input()) for _ in range(N)]
ans=0
for i in range(N):
  for j in range(N):
    if 30>=A[i]*j:
      ans+=1
    else:
      break
print(ans+X)

Failing test case input:
2
8 20
1
1

Expected output:
36


Actual output:
24


Fixed submission (verdict: Accepted):
N=int(input())
D,X=map(int,input().split())
A=[int(input()) for _ in range(N)]
ans=0
for i in range(N):
  for j in range(D):
    if D>A[i]*j:
      ans+=1
    else:
      break
print(ans+X)
Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
d,x = map(int,input().split())
ans = 0
for i in range(n):
  num = int(input())
  ans += (num-1)
print(ans+x)


Failing test case input:
2
2 20
1
10

Expected output:
23


Actual output:
29


Fixed submission (verdict: Accepted):
from math import ceil
n = int(input())
d,x = map(int,input().split())
ans = 0
for i in range(n):
  num = int(input())
  ans += ceil(d/num)
print(ans+x)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
D,X = map(int,input().split())
A = [int(input()) for _ in range(N)]
k = 0
for i in range(D):
  for j in range(N):
    if i*A[j] <= D:
      k += 1
print(k + X)

Failing test case input:
5
2 50
50
2
76
27
6

Expected output:
55


Actual output:
56


Fixed submission (verdict: Accepted):
N = int(input())
D,X = map(int,input().split())
A = [int(input()) for _ in range(N)]
k = 0
for i in range(D):
  for j in range(N):
    if i*A[j] < D:
      k += 1
print(k + X)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
d,x = map(int,input().split())
a = [int(input()) for i in range(n)]
ans = x
for i in range(n):
  for j in range(d+1):
    if j % a[i] == 1:
      ans += 1
print(ans)

Failing test case input:
5
2 103
25
1
7
8
7

Expected output:
109


Actual output:
107


Fixed submission (verdict: Accepted):
n = int(input())
d,x = map(int,input().split())
a = [int(input()) for i in range(n)]
ans = x
for i in range(n):
  for j in range(1,d+1):
    if j % a[i] - 1 == 0:
      ans += 1
    elif a[i] == 1:
      ans += 1

print(ans)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
d,x=map(int,input().split())
for _ in range(n):
  a=int(input())
  day=1
  while day<d:
    x+=1
    day+=a
print(x)

Failing test case input:
5
1 44
26
21
76
27
6

Expected output:
49


Actual output:
44


Fixed submission (verdict: Accepted):
n=int(input())
d,x=map(int,input().split())
for _ in range(n):
  a=int(input())
  day=1
  while day<=d:
    x+=1
    day+=a
print(x)

Problem: p03400
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
d,x = map(int,input().split())
res = 0
for i in range(1,n+1):
  a = int(input())
  for j in range(1,d+1,a):
    res += 1
res = res + 1
print(res)

Failing test case input:
5
30 44
26
1
81
27
6

Expected output:
84


Actual output:
41


Fixed submission (verdict: Accepted):
n = int(input())
d,x = map(int,input().split())
res = 0
for i in range(n):
  a = int(input())
  for j in range(1,d+1,a):
    res += 1
print(res+x)
Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
D, X = map(int, input().split())

A = []
for _ in range(N):
    A.append(int(input()))

ans = X

for i in range(1, D+1):
    for j in A:
        if i % j == 1:
            ans += 1

print(ans)

Failing test case input:
2
8 23
1
19

Expected output:
32


Actual output:
24


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

A = []
for _ in range(N):
    A.append(int(input()))

ans = X

for i in range(1, D+1):
    for j in A:
        if j == 1:
            ans += 1
        elif i % j == 1:
            ans += 1

print(ans)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
N = int(input())
D,X = list(map(int, input().split()))
A = [int(input()) for _ in range(N)]

ans = 0
for d in range(D):
  for i in range(N):
    if((d - 1) % A[i] == 0):
      ans += 1
print(ans+X)

Failing test case input:
3
1 1
2
5
19

Expected output:
4


Actual output:
1


Fixed submission (verdict: Accepted):
import math
N = int(input())
D,X = list(map(int, input().split()))
A = [int(input()) for _ in range(N)]

ans = 0
for d in range(1,D+1):
  for i in range(N):
    if((d - 1) % A[i] == 0):
      ans += 1
print(ans+X)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
D, X = list(map(int, input().split()))
A = [int(input()) for _ in range(N)]
num = 0

for i in range(N):
        for j in range(D):
            if A[i] * j > D:
                break
            num += 1

print(num + X)

Failing test case input:
5
30 44
26
1
81
27
6

Expected output:
84


Actual output:
85


Fixed submission (verdict: Accepted):
N = int(input())
D, X = list(map(int, input().split()))
A = [int(input()) for _ in range(N)]
num = 0

for i in range(N):
        for j in range(D):
            if A[i] * j  + 1> D:
                break
            num += 1

print(num + X)

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

for i in range(n):
  a = int(input())
  j = 0
  while True:
    if j*a + 1 <= d:
      ans += 1
      j += 1
      
    else:
      break
      
print(ans+n+x)
  

Failing test case input:
3
2 2
1
3
10

Expected output:
6


Actual output:
9


Fixed submission (verdict: Accepted):
n = int(input())
d, x = map(int, input().split())
ans = 0
 
for _ in range(n):
  a = int(input())
  j = 0
  while True:
    if j*a + 1 <= d:
      ans += 1
      j += 1
      
    else:
      break
      
print(ans+x)

Problem: p03400
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())
D,X=map(int,input().split())
A=[int(input()) for _ in range(N)]
ans=0
for i in range(N):
  for j in range(N):
    if D>=A[i]*j:
      ans+=1
    else:
      break
print(ans+X)

Failing test case input:
3
4 2
1
3
10

Expected output:
9


Actual output:
8


Fixed submission (verdict: Accepted):
N=int(input())
D,X=map(int,input().split())
A=[int(input()) for _ in range(N)]
ans=0
for i in range(N):
  for j in range(D):
    if D>A[i]*j:
      ans+=1
    else:
      break
print(ans+X)
Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
D,X=map(int,input().split())
A=[int(input()) for i in range(N)]
sum=0
for i in range(len(A)):
    n=1
    while 1+(n-1)*A[i]<=D:
        sum+=1
        n+=1
    print(sum)
print(sum+X)
    

Failing test case input:
3
4 2
1
3
10

Expected output:
9


Actual output:
4
6
7
9


Fixed submission (verdict: Accepted):
N=int(input())
D,X=map(int,input().split())
A=[int(input()) for i in range(N)]
sum=0
for i in range(len(A)):
    n=1
    while 1+(n-1)*A[i]<=D:
        sum+=1
        n+=1
print(sum+X)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    n = int(input())
    d, x = map(int, input().split())
    num_list = [int(input()) for _ in range(n)]
    
    count = 0
    for num in num_list:
        count += d 
    
    ans = count + x
    
    print(ans)


if __name__ == '__main__':
    main()


Failing test case input:
2
2 20
1
10

Expected output:
23


Actual output:
24


Fixed submission (verdict: Accepted):
def main():
    n = int(input())
    d, x = map(int, input().split())
    num_list = [int(input()) for _ in range(n)]

    count = 0
    for num in num_list:
        if d 
            count += d 
        elif d 
            count += d 
        else:
            count += 1

    ans = count + x

    print(ans)


if __name__ == '__main__':
    main()

Problem: p03400
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n = int(input())
d,x = map(int, input().split())
c = 0
for i in range(n):
    a = int(input())
    for j in range(n):
        if 2*j+1<=d:
            c+=1
        else:
            break
print(x+c)

Failing test case input:
5
2 103
25
1
7
8
7

Expected output:
109


Actual output:
108


Fixed submission (verdict: Accepted):
n = int(input())
d,x = map(int, input().split())
c = 0
for i in range(n):
    a = int(input())
    for j in range(100):
        if a*j+1<=d:
            c+=1
        else:
            break
print(x+c)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
d, x = map(int, input().split())
a = []
s = 0

for i in range(n):
    a.append(int(input()))

for i in range(d):
    for j in range(n):
        if i % a[j] == 1:
            s += 1
print(s + x)


Failing test case input:
5
1 52
26
21
7
9
6

Expected output:
57


Actual output:
52


Fixed submission (verdict: Accepted):
n = int(input())
d, x = map(int, input().split())
a = []
s = 0

for i in range(n):
    a.append(int(input()))

for i in range(1, d + 1):
    for j in range(n):
        if i % a[j] == 1 or a[j] == 1:
            s += 1
print(s + x)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
d,x=map(int,input().split())
for _ in range(n):
  a =int(input())
  date=1
  while date < d:
    x+=1
    date += a
print(x)
    
    
    
    

Failing test case input:
3
7 1
2
9
9

Expected output:
7


Actual output:
6


Fixed submission (verdict: Accepted):
n=int(input())
d,x = map(int,input().split())
for _ in range(n):
  a=int(input())
  date =1
  while date <=d:
    x+=1
    date += a
print(x)
Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
D, X = map(int, input().split())

ans = X
for j in range(N):
    a = int(input())
    for i in range(D):
        if i*a + i+1 <= D:
            ans += 1

print(ans)

Failing test case input:
2
8 20
1
1

Expected output:
36


Actual output:
28


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

ans = X
for j in range(N):
    a = int(input())
    for i in range(D):
        if i*a + 1 <= D:
            ans += 1

print(ans)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
d,x = [int(x) for x in input().split()]
for i in range(n):
    a = int(input())
    x += int(d / a + 1)
print(x)

Failing test case input:
3
0 0
1
5
15

Expected output:
0


Actual output:
3


Fixed submission (verdict: Accepted):
n = int(input())
d,x = [int(x) for x in input().split()]
for i in range(n):
    a = int(input())
    x += int((d-1) / a + 1)
print(x)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
d,x=map(int,input().split())
a=[]
for _ in range(n):
	a_=int(input())
	a.append(a_)
for i in range(n):
	for j in range(d+1):
		if a[i]*j+1<=d:
			print(a[i]*j+1)
			x += 1
print(x)

Failing test case input:
5
30 29
26
18
81
18
19

Expected output:
38


Actual output:
1
27
1
19
1
1
19
1
20
38


Fixed submission (verdict: Accepted):
n=int(input())
d,x=map(int,input().split())
a=[]
for _ in range(n):
	a_=int(input())
	a.append(a_)
for i in range(n):
	for j in range(d+1):
		if a[i]*j+1<=d:
			x += 1
print(x)

Problem: p03400
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def resolve():
    
    N = int(input())
    D, X = [int(item) for item in input().split()]
    As = [int(input()) for _ in range(N)]

    cnt = 0
    for i in range(N):
        day = 1
        while day <= D:
            day +=As[i] 
            cnt +=1
    print(cnt)


if __name__ == "__main__":
    resolve()


Failing test case input:
5
1 13
25
21
7
9
6

Expected output:
18


Actual output:
5


Fixed submission (verdict: Accepted):
def resolve():
    
    N = int(input())
    D, X = [int(item) for item in input().split()]
    As = [int(input()) for _ in range(N)]

    cnt = 0
    for i in range(N):
        day = 1
        while day <= D:
            day +=As[i] 
            cnt +=1

    print(cnt+X)


if __name__ == "__main__":
    resolve()

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
D, X = list(map(int, input().split()))
A = [int(input()) for _ in range(N)]
num = 0

for i in range(N):
        for j in range(D):
            if A[i] * j  + 1> D:
                break
            num += 1
            print(num)

print(num + X)

Failing test case input:
2
8 20
1
1

Expected output:
36


Actual output:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
36


Fixed submission (verdict: Accepted):
N = int(input())
D, X = list(map(int, input().split()))
A = [int(input()) for _ in range(N)]
num = 0

for i in range(N):
        for j in range(D):
            if A[i] * j  + 1> D:
                break
            num += 1

print(num + X)
Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
D, X = list(map(int, input().split()))
a = [int(input()) for _ in range(n)]
r = 0
for i in range(n):
    k = 0
    for j in a:
        r += 1 if k*j + 1 <= D else r
        k += 1

print(r)


Failing test case input:
2
0 148
1
15

Expected output:
148


Actual output:
0


Fixed submission (verdict: Accepted):
n = int(input())
D, X = list(map(int, input().split()))
a = [int(input()) for _ in range(n)]
r = 0
for i in range(n):
    k = 0
    while(k*a[i]+1 <= D):
        r += 1
        k += 1


print(r + X)

Problem: p03400
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())
D,X=map(int,input().split())
res = X
List = []
for i in range (N):
  List.append(int(input()))
for i in range(N):
  for i in range(1,D,List[i]):
    res += 1
print(res)

Failing test case input:
3
7 1
2
9
9

Expected output:
7


Actual output:
6


Fixed submission (verdict: Accepted):
N=int(input())
D,X=map(int,input().split())
res = X
List = []
for i in range (N):
  List.append(int(input()))
for i in range(N):
  for i in range(1,D+1,List[i]):
    res += 1
print(res)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
D,X = map(int,input().split())

count = 0
A = [int(input()) for i in range(N)]
j = 0
for i in range(N):
    while j * A[i] + 1 <= D:
        j += 1
        count += 1
    print(count + X)

Failing test case input:
3
1 1
2
5
15

Expected output:
4


Actual output:
2
2
2


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

count = 0
A = [int(input()) for i in range(N)]

for i in range(N):
    j = 0
    while j * A[i] + 1 <= D:
        j += 1
        count += 1
print(count + X)

Problem: p03400
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
d,x = map(int, input().split())
a = []
for _ in range(n):
    a.append(int(input()))

res = 0
for e in a:
    i = 0
    while e*i+1 <= d:
        print(e*i+1)
        res += 1
        i += 1

print(res+x)

Failing test case input:
5
30 29
26
18
81
18
19

Expected output:
38


Actual output:
1
27
1
19
1
1
19
1
20
38


Fixed submission (verdict: Accepted):
n = int(input())
d,x = map(int, input().split())
a = []
for _ in range(n):
    a.append(int(input()))

res = 0
for e in a:
    i = 0
    while e*i+1 <= d:
        res += 1
        i += 1

print(res+x)