ZhenlongDai/ACPR huggingface dataset:
Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
h,a = map(int,input().split())
c = 0
while(True):
    h = h - a
    if(h < 0):
        c += 1
        break

    c += 1

print(c)



Failing test case input:
10101 3

Expected output:
3367


Actual output:
3368


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

    c += 1

print(c)

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

x = a/b
if x%1 == 0:
	print(x)
else:
	print(int(x)+1)

Failing test case input:
174 2

Expected output:
87


Actual output:
87.0


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

x = h/a

if x%1 == 0:
	print(int(x))
else:
	print(int(x)+1)

Problem: p02783
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
h, a = [int(i) for i in input("").split(" ")]
print((h+a-1)/a)

Failing test case input:
11100 2

Expected output:
5550


Actual output:
5550.5


Fixed submission (verdict: Accepted):
h, a = [int(i) for i in input("").split(" ")]
print((h+a-1)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from sys import stdin

H,A = [int(x) for x in stdin.readline().rstrip().split()]
if H%A==0:
    print(H/A)
elif A>H :
    print(1)
else :
    print(1+H/A)

Failing test case input:
10001 4

Expected output:
2501


Actual output:
2501.25


Fixed submission (verdict: Accepted):
from sys import stdin

H,A = [int(x) for x in stdin.readline().rstrip().split()]
if H%A==0:
    print(int(H/A))
elif A>H :
    print(1)
else :
    print(1+int(H/A))

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

H, A = map(int, input().split())


s = 0
counter = 1
while counter>0:
    if H - A >0:
        H = H - A
        s = s + 1
        counter = counter
    else:
        counter = counter - 1
        print(s)

Failing test case input:
10010 2

Expected output:
5005


Actual output:
5004


Fixed submission (verdict: Accepted):

H, A = map(int, input().split())


s = 1
counter = 1
while counter>0:
    if H - A >0:
        H = H - A
        s = s + 1
        counter = counter
    else:
        H = H - A
        s = s
        counter = counter - 1
        print(s)

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

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

Failing test case input:
11100 2

Expected output:
5550


Actual output:
5551


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.4.3), verdict: Wrong Answer):
import math
h, a = list(map(int, input().split())) 
print(int(math.floor(h/a)))

Failing test case input:
2 10000

Expected output:
1


Actual output:
0


Fixed submission (verdict: Accepted):
import math
h, a = list(map(int, input().split())) 
print(int(math.ceil(h/a)))
Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
h,a=list(map(int,input().split()))
i=0
while h-a*i>=0:
  i=i+1
print(i)

Failing test case input:
01110 10

Expected output:
111


Actual output:
112


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

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


Failing test case input:
11001 3

Expected output:
3667


Actual output:
3668


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())
attack=1
while H-(A*attack)>=0:
  attack+=1
print (attack)

Failing test case input:
11001 3

Expected output:
3667


Actual output:
3668


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

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

Failing test case input:
10000 3

Expected output:
3334


Actual output:
3333


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):
import math
H,A = map(int,input().split())
X = math.ceil(H/A)

Failing test case input:
11000 2

Expected output:
5500


Actual output:

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

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

Failing test case input:
11110 1

Expected output:
11110


Actual output:
11110.0


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

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,A = map(int,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:
214 2

Expected output:
107


Actual output:
108


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):
N,M = (int(x) for x in input().split())
 
K = N/M
if N < M:
  print(1)
elif N%M == 0:
  print(K)
else:
  print(K+1)

Failing test case input:
11011 5

Expected output:
2203


Actual output:
2203.2


Fixed submission (verdict: Accepted):
N,M = (int(x) for x in input().split())
 
K = int(N/M)
if N < M:
  print(1)
elif N%M == 0:
  print(K)
else:
  print(K+1)
Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
h,a=map(int,input().split())
i=0
while h-a*i>=0:
  i+=1
print(i)

Failing test case input:
01100 2

Expected output:
550


Actual output:
551


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

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

Failing test case input:
10101 6

Expected output:
1684


Actual output:
1683


Fixed submission (verdict: Accepted):
import math
h, a = list(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())
count=0
while h>=0:
  h-=a
  count+=1
print(count) 

Failing test case input:
10010 1

Expected output:
10010


