ZhenlongDai/ACPR huggingface dataset:
Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
def numinput():
    a = input().split()
    for i in range(len(a)):
        a[i] = int(a[i])
    return a

def main():
    n = int(input())
    a = numinput()
    print('%d %d' % (a[0] * a[1], 2 * (a[0] + a[1])))

if __name__ == "__main__":
    main()


Failing test case input:
5
12 3 -2 4 1

Expected output:
-2 12 18


Actual output:
36 30


Fixed submission (verdict: Accepted):
def numinput():
    a = input().split()
    for i in range(len(a)):
        a[i] = int(a[i])
    return a

def main():
    n = int(input())
    a = numinput()
    print('%d %d %d' % (min(a), max(a), sum(a)))

if __name__ == "__main__":
    main()

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
n = int(input())
a = list(map(int, input().split()))
sum = 0
min = a[0]
max = a[0]
for i in range(1, n):
  if a[i] < min:
    min = a[i]
  elif a[i] > max:
    max = a[i]
  sum += a[i]
print(min, max, sum)
  

Failing test case input:
5
476 1 -8 -2 2

Expected output:
-8 476 469


Actual output:
-8 476 -7


Fixed submission (verdict: Accepted):
n = int(input())
a = list(map(int, input().split()))
sum = a[0]
min = a[0]
max = a[0]
for i in range(1, n):
  if a[i] < min:
    min = a[i]
  if a[i] > max:
    max = a[i]
  sum += a[i]
print(min, max, sum)

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
size = input()
list = list(map(int, input().split()))

list_min = min(list)
list_max = max(list)
list_sum = sum(list)

print(list_min)
print(list_max)
print(list_sum)



Failing test case input:
5
17 0 -12 2 1

Expected output:
-12 17 8


Actual output:
-12
17
8


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

list_min = min(list)
list_max = max(list)
list_sum = sum(list)

print(list_min, list_max, list_sum,sep=' ')

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
sum = 0
max = -10000000
min = 10000000

input()

for i in [int(x) for x in input().split()]:
    sum += i
    if i > max:
        max = i

    if i > min:
        min = i

print(min,max,sum)

Failing test case input:
5
2 0 -14 -6 -1

Expected output:
-14 2 -19


Actual output:
10000000 2 -19


Fixed submission (verdict: Accepted):
sum = 0
max = -10000000
min = 10000000

input()

for i in [int(x) for x in input().split()]:
    sum += i
    if i > max:
        max = i

    if i < min:
        min = i

print(min,max,sum)

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
n=int(input())

l=input().split()

b=min(l)
a=max(l)

result=0
while n>=1:
    result=result+int(l[n-1])
    n=n-1

print(str(b)+" "+str(a)+" "+str(result))



Failing test case input:
5
113 1 -7 -1 2

Expected output:
-7 113 108


Actual output:
-1 2 108


Fixed submission (verdict: Accepted):
n=int(input())

l=input().split()

b=min(map(int,l))
a=max(map(int,l))

result=0
while n>=1:
    result=result+int(l[n-1])
    n=n-1

print(str(b)+" "+str(a)+" "+str(result))
Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
x = [int(v) for v in input().split()]
x[0] = x[0] % 10
print(min(x), max(x), sum(x))


Failing test case input:
5
12 0 -2 4 1

Expected output:
-2 12 15


Actual output:
5 5 5


Fixed submission (verdict: Accepted):
n = int(input())
x = [int(v) for v in input().split()]
print(min(x), max(x), sum(x))

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
n=int(input())
l=list(map(int,input().split()))
print('%d %d %d'%(min(l), max(l), sum(l)/n))

Failing test case input:
5
42 2 -2 4 0

Expected output:
-2 42 46


Actual output:
-2 42 9


Fixed submission (verdict: Accepted):
n=int(input())
l=list(map(int,input().split()))
print('%d %d %d'%(min(l), max(l), sum(l)))

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

nums1 = []
sum = 0
for i in range(2):
    nums = [int(e) for e in input().split()]
    nums1.append(nums)

for i in range(len(nums1[1])):
    for j in range(i):
        if nums1[1][i]<nums1[1][j]:
            max = nums[j]

for i in range(len(nums1[1])):
    for j in range(i):
        if nums1[1][i]>nums1[1][j]:
            min = nums[j]

for i in range(len(nums1[1])):
    sum = sum + nums1[1][i]
    
print(max, min, sum)


Failing test case input:
5
59 0 -15 0 2

Expected output:
-15 59 46


Actual output:
59 0 46


Fixed submission (verdict: Accepted):

nums1 = []
sum = 0
for i in range(2):
    nums = [int(e) for e in input().split()]
    nums1.append(nums)

max = nums1[1][0]
min = nums1[1][0]
sum = 0

for i in range(len(nums1[1])):
    if nums1[1][i]>max:
        max = nums1[1][i]
    if nums1[1][i]<min:
        min = nums1[1][i]
    sum = sum + nums1[1][i]
    
print(min, max, sum)

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
n = int(input())
ns = list(map(int, input().split()))
print(n)

print(min(ns), max(ns), sum(ns))


Failing test case input:
5
1 0 -5 -1 -1

Expected output:
-5 1 -6


Actual output:
5
-5 1 -6


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


print(min(ns), max(ns), sum(ns))

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
s=int(input())
x=[int(i) for i in input().split()]
print("{0},{1},{2}".format(min(x),max(x),sum(x)))

Failing test case input:
5
39 1 -2 0 0

Expected output:
-2 39 38


Actual output:
-2,39,38


Fixed submission (verdict: Accepted):
s=int(input())
x=[int(i) for i in input().split()]
print("{0} {1} {2}".format(min(x),max(x),sum(x)))

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
n = int(input())
a = [0] * n
print (n)
a = list(map(int, input().split()))