Actual output:
10011


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 (PyPy3 (2.4.0), verdict: Wrong Answer):
H,A=map(int,input().split())
if H/A>0:
  print(int(H/A)+1)
else:
  print(H/A)
  

Failing test case input:
01100 4

Expected output:
275


Actual output:
276


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

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

if(h<a):
  print("1")
elif(h%a != 0):
  print(h/a+1)
else:
  print(h/a)

Failing test case input:
01110 10

Expected output:
111


Actual output:
111.0


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

if(h<a):
  print("1")
elif(h%a != 0):
    print(h
else:
    print(h

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from sys import stdin

H,A = [int(x) for x in stdin.readline().rstrip().split()]
if H%A==0:
    print(H%A)
else :
    print(1+H%A)


Failing test case input:
10110 2

Expected output:
5055


Actual output:
0


Fixed submission (verdict: Accepted):
from sys import stdin

H,A = [int(x) for x in stdin.readline().rstrip().split()]
if H%A==0:
    print(int(H/A))
elif A>H :
    print(1)
else :
    print(1+int(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:
10010 3

Expected output:
3337


Actual output:
3337.6666666666665


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 (PyPy3 (7.3.0), verdict: Wrong Answer):
h, a = map(int, input().split())

count = 0
while h >= 0:
  h -= a
  count += 1
print(count)

Failing test case input:
01010 10

Expected output:
101


Actual output:
102


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 = input().split()

n = round((int(H)/int(A)) + 0.1)

print(n)

Failing test case input:
10101 9

Expected output:
1123


Actual output:
1122


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.4.3), verdict: Wrong Answer):
import math
h,a=map(int,input().split())
print (math.floor(h/a))

Failing test case input:
01010 6

Expected output:
169


Actual output:
168


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):
import math
h, a = map(int, input().split())

print(math.ceil(a / h))

Failing test case input:
10000 6

Expected output:
1667


Actual output:
1


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):
n,k = map(int,input().split())
print((n+k-1)/k)

Failing test case input:
11011 7

Expected output:
1573


Actual output:
1573.857142857143


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

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
a,b=map(int,input().split())
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=map(int,input().split())
if a<=b:
    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 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 H < 1:
        count = count + 1
        H = H - A

    print(count)

    return


 
if __name__ == "__main__":
    propare()

Failing test case input:
109 2

Expected output:
55


Actual output:
0


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):
s = input().split()
de = int(s[0])
count = 0

while de >= 0:
    de = int(de) - int(s[1])
    
    count += 1

print(count)


Failing test case input:
11011 7

Expected output:
1573


Actual output:
1574


Fixed submission (verdict: Accepted):
s = input().split()  
de = int(s[0])
count = 0

while de > 0:
    de = int(de) - int(s[1])
    
    count += 1

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

Failing test case input:
10101 9

Expected output:
1123


Actual output:
0


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

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:
01100 2

Expected output:
550


Actual output:
551


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):
import math
def resolve_A():
    H, A = map(int, input().split())
    if H % A != 0:
        print(math.ceil(H / A))
    else:
        print(H / A)
resolve_A()

Failing test case input:
01000 1

Expected output:
1000


Actual output:
1000.0


Fixed submission (verdict: Accepted):
import math
def resolve_A():
    H, A = map(int, input().split())
    if H % A != 0:
        print(math.ceil(H / A))
    else:
        print(int(H / A))
resolve_A()

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

Failing test case input:
10101 3

Expected output:
3367


Actual output:
3368


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

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

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

print(num)


Failing test case input:
01001 7

Expected output:
143


Actual output:
144


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):
def two_int():
    N, K = map(int, input().split())
    return N,K

def one_int():
    return int(input())

def one_str():
    return input()

def many_int():
    return list(map(int, input().split()))

N,M = two_int()

temp = N/M

if temp.is_integer():
    print(temp)
else:
    print(int(temp)+1)

Failing test case input:
10010 2

Expected output:
5005


Actual output:
5005.0


Fixed submission (verdict: Accepted):
def two_int():
    N, K = map(int, input().split())
    return N,K

def one_int():
    return int(input())

def one_str():
    return input()

def many_int():
    return list(map(int, input().split()))

N,M = two_int()

temp = N/M

if temp.is_integer():
    print(int(temp))
else:
    print(int(temp)+1)

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

Failing test case input:
11010 3

Expected output:
3670


Actual output:
3671


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 = map(int,input().split())

ans = int(0)

while h >= 0:
  h = h - a
  ans += 1
print(ans)


Failing test case input:
01100 2

Expected output:
550


Actual output:
551


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

ans = int(0)

while h > 0:
  h = h - a
  ans += 1
print(ans)

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

Failing test case input:
174 2

Expected output:
87


Actual output:
88


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

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

Failing test case input:
11110 1

Expected output:
11110


Actual output:
11111


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

Problem: p02783
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N, M =map(int,input().split())
print(N)

Failing test case input:
01011 5

Expected output:
203


Actual output:
1011


Fixed submission (verdict: Accepted):
x,y= map(int,input().split())
s = -(-x
print(s)

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

while h >= 0:
    h -= a
    cnt += 1

print(cnt)


Failing test case input:
01001 1

Expected output:
1001


Actual output:
1002


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

while h > 0:
    h -= a
    cnt += 1

print(cnt)

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

li = input("入力してね").split()
li = [int(i) for i in li]

while 0 < li[0]:
    a += 1
    li[0] -= li[1]

print(a)

Failing test case input:
11101 2

Expected output:
5551


Actual output:
入力してね5551


Fixed submission (verdict: Accepted):
a = 0

li = input().split()
li = [int(i) for i in li]

while 0 < li[0]:
    a += 1
    li[0] -= li[1]

print(a)

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

Failing test case input:
214 2

Expected output:
107


Actual output:
108


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

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

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

print(count)


Failing test case input:
01100 2

Expected output:
550


Actual output:
551


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

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

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

Failing test case input:
10010 3

Expected output:
3337


Actual output:
10009.5


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

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

Failing test case input:
10110 1

Expected output:
10110


Actual output:
10111


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

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] + 1)
else:
  print(i[0] / i[1]) 

Failing test case input:
10110 1

Expected output:
10110


Actual output:
10110.0


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

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

Failing test case input:
11011 5

Expected output:
2203


Actual output:
11011


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 = input().split()
H = int(H)
A = int(A)
for i in range(H):
  if i * A >= H:
    print(i)
    break

Failing test case input:
10000 1

Expected output:
10000

Actual output:

Fixed submission (verdict: Accepted):
H,A = input().split()
H = int(H)
A = int(A)
for i in range(1,H+1):
  if i * A >= H:
    print(i)
    break

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

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

print(attack_cnt)

Failing test case input:
10010 2

Expected output:
5005


Actual output:
5006


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

print(attack_cnt)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c,d=(int(x) for x in input().split())
a=c
print(a)

Failing test case input:
10001 2

Expected output:
5001


Actual output:
10001


Fixed submission (verdict: Accepted):
c,d=(int(x) for x in input().split())
a=-(-c
print(a)

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H, A = map(int, input().split())
times, mod = divmod(H, A)
if mod != 0:
    times += times + 1
print(times)


Failing test case input:
10001 2

Expected output:
5001


Actual output:
10001


Fixed submission (verdict: Accepted):
H, A = map(int, input().split())
times, mod = divmod(H, A)
if mod != 0:
    times += 1
print(times)
Problem: p02783
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
i=0
H,A=map(int,input().split())
while H>=0:
    H=H-A
    i=i+1
print(i)

Failing test case input:
11010 2

Expected output:
5505


Actual output:
5506


Fixed submission (verdict: Accepted):
i=0
H,A=map(int,input().split())
while H>0:
    H=H-A
    i=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
    print(cnt)

Failing test case input:
2 10000

Expected output:
1


Actual output:

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())
cnt=0
while():
  h=h-a
  if h>=0:
    cnt+=1
  else:
    print(cnt)

Failing test case input:
01000 1

Expected output:
1000


Actual output:

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

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
class Main:
    import math
    s = list(map(int, input().split()))
    h = s[0]
    a = s[1]
    cnt = 0
    if h <= a:
        cnt = 1
        print(cnt)
    else:
        cnt = math.ceil(h/a)

    print(cnt)


Failing test case input:
2 10000

Expected output:
1


Actual output:
1
1