print (min(a))
print (max(a))
print (sum(a))

Failing test case input:
5
24 2 -2 4 0

Expected output:
-2 24 28


Actual output:
5
-2
24
28


Fixed submission (verdict: Accepted):
n = int(input())
a = [0] * n
a = list(map(int, input().split()))
print (min(a),max(a),sum(a))
Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
n=int(input())
ns=input().split()
for i in range(len(ns)):
    ns[i]=int(ns[i])
a=sum(ns)
i=min(ns)
u=max(ns)
print(a,i,u)


Failing test case input:
5
12 2 -2 4 1

Expected output:
-2 12 17


Actual output:
17 -2 12


Fixed submission (verdict: Accepted):
n=int(input())
ns=input().split()
for i in range(len(ns)):
    ns[i]=int(ns[i])
asum=sum(ns)
amin=min(ns)
amax=max(ns)
print(amin,amax,asum)

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
a = input()
num = input()
num_1 = num.split()
s = 0
cnt = 0
for i in range(len(num_1)):
    s += int(num_1[cnt])
    cnt += 1

print(min(num_1),max(num_1),s)

Failing test case input:
5
54 1 -8 -2 2

Expected output:
-8 54 47


Actual output:
-2 54 47


Fixed submission (verdict: Accepted):
a = input()
num = input()
num_1 = num.split()
s = 0
cnt = 0
for i in range(len(num_1)):
    s += int(num_1[cnt])
    cnt += 1

b = []
cnt = 0
for i in range(len(num_1)):
    b.append(int(num_1[cnt]))
    cnt += 1

print(min(b),max(b),s)

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
length = int(input())
arr = input().split()

iniV = int(arr[0])

mi = iniV
mx = iniV
su = iniV
for s in arr:
    val = int(s)
    su += val
    if(val < mi):
        mi = val
    if(val > mx):
        mx = val

print(mi, mx, su)



Failing test case input:
5
4 0 0 -6 -2

Expected output:
-6 4 -4


Actual output:
-6 4 0


Fixed submission (verdict: Accepted):
length = int(input())
arr = input().split()

iniV = int(arr[0])

mi = iniV
mx = iniV
su = 0
for s in arr:
    val = int(s)
    su += val
    if(val < mi):
        mi = val
    if(val > mx):
        mx = val

print(mi, mx, su)

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
n= int(input())
l= list(map(int,input().split()))
s= 0
for i in range(n-1):
	if(l[i+1]<l[0]):
		l[0],l[i+1]= l[i+1],l[0]
for j in range(n-1):
	if(l[n-1]<l[j]):
		l[n-1],l[j]= l[j],l[n-1]
for k in range(n-1):
	s+= l[i]
print(l[0],l[n-1],s)

Failing test case input:
5
10 1 5 4 17

Expected output:
1 17 37

Actual output:
1 17 16


Fixed submission (verdict: Accepted):
n= int(input())
l= list(map(int,input().split()))
s= 0
for i in range(n):
	if(l[i]<l[0]):
		l[0],l[i]= l[i],l[0]
for j in range(n):
	if(l[n-1]<l[j]):
		l[n-1],l[j]= l[j],l[n-1]
for k in range(n):
	s+= l[k]
print(l[0],l[n-1],s)
Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):

nums1 = []
sum = 0
for i in range(2):
    nums = [int(e) for e in input().split()]
    nums1.append(nums)

for i in range(len(nums1[1])):
    for j in range(i):
        if nums1[1][i]<nums1[1][j]:
            max = nums1[1][j]

for i in range(len(nums1[1])):
    for j in range(i):
        if nums1[1][i]>nums1[1][j]:
            min = nums1[1][j]

for i in range(len(nums1[1])):
    sum = sum + nums1[1][i]
    
print(min, max, sum)


Failing test case input:
5
1 1 -17 -6 -1

Expected output:
-17 1 -22


Actual output:
-6 1 -22


Fixed submission (verdict: Accepted):

nums1 = []
sum = 0
for i in range(2):
    nums = [int(e) for e in input().split()]
    nums1.append(nums)

max = nums1[1][0]
min = nums1[1][0]
sum = 0

for i in range(len(nums1[1])):
    if nums1[1][i]>max:
        max = nums1[1][i]
    if nums1[1][i]<min:
        min = nums1[1][i]
    sum = sum + nums1[1][i]
    
print(min, max, sum)

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
n = int(input())
a = list(map(int, input().split()))
for i in range(n):
    print(a[i], end=' ')



Failing test case input:
5
19 0 -2 2 1

Expected output:
-2 19 20


Actual output:
19 0 -2 2 1 

Fixed submission (verdict: Accepted):
n = int(input())
a = list(map(int, input().split()))
print(min(a), end=' ')
print(max(a), end=' ')
print(sum(a))

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
import math
def solve(numbers):
    print('s')
    min, max, sum=numbers[0],numbers[0],0
    
    for number in numbers:
        if min > number:
            min = number
        if max < number:
            max = number
        sum+=number
    print('{0} {1} {2}'.format(min,max,sum))
        
    
def answer():
    case = int(input())

    
    numbers = list(map(int,input().split()))
    solve(numbers)


if __name__ =='__main__':
    answer()


Failing test case input:
5
22 1 -2 0 0

Expected output:
-2 22 21


Actual output:
s
-2 22 21


Fixed submission (verdict: Accepted):
import math
def solve(numbers):
    min, max, sum=numbers[0],numbers[0],0
    
    for number in numbers:
        if min > number:
            min = number
        if max < number:
            max = number
        sum+=number
    print('{0} {1} {2}'.format(min,max,sum))
        
    
def answer():
    case = int(input())

    
    numbers = list(map(int,input().split()))
    solve(numbers)


if __name__ =='__main__':
    answer()

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
a=list(map(int,input().split()))
print (min(a),end=" ")
print (max(a),end=" ")
print (sum(a))

Failing test case input:
5
1 1 -17 -3 0

Expected output:
-17 1 -18


Actual output:
5 5 5


Fixed submission (verdict: Accepted):
input()
a=list(map(int,input().split()))
print (min(a),end=" ")
print (max(a),end=" ")
print (sum(a))
Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
n = input()
a = list(map(int,input().split(" ")))
del(a[0])
print("{0} {1}".format(min(a),max(a),sum(a)))

Failing test case input:
5
1 1 -5 -1 -1

Expected output:
-5 1 -5


Actual output:
-5 1


Fixed submission (verdict: Accepted):
n = input()
a = list(map(int,input().split(" ")))
print("{0} {1} {2}".format(min(a),max(a),sum(a)))

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
x = input()
a = x.split()
b = list(map(int,a))
print(min(b),max(b),sum(b))


Failing test case input:
5
147 1 -8 -2 1

Expected output:
-8 147 139


Actual output:
5 5 5


Fixed submission (verdict: Accepted):
input()
x = input()
a = x.split()
b = list(map(int,a))
print("{} {} {}".format(min(b),max(b),sum(b)))

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
n = int(input()) 
ns = list(map(int, input().split()))



print(*ns[::-1])   



Failing test case input:
5
54 0 -8 -2 1

Expected output:
-8 54 45


Actual output:
1 -2 -8 0 54


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


print(min(ns),max(ns),sum(ns))

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
input()
d = [int(x) for x in input().split()]
print(max(d), min(d), sum(d))

Failing test case input:
5
10 1 5 4 17

Expected output:
1 17 37

Actual output:
17 1 37


Fixed submission (verdict: Accepted):
input()
d = [int(x) for x in input().split()]
print(min(d), max(d), sum(d))

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
N = int(input())
num = input()
list = num.split()
print(list[1])
max = sum = min = int(list[0])
for x in range(N - 1):
    a = int(list[x + 1])
    if a > max: max = a
    elif a < min: min = a
    sum += a
print(min, max, sum)
    


Failing test case input:
5
0 0 0 -2 -2

Expected output:
-2 0 -4


Actual output:
0
-2 0 -4


Fixed submission (verdict: Accepted):
N = int(input())
num = input()
list = num.split()
max = sum = min = int(list[0])
for x in range(N - 1):
    a = int(list[x + 1])
    if a > max: max = a
    elif a < min: min = a
    sum += a
print(min, max, sum)

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
n = int(input())
a = list(map(int, input().split()))
sum = 0
min = a[0]
max = a[0]
for i in range(1, n):
  if a[i] < min:
    min = a[i]
  if a[i] > max:
    max = a[i]
  sum += a[i]
print(min, max, sum)
  

Failing test case input:
5
261 1 -8 -2 1

Expected output:
-8 261 253


Actual output:
-8 261 -8


Fixed submission (verdict: Accepted):
n = int(input())
a = list(map(int, input().split()))
sum = a[0]
min = a[0]
max = a[0]
for i in range(1, n):
  if a[i] < min:
    min = a[i]
  if a[i] > max:
    max = a[i]
  sum += a[i]
print(min, max, sum)
Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
n = int(input())

s = input().split()
max = s[0]
min = s[0]
for i in range(n):
    if max < s[i]:
        max = s[i]
    if min > s[i]:
        min = s[i]

sum = min + max
print(min, end =" ")
print(max, end =" ")
print(sum)


Failing test case input:
5
38 0 -15 2 2

Expected output:
-15 38 27


Actual output:
-15 38 -1538


Fixed submission (verdict: Accepted):
n = int(input())

s = list(map(int, input().strip().split(' ')))

max = s[0]
min = s[0]
sum = 0
for i in range(n):
    sum = sum + s[i]
    if max < s[i]:
        max = s[i]
    if min > s[i]:
        min = s[i]

print(min, end =" ")
print(max, end =" ")
print(sum)

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
input()
A = list(input().split())
print(min(A),max(A),sum([int(i) for i in A]))

Failing test case input:
5
261 1 -8 -2 1

Expected output:
-8 261 253


Actual output:
-2 261 253


Fixed submission (verdict: Accepted):
input()
A = list([int(i) for i in input().split()])
print(min(A),max(A),sum(A))

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


import sys


int(input())
inputData = map(int, input().split())
maxData = 0
minData = -1
totalData = 0

for inputVal in inputData:

    
    if inputVal > maxData:
        maxData = inputVal

    
    if inputVal < minData:
        minData = inputVal

    
    totalData += inputVal


print(minData, maxData, totalData)

Failing test case input:
5
13 1 5 4 17

Expected output:
1 17 40


Actual output:
-1 17 40


Fixed submission (verdict: Accepted):


import sys


n = int(input())
inputData = map(int, input().split())
maxData = -1000000
minData = 1000000
totalData = 0

for inputVal in inputData:

    
    if inputVal > maxData:
        maxData = inputVal

    
    if inputVal < minData:
        minData = inputVal

    
    totalData += inputVal


print(minData, maxData, totalData)

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
input()
x = [int(i) for i in input().split()]
x.pop(0)

M = max(x)
m = min(x)
s = sum(x)

print(m,M,s)

Failing test case input:
5
19 0 -2 2 1

Expected output:
-2 19 20


Actual output:
-2 2 1


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

M = max(x)
m = min(x)
s = sum(x)

print("{0} {1} {2}".format(m,M,s))

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
a = list(map(int, input().split()))
a.sort()
mi = a[0]
mx = a[-1]
sm = sum(a)
print('%d %d %d' % (mi, mx, sm))

Failing test case input:
5
1 0 -9 -1 -1

Expected output:
-9 1 -10


Actual output:
5 5 5