Fixed submission (verdict: Accepted):
class Main:
    s = list(map(int, input().split()))
    h = s[0]
    a = s[1]
    cnt = 0
    if h >= a:
        while h > 0:
            h -= a
            cnt += 1

    else:
        cnt = 1
    print(cnt)

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:
10010 2

Expected output:
5005


Actual output:
0


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

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
h,a = map(int,input().split())
count = 0
k = h
while k >= 0:
    hp =k-a
    count +=1
    k = hp
if a == 1:
    print(h)
else:
    print(count)

Failing test case input:
10000 4

Expected output:
2500


Actual output:
2501


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

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

H, M = map(int, input().split())
print(int((H+M-1))/M)


Failing test case input:
11011 7

Expected output:
1573


Actual output:
1573.857142857143


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

count = 0
while HP<0:
    HP = HP - A
    count += 1

print(count)

Failing test case input:
11101 2

Expected output:
5551


Actual output:
0


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

count = 0
while HP > 0:
    HP = HP - A
    count += 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 = h - a
    ans += 1
    


Failing test case input:
11101 2

Expected output:
5551


Actual output:

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


s = 0
counter = 1
while counter>0:
    if H - A >=0:
        H = H - A
        s = s + 1
        counter = counter
    else:
        H = H - A
        s = s
        counter = counter - 1
        print(s)

Failing test case input:
11101 6

Expected output:
1851


Actual output:
1850


Fixed submission (verdict: Accepted):

H, A = map(int, input().split())


s = 1
counter = 1
while counter>0:
    if H - A >0:
        H = H - A
        s = s + 1
        counter = counter
    else:
        H = H - A
        s = s
        counter = counter - 1
        print(s)

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

Failing test case input:
01010 6

Expected output:
169


Actual output:
0


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

Problem: p02783
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a<=b:
    print(1)
elif 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=map(int,input().split())
if a<=b:
    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):
H, A = map(int, input().split())
print(int(H/A)+1)


Failing test case input:
01001 7

Expected output:
143


Actual output:
144


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