Fixed submission (verdict: Accepted):
n = int(input())
a = list(map(int, input().split()))
a.sort()
mi = a[0]
mx = a[-1]
sm = sum(a)
print('%d %d %d' % (mi, mx, sm))
Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
n = int(input())
print (n)
a = [0] * n

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

print (min(a))
print (max(a))
print (sum(a))

Failing test case input:
5
147 3 -8 -2 4

Expected output:
-8 147 144


Actual output:
5
-8
147
144


Fixed submission (verdict: Accepted):
n = int(input())
a = [0] * n
a = list(map(int, input().split()))
print (min(a),max(a),sum(a))

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
while True:
    input()
    nums = [int(i) for i in input().split()]

    maximum = max(nums)
    minimum = min(nums)
    sums = sum(nums)

    print(maximum, minimum, sums)
    break

Failing test case input:
5
1 1 -3 0 0

Expected output:
-3 1 -1


Actual output:
1 -3 -1


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

maximum = max(nums)
minimum = min(nums)
total = sum(nums)

print(minimum, maximum, total)

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


import sys


int(input())
inputData = map(int, input().split())
maxData = 0
minData = 0
totalData = 0

for inputVal in inputData:

    
    if inputVal > maxData:
        maxData = inputVal

    if inputVal < minData:
        minData = inputVal

    totalData += inputVal

    
    print(minData, maxData, totalData)

Failing test case input:
5
147 1 -7 -2 2

Expected output:
-7 147 141


Actual output:
0 147 147
0 147 148
-7 147 141
-7 147 139
-7 147 141


Fixed submission (verdict: Accepted):


import sys


n = int(input())
inputData = map(int, input().split())
maxData = -1000000
minData = 1000000
totalData = 0

for inputVal in inputData:

    
    if inputVal > maxData:
        maxData = inputVal

    
    if inputVal < minData:
        minData = inputVal

    
    totalData += inputVal


print(minData, maxData, totalData)
Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H , A =  [int(x) for x in input().split()]

attack = True
count = 0
while(attack):
    H = H - A
    if H < 0:
        attack = False
    count = count + 1

print(count)
        

Failing test case input:
01010 5

Expected output:
202


Actual output:
203


Fixed submission (verdict: Accepted):
H , A =  [int(x) for x in input().split()]
attack = True
count = 0

while(attack):
    H = H - A
    count = count + 1
    if H <= 0:
        attack = False

print(count)

Problem: p02783
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
H, A = map(int, input().split())
ans = int(H/A) + int(H%A)
print(ans)

Failing test case input:
01010 3

Expected output:
337


Actual output:
338


Fixed submission (verdict: Accepted):
H, A = map(int, input().split())
ans = int(H/A)
if (H%A) != 0:
  ans += 1
print(ans)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,A = map(int, input().split())
c = 0
while True:
  H = H - A
  c = c+1
  if H < 0:
    print(c)
    break
    


Failing test case input:
214 2

Expected output:
107


Actual output:
108


Fixed submission (verdict: Accepted):
H,A = map(int, input().split())
c = 0
while True:
  H = H - A
  c = c+1
  if H <= 0:
    print(c)
    break

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

h,a = map(int, input().split())
            
ans = 0
while h >= 0:
    h= h-a
    ans += 1

print(ans)

Failing test case input:
10000 1

Expected output:
10000

Actual output:
10001


Fixed submission (verdict: Accepted):
h,a = map(int, input().split())
            
ans = 0
while h > 0:
    h= h - a
    ans += 1

print(ans)

Problem: p02783
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b = list(map(int, input().split()))
c = a % b
if a <= b:
  my_result = 1
else:
  my_result = (a + c) / b
print(int(my_result))


Failing test case input:
01011 7

Expected output:
145


Actual output:
144


Fixed submission (verdict: Accepted):
a, b = list(map(int, input().split()))
c = a % b
if c == a:
  my_result = 1
elif c == 0:
  my_result = a / b
else:
  my_result = (a - c) / b + 1
print(int(my_result))

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
h, a = map(int, input().split())
if a == 1:
    ans = h
elif h <= a:
    ans = 1
    
else:
    ans = h
print(ans)

Failing test case input:
01011 7

Expected output:
145


Actual output:
1011


Fixed submission (verdict: Accepted):
h, a = map(int, input().split())
i = 0
while True:
    h -= a
    i += 1
    if h <=0:
        break

print(i)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, A = input().split()

n = (int(H)/int(A))
if(float(n)):
    n = round(n)+ 1
print(n)

Failing test case input:
01110 7

Expected output:
159


Actual output:
160


Fixed submission (verdict: Accepted):
H, A = input().split()

n = (int(H)/int(A)) +(int(H)%int(A)>0)

print(int(n))
Problem: p02783
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=input().split()
a=int(a)
b=int(b)
if a%b==0:
  print(a/b)
else:
  print(int(a/b+1))

Failing test case input:
01100 2

Expected output:
550


Actual output:
550.0


Fixed submission (verdict: Accepted):
a,b=input().split()
a=int(a)
b=int(b)
if a%b==0:
  print(int(a/b))
else:
  print(int((a/b)+1))

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
i=0
while a>b:
  a-=b
  i+=1
print(i) 

Failing test case input:
11011 3

Expected output:
3671


Actual output:
3670


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
i=0
while a>0:
  a-=b
  i+=1
print(i)

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

from math import floor
h, a = map(int, input().split())
print(floor(h / a))

Failing test case input:
11000 7

Expected output:
1572


Actual output:
1571


Fixed submission (verdict: Accepted):

from math import ceil
h, a = map(int, input().split())
print(ceil(h / a))

Problem: p02783
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
h, a = map(int, input().split())
print(int(h/a) + 1)

Failing test case input:
10110 1

Expected output:
10110


Actual output:
10111