print(-(-H

Problem: p02783
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=list(map(int,input().split()))
count=0
while (a<0):
  count+=1
  a-=b
print(count)
  

Failing test case input:
11011 3

Expected output:
3671


Actual output:
0


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

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

Failing test case input:
10101 2

Expected output:
5051


Actual output:
5050


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

Failing test case input:
01100 4

Expected output:
275


Actual output:
275.0


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

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
else:
    
    print(count-1)

Failing test case input:
11111 6

Expected output:
1852


Actual output:
1851


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

count=0

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

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:
01100 2

Expected output:
550


Actual output:
551


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())
if H % A == 0:
  print(H/A)
else:
  print(H/A + 1)

Failing test case input:
11011 5

Expected output:
2203


Actual output:
2203.2


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 = map(int, input().split())

n = int(h / a) + 1

print(str(n))


Failing test case input:
10010 2

Expected output:
5005


Actual output:
5006


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

n = math.ceil(h/a)
print(str(n))

Problem: p02783
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
H, A = list(map(int, input().split()))

ans = H 
print(ans)


Failing test case input:
10000 2

Expected output:
5000


Actual output:
10000


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

ans = - (-H 
print(ans)
Problem: p03844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(str,input().split())
a=int(a)
c=int(c)
answer=0
if b=="+":
    print(a+c)
if c=="-":
    print(a-c)

Failing test case input:
44 - 2

Expected output:
42


Actual output:

Fixed submission (verdict: Accepted):
a,b,c=map(str,input().split())
a=int(a)
c=int(c)
answer=0
if b=="+":
    print(a+c)
if b=="-":
    print(a-c)

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



a, b, c = input().split()
a = int(a)
c = int(c)

if b == "+":
  print(a + c)
elif b == "=":
  print(a - c)

  



Failing test case input:
7 - 45

Expected output:
-38


Actual output:

Fixed submission (verdict: Accepted):



a, b, c = input().split()
a = int(a)
c = int(c)

if b == "+":
  print(a + c)
elif b == "-":
  print(a - c)

Problem: p03844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A=list(input().split())
print(A)
print(int(A[0])+int(A[2]) if A[1]=='+' else int(A[0])-int(A[2]))


Failing test case input:
7 - 4

Expected output:
3


Actual output:
['7', '-', '4']
3


Fixed submission (verdict: Accepted):
A=list(input().split())
print(int(A[0])+int(A[2]) if A[1]=='+' else int(A[0])-int(A[2]))

Problem: p03844
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()
eval(s)

Failing test case input:
8 + 5

Expected output:
13


Actual output:

Fixed submission (verdict: Accepted):
s=input()
print(eval(s))

Problem: p03844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,op,B=input().split()
a=int(A)
b=int(B)

if op=="+":
  print(a+b)
  
elif op=="=":
  print(a-b)

Failing test case input:
0 - 69

Expected output:
-69


Actual output:

Fixed submission (verdict: Accepted):
A,op,B=input().split()
a=int(A)
b=int(B)
 
if op == "+" :
    print(a+b)
  
elif op == "-" :
    print(a-b)

Problem: p03844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = list(input().split())
b = int(a[0])
c = int(a[2])
print(a[1])
if a[1] == '+':
    print(b+c)
else:
    print(b-c)

Failing test case input:
0 + -2

Expected output:
-2


Actual output:
+
-2


Fixed submission (verdict: Accepted):
a = list(input().split())
b = int(a[0])
c = int(a[2])
if a[1] == '+':
    print(b+c)
else:
    print(b-c)

Problem: p03844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
eval(input())

Failing test case input:
0 + 112

Expected output:
112


Actual output:

Fixed submission (verdict: Accepted):
print(eval(input()))

Problem: p03844
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a = input().split()
a[0], a[2] = map(int, a[::2])
if a[0] == "+":
    print(a[0]+a[2])
else:
    print(a[0]-a[2])


Failing test case input:
0 + 2

Expected output:
2


Actual output:
-2


Fixed submission (verdict: Accepted):
a = input().split()
a[0], a[2] = map(int, a[::2])
if a[1] == "+":
    print(a[0]+a[2])
else:
    print(a[0]-a[2])
Problem: p03844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,x,b = map(str,input().split())
if x== '+':
    print(int(a)+int(b))
elif x== '+':
    print(int(a)-int(b))

Failing test case input:
1 - 27

Expected output:
-26


Actual output:

Fixed submission (verdict: Accepted):
a,x,b = map(str,input().split())
if x== '+':
    print(int(a)+int(b))
elif x== '-':
    print(int(a)-int(b))

Problem: p03844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l = list(input().split())
if l[1] == "+":
  print(int(l[0])+int(l[2]))
else:
  print(int(l[0])+int(l[2]))

Failing test case input:
-1 - 93

Expected output:
-94


Actual output:
92


Fixed submission (verdict: Accepted):
l = list(input().split())
if l[1] == "+":
  print(int(l[0])+int(l[2]))
else:
  print(int(l[0])-int(l[2]))

Problem: p03844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
instr = list(map(str, input().split()))
a = int(instr[0])
b = int(instr[2])
op = instr[1]
print (a, op, b) 
if op == "+":
  print (a+b)
else:
  print(a-b)

Failing test case input:
86 - 2

Expected output:
84


Actual output:
86 - 2
84


Fixed submission (verdict: Accepted):
instr = list(map(str, input().split()))
a = int(instr[0])
b = int(instr[2])
op = instr[1] 
if op == "+":
  print (a+b)
else:
  print(a-b)

Problem: p03844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
print(exec(s))

Failing test case input:
0 + 23

Expected output:
23


Actual output:
None


Fixed submission (verdict: Accepted):
s = input()
print(eval(s))

Problem: p03844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input().split()
a=int(s[0])
op=s[1]
b=int(s[2])
if op=="+":
 print(a+b)
elif op=="=":
 print(a-b)

Failing test case input:
1 - 1

Expected output:
0


Actual output:

Fixed submission (verdict: Accepted):
s=input().split()
a=int(s[0])
op=s[1]
b=int(s[2])
if op=="+":
 print(a+b)
elif op=="-":
 print(a-b)

Problem: p03844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=list(input().split())
if b=="+":
        print(int(a)+int(c))
else:
        print(int(a)+int(c))   

Failing test case input:
-1 - 35

Expected output:
-36


Actual output:
34


Fixed submission (verdict: Accepted):
a,b,c=list(input().split())
if b=="+":
        print(int(a)+int(c))
else:
        print(int(a)-int(c))

Problem: p03844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,op,B=(str(x) for x in input().split())
if op=="+":
    print(int(A)+int(B))
elif op=="-":
    print(int(A)+int(B))


Failing test case input:
1 - 1

Expected output:
0


Actual output:
2


Fixed submission (verdict: Accepted):
A,op,B=(str(x) for x in input().split())
if op=="+":
    print(int(A)+int(B))
elif op=="-":
    print(int(A)-int(B))

Problem: p03844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,op,b=map(str,input().split())

if op=='+':
  print(int(a)+int(b))
else:
  print(int(a)*int(b))

Failing test case input:
3 - 55

Expected output:
-52


Actual output:
165


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

if op=='+':
  print(int(a)+int(b))
else:
  print(int(a)-int(b))
Problem: p03844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
data = input().split()

if data[1] in "+":
    print(int(data[0]) + int(data[2]))

Failing test case input:
17 - -2

Expected output:
19


Actual output:

Fixed submission (verdict: Accepted):
data = input().split()

if data[1] in "+":
    print(int(data[0]) + int(data[2]))
else:
    print(int(data[0]) - int(data[2]))

Problem: p03844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print( input() )

Failing test case input:
3 - 22

Expected output:
-19


Actual output:
3 - 22


Fixed submission (verdict: Accepted):
print( eval( input() ) )

Problem: p03844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, op, b = input().split()
if op == '+':
  print(int(a)+int(b))
else:
  print(int(a)+int(b))

Failing test case input:
5 - 22

Expected output:
-17


Actual output:
27


Fixed submission (verdict: Accepted):
a, op, b = input().split()
if op == '+':
  print(int(a)+int(b))
else:
  print(int(a)-int(b))

Problem: p03844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B, OP = input().split()


if OP =="+":
    print(int(A) + int(B))
elif OP =="-":
    print(int(A)-int(B))

Failing test case input:
0 + 23

Expected output:
23


Actual output:

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


if op =="+":
    print(int(A) + int(B))
elif op =="-":
    print(int(A)-int(B))

Problem: p03844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,op,B = [str(i) for i in input().split()]

if op == '+':
    ans = int(A)+int(B)
else:
    ans =int(A)-int(B)
    
    print(ans)

Failing test case input:
0 + 55

Expected output:
55


Actual output:

Fixed submission (verdict: Accepted):
A,op,B = [str(i) for i in input().split()]

if op == '+':
    ans = int(A)+int(B)
else:
    ans =int(A)-int(B)
    
print(ans)

Problem: p03844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=input().split()
if b=='+0':print(int(a)+int(c))
else:print(int(a)-int(c))

Failing test case input:
0 + 21

Expected output:
21


Actual output:
-21


Fixed submission (verdict: Accepted):
a,b,c=input().split()
if b=='+':print(int(a)+int(c))
else:print(int(a)-int(c))

Problem: p03844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, Op, B = input().split()
A = int(A)
B = int(B)
 
if A == '+':
    print(A+B)
elif Op == '-':
    print(A-B)

Failing test case input:
23 + 2

Expected output:
25


Actual output:

Fixed submission (verdict: Accepted):
A, Op, B = input().split()
A = int(A)
B = int(B)
 
if Op == '+':
    print(A+B)
elif Op == '-':
    print(A-B)

Problem: p03844
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
x = [str(e) for e in input().split()]
if(x[1] == '+'):
  ans = int(x[0]) + int(x[2])
else:
  ans = int(x[0]) + int(x[2])
print(ans)

Failing test case input:
1 - 23

Expected output:
-22


Actual output:
24


Fixed submission (verdict: Accepted):
x = [str(e) for e in input().split()]
if(x[1] == '+'):
  ans = int(x[0]) + int(x[2])
else:
  ans = int(x[0]) - int(x[2])
print(ans)
Problem: p03844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
aopb = input().split()
print(aopb)

if aopb[1] == '+':
    print(int(aopb[0]) + int(aopb[2]))
else:
    print(int(aopb[0]) - int(aopb[2]))


Failing test case input:
2 - 14

Expected output:
-12


Actual output:
['2', '-', '14']
-12


Fixed submission (verdict: Accepted):
aopb = input().split()

if aopb[1] == '+':
    print(int(aopb[0]) + int(aopb[2]))
else:
    print(int(aopb[0]) - int(aopb[2]))

Problem: p03844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
eval(input())

Failing test case input:
2 - 32

Expected output:
-30


Actual output:

Fixed submission (verdict: Accepted):
print(eval(input()))

Problem: p03844
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,op,B=input().split()
a=int(A)
b=int(B)
 
if op=="+":
    print(a+b)
  
elif op=="=":
    print(a-b)

Failing test case input:
5 - 7

Expected output:
-2

Actual output:

Fixed submission (verdict: Accepted):
A,op,B=input().split()
a=int(A)
b=int(B)
 
if op == "+" :
    print(a+b)
  
elif op == "-" :
    print(a-b)
Problem: p04029
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
print(n * (n + 1) / 2)

Failing test case input:
-845

Expected output:
356590


Actual output:
356590.0


Fixed submission (verdict: Accepted):
n = int(input())
print(n * (n + 1)

Problem: p04029
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
print((a*(a-1))/2)

Failing test case input:
-937

Expected output:
438516


Actual output:
439453.0


Fixed submission (verdict: Accepted):
a = int(input())
print((a*(a+1))

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


N=int(input())

print((N+1)*N/2)

Failing test case input:
-249

Expected output:
30876


Actual output:
30876.0


Fixed submission (verdict: Accepted):


N=int(input())

print(int((N+1)*N/2))

Problem: p04029
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())
print(N*(N+1)/2)

Failing test case input:
-164

Expected output:
13366


Actual output:
13366.0


Fixed submission (verdict: Accepted):
N=int(input())
print(N*(N+1)

Problem: p04029
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
print(N * (N + 1) / 2)

Failing test case input:
-164

Expected output:
13366


Actual output:
13366.0


Fixed submission (verdict: Accepted):
N = int(input())
print(int(N * (N + 1) / 2))

Problem: p04029
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
print((1+n)*n/2)

Failing test case input:
-299

Expected output:
44551


Actual output:
44551.0


Fixed submission (verdict: Accepted):
n=int(input())
print(int((1+n)*n/2))

Problem: p04029
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
print(((1 + n) * n) / 2)


Failing test case input:
-254

Expected output:
32131


Actual output:
32131.0


Fixed submission (verdict: Accepted):
n = int(input())
print(int(((1 + n) * n) / 2))

Problem: p04029
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
print(N*(N+1)/2)

Failing test case input:
-792

Expected output:
313236


Actual output:
313236.0


Fixed submission (verdict: Accepted):
N = int(input())
print(int(N*(N+1)/2))

Problem: p04029
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
print((1+n)*n*(1/2))

Failing test case input:
-845

Expected output:
356590


Actual output:
356590.0


Fixed submission (verdict: Accepted):
n = int(input())
print(int((1+n)*n*(1/2)))

Problem: p04029
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())

print(n*(1+n)/2)

Failing test case input:
-937

Expected output:
438516


Actual output:
438516.0


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

print(n*(1+n)

Problem: p04029
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
print(n*(n+1)/2)

Failing test case input:
-845

Expected output:
356590


Actual output:
356590.0


Fixed submission (verdict: Accepted):
n = int(input())
print(int(n*(n+1)/2))
Problem: p04029
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())

print((n * (n + 1)) / 2)


Failing test case input:
-299

Expected output:
44551


Actual output:
44551.0


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

print(int((n * (n + 1)) / 2))

Problem: p04029
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
print((N + 1) * N / 2)

Failing test case input:
-249

Expected output:
30876


Actual output:
30876.0


Fixed submission (verdict: Accepted):
N = int(input())
print(int((N + 1) * N / 2))

Problem: p04029
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
sum=n*(n+1)/2
print(sum)

Failing test case input:
-198

Expected output:
19503


Actual output:
19503.0


Fixed submission (verdict: Accepted):
n=int(input())
sum=n*(n+1)/2
print(int(sum))

Problem: p04029
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
print(int(a*(a-1)/2))

Failing test case input:
-164

Expected output:
13366


Actual output:
13530


Fixed submission (verdict: Accepted):
a=int(input())
print(int(a*(a+1)/2))

Problem: p04029
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
print(n*(n+1)/2)

Failing test case input:
-299

Expected output:
44551


Actual output:
44551.0


Fixed submission (verdict: Accepted):
n=int(input())
print(n*(n+1)

Problem: p04029
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x = int(input())
print(x*(x+1)/2)

Failing test case input:
-465

Expected output:
107880


Actual output:
107880.0


Fixed submission (verdict: Accepted):
x = int(input())
print(int(x*(x+1)/2))

Problem: p04029
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n=int(input())
print((n*(n+1))/2)

Failing test case input:
-164

Expected output:
13366


Actual output:
13366.0


Fixed submission (verdict: Accepted):
n=int(input())
print(int(n*(n+1)/2))

Problem: p04029
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
ans = N * (N + 1) / 2
print(ans)

Failing test case input:
-198

Expected output:
19503


Actual output:
19503.0


Fixed submission (verdict: Accepted):
N = int(input())
ans = int(N * (N + 1) / 2)
print(ans)

Problem: p04029
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
print((n+1)*n/2)

Failing test case input:
-647

Expected output:
208981


Actual output:
208981.0


Fixed submission (verdict: Accepted):
n = int(input())
print((n+1)*n

Problem: p04029
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
print(n*n-1)

Failing test case input:
-845

Expected output:
356590


Actual output:
714024


Fixed submission (verdict: Accepted):
n = int(input())
print(n*(n+1)

Problem: p04029
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
print((N + 1) * N / 2)

Failing test case input:
-198

Expected output:
19503


Actual output:
19503.0


Fixed submission (verdict: Accepted):
N = int(input())
print(int((N + 1) * N / 2))
Problem: p04029
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
print(N*(N+1)/2)

Failing test case input:
-299

Expected output:
44551


Actual output:
44551.0


Fixed submission (verdict: Accepted):
N=int(input())
print(int(N*(N+1)/2))

Problem: p04029
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
if n == 1:
  print(n)
else:
  print(n * (n + 1) / 2)


Failing test case input:
-164

Expected output:
13366


Actual output:
13366.0


Fixed submission (verdict: Accepted):
n = int(input())
if n == 1:
  print(n)
else:
  print(int(n * (n + 1) / 2))

Problem: p04029
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
print(N*(N+1)/2)

Failing test case input:
-198

Expected output:
19503


Actual output:
19503.0


Fixed submission (verdict: Accepted):
N = int(input())
print(N*(N+1)

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


N = int(input())

print(N*(N+1)/2)

Failing test case input:
-198

Expected output:
19503


Actual output:
19503.0


Fixed submission (verdict: Accepted):


N = int(input())

print(int(N*(N+1)/2))

Problem: p04029
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

print((N*(N+1))/2)

Failing test case input:
-198

Expected output:
19503


Actual output:
19503.0


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

print((N*(N+1))

Problem: p04029
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
print((n + 1) * n / 2)

Failing test case input:
-647

Expected output:
208981


Actual output:
208981.0


Fixed submission (verdict: Accepted):
n = int(input())
print(int((n + 1) * n / 2))

Problem: p04029
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
print(N*(N+1)/2)

Failing test case input:
-647

Expected output:
208981


Actual output:
208981.0


Fixed submission (verdict: Accepted):
N = int(input())
print(int(N*(N+1)/2))

Problem: p04029
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
print(n * (n + 1) / 2)


Failing test case input:
-254

Expected output:
32131


Actual output:
32131.0


Fixed submission (verdict: Accepted):
n = int(input())
print (n * (n + 1)

Problem: p04029
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
print((N*(N+1)/2))



Failing test case input:
-198

Expected output:
19503


Actual output:
19503.0


Fixed submission (verdict: Accepted):
N = int(input())
print(round(N*(N+1)/2))

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

a = int(input())

sum = a * (a+1) / 2
print(sum)


Failing test case input:
-937

Expected output:
438516


Actual output:
438516.0


Fixed submission (verdict: Accepted):

a = int(input())

sum = a * (a+1) / 2
print(int(sum))

Problem: p04029
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
print(n*(n+1)/2)

Failing test case input:
-254

Expected output:
32131


Actual output:
32131.0


Fixed submission (verdict: Accepted):
n=int(input())
print(int(n*(n+1)/2))