Fixed submission (verdict: Accepted):
import math
h, a = map(int, input().split())
print(math.ceil(h/a))

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
h, a = input().split()
print(int(h)/int(a) + 1)

Failing test case input:
10110 1

Expected output:
10110


Actual output:
10111.0


Fixed submission (verdict: Accepted):
import math

h, a = input().split()
print(math.ceil(int(h)/int(a)))

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,A= input().split()
H=int(H)
A=int(A)
ans=0
if (H % A==0):
    ans=int(H/A)
else:
    ans=int(H/A)


Failing test case input:
10000 2

Expected output:
5000


Actual output:

Fixed submission (verdict: Accepted):
H,A= input().split()
H=int(H)
A=int(A)
ans=0
if (H % A==0):
    ans=int(H/A)
else:
    ans=int(H/A)+1
print(ans)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = list(map(int, input().split()))
print(int(A[0]/A[1]) + 1)

Failing test case input:
10110 1

Expected output:
10110


Actual output:
10111


Fixed submission (verdict: Accepted):
A = list(map(int, input().split()))
print(-(-(A[0])

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
list = input().split(' ')
num = 0
a = int(list[1])
b = int(list[0])
while a > 0:
  a -= b
  num += 1
  
print(num)

Failing test case input:
10101 9

Expected output:
1123


Actual output:
1


Fixed submission (verdict: Accepted):
list = input().split(' ')
num = 0
a = int(list[0])
b = int(list[1])
while a > 0:
  a -= b
  num += 1
  
print(num)
Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys

def propare():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    H = int(next(tokens))
    A = int(next(tokens))

    solve(H, A)

def solve(H: int, A: int):
    count = 0
    while 1 < H:
        count = count + 1
        H = H - A

    print(count)

    return


 
if __name__ == "__main__":
    propare()

Failing test case input:
01111 15

Expected output:
75


Actual output:
74


Fixed submission (verdict: Accepted):
import sys

def propare():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    H = int(next(tokens))
    A = int(next(tokens))

    solve(H, A)

def solve(H: int, A: int):
    count = 0
    while 0 < H:
        count = count + 1
        H = H - A

    print(count)

    return


 
if __name__ == "__main__":
    propare()

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
print(int(a/b)+1)

Failing test case input:
11000 8

Expected output:
1375


Actual output:
1376


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

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
i = list(map(int, input().split()))
if i[0]%i[1]==0:
  print(i[0]/i[1])
else:
  print((i[0]/i[1])+1)

Failing test case input:
00101 2

Expected output:
51


Actual output:
51.5


Fixed submission (verdict: Accepted):
i = list(map(int, input().split()))
if i[0]%i[1]==0:
  print(i[0]
else:
  print((i[0]

Problem: p02783
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
H,A=map(int,input().split())
cnt=0
while H >= 0:
  cnt=cnt+1
  H=H-A

print(cnt)

Failing test case input:
10010 7

Expected output:
1430


Actual output:
1431


Fixed submission (verdict: Accepted):
H,A=map(int,input().split())
cnt=0
while H > 0:
  cnt=cnt+1
  H=H-A

print(cnt)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H , A =  [int(x) for x in input().split()]

attack = True
count = 0
while(attack):
    H = H - A
    count = count + 1
    if H < 0:
        attack = False

print(count)
        

Failing test case input:
11000 4

Expected output:
2750


Actual output:
2751


Fixed submission (verdict: Accepted):
H , A =  [int(x) for x in input().split()]
attack = True
count = 0

while(attack):
    H = H - A
    count = count + 1
    if H <= 0:
        attack = False

print(count)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
h, a = map(int, input(). split())
n = 0
while h <= 0:
    h = h - a
    n = n + 1
print(n) 

Failing test case input:
01001 6

Expected output:
167


Actual output:
0


Fixed submission (verdict: Accepted):
h, a = map(int, input(). split())
n = 0
while True:
    h = h - a
    n = n + 1
    if h <= 0:
        break
print(n)
Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
hp, attack = map(int, input().split())

cnt = 0
while hp >= 0:
    hp -= attack
    cnt += 1
    
print(cnt)

Failing test case input:
01100 1

Expected output:
1100


Actual output:
1101


Fixed submission (verdict: Accepted):
hp, attack = map(int, input().split())

cnt = 0
while hp > 0:
    hp -= attack
    cnt += 1
    
print(cnt)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
h, a = map(int,input().split())
num = math.floor(h/a)+1

print(num)


Failing test case input:
11010 1

Expected output:
11010


Actual output:
11011


Fixed submission (verdict: Accepted):
import math
h, a = map(int,input().split())
num = math.ceil(h/a)

print(num)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
[h,a]=input().split()
math.ceil(int(h)/int(a))

Failing test case input:
11011 3

Expected output:
3671


Actual output:

Fixed submission (verdict: Accepted):
import math
[h,a]=input().split()
print(math.ceil(int(h)/int(a)))

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l = list(map(int, input().split()))

def attack(l):
    H = l[0]
    A = l[1]
    cnt = 0
    while H >= 0:
        H -= A
        cnt += 1
    return cnt

print(attack(l))


Failing test case input:
10001 1

Expected output:
10001


Actual output:
10002


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

def attack(l):
    H = l[0]
    A = l[1]
    cnt = 0
    while H > 0:
        H -= A
        cnt += 1
    return cnt

print(attack(l))

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, A = map(int, input().split())

if H % A == 0:
    print(H/A)
else:
    print(H/A + 1)


Failing test case input:
10000 2

Expected output:
5000


Actual output:
5000.0


Fixed submission (verdict: Accepted):
H, A = map(int, input().split())

if H % A == 0:
    print(H
else:
    print(H

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,A=map(int, input().split())
count=0
while H>=0:
  count+=1
  H=H-A
print(count)

Failing test case input:
11100 2

Expected output:
5550


Actual output:
5551


Fixed submission (verdict: Accepted):
H,A=map(int, input().split())
count=0
while H>0:
    count+=1
    H=H-A
print(count)

Problem: p02783
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=input().split()
a=int(a)
b=int(b)
if a%b==0:
  print(a/b)
else:
  print(int(a/b)+1)

Failing test case input:
01010 1

Expected output:
1010


Actual output:
1010.0


Fixed submission (verdict: Accepted):
a,b=input().split()
a=int(a)
b=int(b)
if a%b==0:
  print(int(a/b))
else:
  print(int((a/b)+1))

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,A=input().split()
S=1
if int(H)-S*int(A)>0:
  S+=1
else:
  print(S)

Failing test case input:
11110 7

Expected output:
1588


Actual output:

Fixed submission (verdict: Accepted):
H,A=input().split()
S=1
while int(H)-S*int(A)>0:
  S+=1
print(S)
Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
i=0
while a>=0:
  a-=b
  i+=1
print(i) 


Failing test case input:
11010 3

Expected output:
3670


Actual output:
3671


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
i=0
while a>0:
  a-=b
  i+=1
print(i)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l = list(map(int, input().split()))

def attack(l):
    H = l[0]
    A = l[1]
    cnt = 0
    while H >= 0:
        H = H - A
        cnt += 1
    return cnt

print(attack(l))


Failing test case input:
11010 3

Expected output:
3670


Actual output:
3671


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

def attack(l):
    H = l[0]
    A = l[1]
    cnt = 0
    while H > 0:
        H -= A
        cnt += 1
    return cnt

print(attack(l))

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
h,a=map(int,input().split())
n=h/a
ans=int(n)+1
print(ans)


Failing test case input:
01010 5

Expected output:
202


Actual output:
203


Fixed submission (verdict: Accepted):
import math
h,a=map(int,input().split())
n=h/a
n1=math.ceil(n)
ans=int(n1)
print(ans)

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

if h%a == 0:
    print(h%a)

else:
    print(h%a+1)
    

Failing test case input:
10010 3

Expected output:
3337


Actual output:
3


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

if h%a == 0:
    print(int(h

else:
    print(int(h

Problem: p02783
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
h,a = map(int,input().split())
if h%a == 0:
    result = h/a
else:
    result = int(h/a) + 1
print(result)

Failing test case input:
01010 5

Expected output:
202


Actual output:
202.0


Fixed submission (verdict: Accepted):
h,a = map(int,input().split())
if h%a == 0:
    result = int(h/a)
else:
    result = int(h/a) + 1
print(result)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,A=map(int, input().split())

count = 0;

while(H >= 0):
  H -= A
  count += 1
  
print(count)

Failing test case input:
01110 10

Expected output:
111


Actual output:
112


Fixed submission (verdict: Accepted):
H,A=map(int, input().split())

count = 0;

while(H > 0):
  H -= A
  count += 1
  
print(count)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
h, a = map(int, input().split())
print( (h+a-1)/a )


Failing test case input:
01011 5

Expected output:
203


Actual output:
203.0


Fixed submission (verdict: Accepted):
h, a = map(int, input().split())
print( int( (h+a-1)/a ) )

Problem: p02783
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b = list(map(int, input().split()))
c = a % b
if c == a:
  my_result = 1
else:
  my_result = (a + c) / b
print(int(my_result))

Failing test case input:
10001 4

Expected output:
2501


Actual output:
2500


Fixed submission (verdict: Accepted):
a, b = list(map(int, input().split()))
c = a % b
if c == a:
  my_result = 1
elif c == 0:
  my_result = a / b
else:
  my_result = (a - c) / b + 1
print(int(my_result))
Problem: p02783
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
h, a = map(int, input().split())
if h % a == 0:
    print(h / a)
else:
    print(int(h / a) + 1)


Failing test case input:
01100 1

Expected output:
1100


Actual output:
1100.0


Fixed submission (verdict: Accepted):
h, a = map(int, input().split())
if h % a == 0:
    print(int(h / a))
else:
    print(int(h / a) + 1)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
h, a = input().split()
H = int(h)
A = int(a)
ans = 0
for i in range(H):
  if H >= 0:
    ans = ans + 1
    H = H - A
  else:
    break
print(ans)

Failing test case input:
11100 2

Expected output:
5550


Actual output:
5551


Fixed submission (verdict: Accepted):
h, a = input().split()
H = int(h)
A = int(a)
ans = 0
for i in range(H):
  if H > 0:
    ans = ans + 1
    H = H - A
  else:
    break
print(ans)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
h, a = map(int, input().split())
print((h+a-1)/a)

Failing test case input:
11110 1

Expected output:
11110


Actual output:
11110.0


Fixed submission (verdict: Accepted):
h, a = map(int, input().split())
print(int((h+a-1)/a))

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
H, A = [int(x) for x in input().split()]
print(math.ceil(A))

Failing test case input:
214 2

Expected output:
107


Actual output:
2


Fixed submission (verdict: Accepted):
import math

H, A = [int(x) for x in input().split()]
print(math.ceil(H/A))

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

if a>=h:
	print(1)
else:
	c = h
	print(c+1)

Failing test case input:
11011 3

Expected output:
3671


Actual output:
11012


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

if h%a==0:
	print(h
else:
	print(h

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
H, A = map(int, input().split())
print(int(math.floor(H/A)+1))

Failing test case input:
11110 1

Expected output:
11110


Actual output:
11111


Fixed submission (verdict: Accepted):
import math
H, A = map(int, input().split())
print(int(math.ceil(H/A)))

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,A = map(int,input().split())
if H%A == 0:
        print(H/A)
else:
        print((H/A)+1)

Failing test case input:
1 10000

Expected output:
1

Actual output:
1.0001


Fixed submission (verdict: Accepted):
H,A = map(int,input().split())
if H%A == 0:
        print(int(H/A))
else:
        print(int(H/A)+1)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H , A =  [int(x) for x in input().split()]
attack = True
count = 0
while(attack):
    H = H - A
    count = count + 1
    if H < 0:
        attack = False

print(count - 1)
        

Failing test case input:
11111 6

Expected output:
1852


Actual output:
1851


Fixed submission (verdict: Accepted):
H , A =  [int(x) for x in input().split()]
attack = True
count = 0

while(attack):
    H = H - A
    count = count + 1
    if H <= 0:
        attack = False

print(count)
Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,A=map(int,input().split())
count = 0
while H >= 0:
  count+=1
  H -= A
print(count)

Failing test case input:
11001 3

Expected output:
3667


Actual output:
3668


Fixed submission (verdict: Accepted):
H,A=map(int,input().split())
count = 0
while H > 0:
  count+=1
  H -= A
print(count)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
h,a = map(int,input().split())

print(math.ceil(h / 4))

Failing test case input:
01100 1

Expected output:
1100


Actual output:
275


Fixed submission (verdict: Accepted):
import math
h,a = map(int,input().split())

print(math.ceil(h / a))

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




def main():
    a,b = map(int, input().split())

    times = a 
    print(times)

if __name__ == '__main__':
    main()

Failing test case input:
01011 7

Expected output:
145


Actual output:
1011


Fixed submission (verdict: Accepted):




def main():
    a,b = map(int, input().split())

    times = (a 
    if (a%b)==0:
        pass
    else:
        times += 1



    print(times)

if __name__ == '__main__':
    main()

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, A = map(int, input().split())

if H > A:
    a = round(H/A)
    if H%A != 0: a += 1
    print(a)
else:
    print(1)

Failing test case input:
11001 6

Expected output:
1834


Actual output:
1835


Fixed submission (verdict: Accepted):
H, A = map(int, input().split())

num = 0
while True:
    H -= A
    num += 1
    if H <= 0:
        break

print(num)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
H, A = map(int, input().split())
print(math.ceil(H/4))

Failing test case input:
10101 3

Expected output:
3367


Actual output:
2526


Fixed submission (verdict: Accepted):
import math
H, A = map(int, input().split())
print(math.ceil(H/A))

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,A=map(float,input().split())

if H%A==0:
    print(H/A)
else:
    print(int(H/A)+1)






Failing test case input:
11000 1

Expected output:
11000


Actual output:
11000.0


Fixed submission (verdict: Accepted):
H,A=map(int,input().split())

if H<=A:
    print(1)
elif H%A==0:
    print(int(H/A))
else:
    print(int(H/A)+1)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
h, a = (int(i) for i in input().split())

if h%a == 0:
  count = h/a
else:
  count = int(h/a)+1
  
print(count)

Failing test case input:
214 2

Expected output:
107


Actual output:
107.0


Fixed submission (verdict: Accepted):
h, a = (int(i) for i in input().split())

if h%a == 0:
  count = int(h/a)
else:
  count = int(h/a)+1
  
print(count)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, A = map(int, input().split())

ans = 0
while H >= 0:
  H -= A
  ans += 1
print(ans)  

Failing test case input:
11110 1

Expected output:
11110


Actual output:
11111


Fixed submission (verdict: Accepted):
H, A = map(int, input().split())

ans = 0
while H > 0:
  H -= A
  ans += 1
print(ans)
Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,A = (int(x) for x in input().split())
 
if not H <= 10^4 and H >= 1:
  False
if not A <= 10^4 and H >= 1:
  False
 
count = 0
while H >= 0:
  count += 1
  H -= A
 
print(count)

Failing test case input:
10101 3

Expected output:
3367


Actual output:
3368


Fixed submission (verdict: Accepted):
import math

H,A = map(int,input().split())
f, i = math.modf(H/A)

if not H <= 10^4 and H >= 1:
  False
if not A <= 10^4 and H >= 1:
  False

if f == 0:
  print(int(i))
if f != 0:
  print(int(i+1))

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,A=map(int,input().split())
a=int(H/A)
if H>=A:
    print(H)
else:
    print(a+1)


Failing test case input:
11000 4

Expected output:
2750


Actual output:
11000


Fixed submission (verdict: Accepted):
H,A=map(int,input().split())

if H%A==0:
    print(int(H/A))
else:
    print(int(H/A)+1)

Problem: p02783
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=input().split()
a=int(a)
b=int(b)
if a%b==0:
  print(a/b)
else:
  print(int((a/b)+1))

Failing test case input:
10000 2

Expected output:
5000


Actual output:
5000.0


Fixed submission (verdict: Accepted):
a,b=input().split()
a=int(a)
b=int(b)
if a%b==0:
  print(int(a/b))
else:
  print(int((a/b)+1))

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m=map(int,input().split())
print(round(n/m))

Failing test case input:
11011 5

Expected output:
2203


Actual output:
2202


Fixed submission (verdict: Accepted):
import math
n,m=map(int,input().split())
print(math.ceil(n/m))

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
A,H= map(int, input().split())
print(math.ceil(H/A))

Failing test case input:
10000 5

Expected output:
2000


Actual output:
1


Fixed submission (verdict: Accepted):
import math
 
H,A = list(map(int, input().split()))
 
print(math.ceil(H/A))

Problem: p02783
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
h,a = map(int,input().split())
print((h+a-1)/a)

Failing test case input:
01100 4

Expected output:
275


Actual output:
275.75


Fixed submission (verdict: Accepted):
h,a = map(int,input().split())
print((h+a-1)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=input().split()
a=int(a)
b=int(b)
if a/b <= 1:
  print(1)
else :
  print(int(a/b)+1)

Failing test case input:
174 2

Expected output:
87


Actual output:
88


Fixed submission (verdict: Accepted):
a,b=input().split()
a=int(a)
b=int(b)
if a/b <= 1:
  print(1)
elif a%b ==0:
  print(int(a/b))
else :
  print(int(a/b)+1)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
H, A = map(int, input().split())
print(int(math.floor(H/A)))

Failing test case input:
11101 2

Expected output:
5551


Actual output:
5550


Fixed submission (verdict: Accepted):
import math
H, A = map(int, input().split())
print(int(math.ceil(H/A)))
Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
a, b = map(float, input().split())
x = a / b
if (x.is_integer() == False):
    print(math.ceil(x))
else:
    print(x)

Failing test case input:
01010 5

Expected output:
202


Actual output:
202.0


Fixed submission (verdict: Accepted):
import math
a, b = map(float, input().split())
x = a / b
if (x.is_integer() == False):
    print(math.ceil(x))
else:
    print(int(x))

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, M=map(int,input().split())
count=1
X=0
while N >= X:
  X = M * count
  count += 1
print(count-1)

Failing test case input:
01010 10

Expected output:
101


Actual output:
102


Fixed submission (verdict: Accepted):
N, M=map(int,input().split())
count=1
X=0
while N > X:
  X = M * count
  count += 1
print(count-1)

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

while(a>b) :
    a -= b
    cnt +=1

    if(a <= b):
        print(cnt)
        break

Failing test case input:
2 10000

Expected output:
1


Actual output:

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

while(a>b) :
    a -= b
    cnt +=1


print(cnt)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input().split(" ")
H = int(a[0])
A = int(a[1])
ans = 0
while H >= 0:
	H -= A
	ans += 1
print(ans)

Failing test case input:
01010 1

Expected output:
1010


Actual output:
1011


Fixed submission (verdict: Accepted):



a = input().split(" ")
H = int(a[0])
A = int(a[1])
ans = 0
while H > 0:
    H -= A
    ans += 1
print(ans)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, A = map(int, input().split())

while H > 0:
    H  -= A

print(H)

Failing test case input:
11101 2

Expected output:
5551


Actual output:
-1


Fixed submission (verdict: Accepted):
H, A = map(int, input().split())

c = 0
while H > 0:
    H -= A
    c += 1

print(c)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
h,a = map(int,input().split())
ans=0
if a>1:
    ans= h
elif a==1:
    ans=h
print(ans)

Failing test case input:
01001 7

Expected output:
143


Actual output:
1001


Fixed submission (verdict: Accepted):
h,a = map(int,input().split())
ans=0
while h>0:
    h = h-a
    ans +=1 
print(ans)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,A = map(int, input().split())




i=1
while H < 0:
    H - A
    i += 1
print(i)

Failing test case input:
01010 3

Expected output:
337


Actual output:
1


Fixed submission (verdict: Accepted):
H,A = map(int, input().split())




i=0
while H > 0:
    H  = H - A
    i += 1
print(i)

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

t=h%a
h-=t
c=int(h/a)
print(c)

Failing test case input:
11011 6

Expected output:
1836


Actual output:
1835


Fixed submission (verdict: Accepted):
import math
h,a=map(int,input().split())
t=math.ceil(h/a)
print(t)
Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
c=(int(a/b))+1
print(c)

Failing test case input:
10110 2

Expected output:
5055


Actual output:
5056


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
c=(int(a/b))
if(a%b>0):
    c=c+1
print(c)

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

import math

n = input().split(" ")
h = int(n[0])
a = int(n[1])

def main(health, attack):
    total = health / attack
    return math.ceil(total)


if __name__ == '__main__':
    main(h, a)

Failing test case input:
00101 2

Expected output:
51


Actual output:

Fixed submission (verdict: Accepted):

import math

n = input().split(" ")
h = int(n[0])
a = int(n[1])

def main(health, attack):
    total = health / attack
    print(math.ceil(total))


if __name__ == '__main__':
    main(h, a)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
h,a = map(int,input().split())
if a>h:
  att = 1
else:
  if h%a==0:
    att = h/a
  elif h%a!=0:
    att = h/a+1
print(att)

Failing test case input:
11000 8

Expected output:
1375


Actual output:
1375.0


Fixed submission (verdict: Accepted):
h,a = map(int,input().split())
if a>h:
  att = 1
else:
  if h%a==0:
    att = h/a
  elif h%a!=0:
    att = (h
print(round(att))

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
h,a = map(int,input().split())
n = 0
while h > 0:
  n += 1
  h -= a

Failing test case input:
10010 1

Expected output:
10010


Actual output:

Fixed submission (verdict: Accepted):
h,a = map(int,input().split())
n = 0
while h > 0:
  n += 1
  h -= a
print(n)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, A = map(int, input().split())

a = int(H/A)
b = int(H%A)

if b==2:
  b+=1

print(b)

Failing test case input:
11011 4

Expected output:
2753


Actual output:
3


Fixed submission (verdict: Accepted):
H, A = map(int, input().split())

a = int(H/A)
b = int(H%A)

if b!=0:
  a+=1

print(a)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X=list(map(int, input().split()))
Y=(X[0]+X[1]-1)/X[1]

print(Y)

Failing test case input:
10101 1

Expected output:
10101


Actual output:
10101.0


Fixed submission (verdict: Accepted):
X=list(map(int, input().split()))
Y=(X[0]+X[1]-1)/X[1]

print(int(Y))

Problem: p02783
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
h, a = map(int, input().split())
hits = 0
while h-a > 0:
  h = h - a
  hits += 1 
print(hits)

Failing test case input:
11011 6

Expected output:
1836


Actual output:
1835


Fixed submission (verdict: Accepted):
h, a = map(int, input().split())
hits = 0
while h-a > 0:
  h = h - a
  hits += 1 
print(hits + 1)