ZhenlongDai/ACPR huggingface dataset:
Problem: p03409
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
red = [list(map(int, input().split())) for i in range(n)]
blue = [list(map(int, input().split())) for i in range(n)]
red.sort()
blue.sort()
ans = 0
for i in range(n):
    if blue[i][0] > red[0][0] and blue[i][1] > red[0][1]:
        ans += 1
        del red[0]
print(ans)

Failing test case input:
5
0 0
7 3
2 2
4 8
1 6
8 5
6 9
5 4
9 1
2 7

Expected output:
5


Actual output:
3


Fixed submission (verdict: Accepted):
n = int(input())
red = [list(map(int, input().split())) for i in range(n)]
blue = [list(map(int, input().split())) for i in range(n)]
red = sorted(red, key = lambda x: x[1])
blue.sort()
ans = 0
for i in range(n):
    a = 0
    for j in range(len(red)):
        if blue[i][0] > red[j][0] and blue[i][1] > red[j][1]:
            a = j
    if blue[i][0] > red[a][0] and blue[i][1] > red[a][1]:
        ans += 1
        del red[a]
print(ans)

Problem: p03409
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
x = sorted([list(map(int, input().split())) for _ in range(N)], reverse=True)
y = sorted([list(map(int, input().split())) for _ in range(N)], reverse=True)

cnt = 0
idx = 0
for v in y:
  while idx < N and x[idx][0] >= v[0] and x[idx][1] >= v[1]:
    idx += 1
  if idx < N:
    cnt += 1
    idx += 1
  else:
    break
print(cnt)

Failing test case input:
2
2 1
3 0
0 0
1 1

Expected output:
0


Actual output:
1


Fixed submission (verdict: Accepted):
N = int(input())
x = sorted([list(map(int, input().split())) for _ in range(N)], key=lambda x: -x[1])
y = sorted([list(map(int, input().split())) for _ in range(N)])

cnt = 0
for c, d in y:
  for a, b in x:
    if a < c and b < d:
      x.remove([a, b])
      cnt += 1
      break

print(cnt)

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

red = [list(map(int, input().split())) for _ in range(N)]
blue = [list(map(int, input().split())) for _ in range(N)]

red.sort(key=lambda x: x[1], reverse=True)
blue.sort(key=lambda x: x[0], reverse=True)

ans = 0

for b in blue:
    for r in red:
        if r[1] < b[1] and r[0] < b[0]:
            ans += 1
            red.remove(r)
            break

print(ans)


Failing test case input:
5
-1 0
7 1
2 2
4 8
1 6
8 5
6 9
5 4
9 1
2 7

Expected output:
5


Actual output:
4


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

red = [list(map(int, input().split())) for _ in range(N)]
blue = [list(map(int, input().split())) for _ in range(N)]

red.sort(key=lambda x: x[1], reverse=True)
blue.sort(key=lambda x: x[0])

ans = 0

for b in blue:
    for r in red:
        if r[1] < b[1] and r[0] < b[0]:
            ans += 1
            red.remove(r)
            break

print(ans)
Problem: p03409
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
ab = sorted([[int(a) for a in input().split()] for _ in range(n)],reverse=True)
cd = sorted([[int(a) for a in input().split()] for _ in range(n)])
count = 0
for c in cd:
    for a in ab:
        if (a[0]<c[0]) and (a[1]<c[1]):
            count += 1
            ab.append(a)
            break
print(count)

Failing test case input:
5
0 0
2 1
5 5
6 6
7 11
2 2
3 3
2 4
4 8
9 9

Expected output:
3


Actual output:
5


Fixed submission (verdict: Accepted):
n = int(input())
ab = sorted([[int(a) for a in input().split()] for _ in range(n)], reverse=True)
cd = sorted([[int(a) for a in input().split()] for _ in range(n)],key=lambda  x:x[1])
count = 0
for c in cd:
    for a in ab:
        if (a[0]<c[0]) and (a[1]<c[1]):
            count += 1
            ab.remove(a)
            break
print(count)

Problem: p03409
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
    
n=int(input())
r=sorted([list(map(int,input().split())) for i in range(n)])
b=sorted([list(map(int,input().split())) for i in range(n)])
ans=0
for bx,by in b:
    index=-1
    ypoint=-1
    for num,(rx,ry) in enumerate(r):
        if bx>rx and by>ry and ypoint < ry:
            ypoint=ry
            index =num
        if ypoint>=0:
            ans+=1
            r.pop(index)
print(ans)


Failing test case input:
5
0 0
4 1
5 5
6 6
13 11
2 2
6 3
1 4
8 2
9 17

Expected output:
3


Actual output:
4


Fixed submission (verdict: Accepted):
    
n=int(input())
r=sorted([list(map(int,input().split())) for i in range(n)])
b=sorted([list(map(int,input().split())) for i in range(n)])
ans=0
for bx,by in b:
    ypoint=-1
    index=-1
    for num,(rx,ry) in enumerate(r):
        if bx>rx and by>ry and ypoint < ry:
            ypoint=ry
            index =num
    if ypoint>=0:
        ans+=1
        r.pop(index)
print(ans)

Problem: p03409
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
input = sys.stdin.readline
N = int(input())
AB = [list(map(int,input().split())) for _ in range(N)]
CD = [list(map(int,input().split())) for _ in range(N)]
AB.sort(reverse=1)
CD.sort(reverse=1)
ans = 0
for a,b in AB:
    for c,d in CD:
        if a<c and b<d:
            ans+=1
            CD.remove([c,d])
            break
print(ans)


Failing test case input:
5
0 0
7 3
2 2
4 8
1 6
8 5
9 9
5 4
11 1
2 7

Expected output:
5


Actual output:
4


Fixed submission (verdict: Accepted):
import sys
input = sys.stdin.readline
N = int(input())
AB = [list(map(int,input().split())) for _ in range(N)]
CD = [list(map(int,input().split())) for _ in range(N)]
AB.sort(reverse=1,key=lambda x:x[1])
CD.sort()
ans = 0
for c,d in CD:
    for a,b in AB:
        if a<c and b<d:
            ans+=1
            AB.remove([a,b])
            break
print(ans)
Problem: p03409
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
r = sorted([list(map(int, input().split())) for i in range(n)], reverse=True)
b = sorted([list(map(int, input().split())) for i in range(n)])

rd = set()

for i in range(n):
    for j in range(n):
        if j in rd:
            continue
        if b[i][0] > r[j][0] and b[i][1] > r[j][1]:
            rd.add(j)
            break
print(len(rd))

Failing test case input:
5
0 0
7 3
2 2
4 8
1 6
8 5
6 9
5 4
9 1
3 7

Expected output:
5

Actual output:
4


Fixed submission (verdict: Accepted):
n = int(input())
r = sorted([list(map(int, input().split())) for i in range(n)], reverse=True)
b = sorted([list(map(int, input().split())) for i in range(n)])

rd = set()

for i in range(n):
    p = []
    for j in range(n):
        if j in rd:
            continue
        if b[i][0] > r[j][0] and b[i][1] > r[j][1]:
            p.append(r[j] + [j])
    if len(p) > 0:
        p.sort(key=lambda x: x[1], reverse=True)
        rd.add(p[0][2])
print(len(rd))

Problem: p03409
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
input = sys.stdin.readline

N = int(input())
AB = [list(map(int,input().split())) for _ in range(N)]
CD = [list(map(int,input().split())) for _ in range(N)]

ans = 0

for a,b in AB:
    for c,d in CD:
        if a<c and b<d:
            ans+=1
            CD.remove([c,d])
            break
print(ans)

Failing test case input:
5
0 0
7 3
2 2
4 8
1 6
8 5
6 9
5 4
9 1
3 7

Expected output:
5

Actual output:
3


Fixed submission (verdict: Accepted):
import sys
input = sys.stdin.readline
N = int(input())
AB = [list(map(int,input().split())) for _ in range(N)]
CD = [list(map(int,input().split())) for _ in range(N)]
AB.sort(reverse=1,key=lambda x:x[1])
CD.sort()
ans = 0
for c,d in CD:
    for a,b in AB:
        if a<c and b<d:
            ans+=1
            AB.remove([a,b])
            break
print(ans)

Problem: p03409
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
reds = sorted([list(map(int,input().split())) for i in range(n)])
blues = sorted([list(map(int,input().split())) for i in range(n)])

reds.sort(reverse = True)
res = 0

for c,d in blues:
  for a,b in reds:
    if a<c and b<d:
      reds.remove([a,b])
      res+=1
      break
      
print(res)


Failing test case input:
5
0 0
7 3
2 2
4 8
1 6
8 5
6 9
5 4
9 1
3 7

Expected output:
5

Actual output:
4


Fixed submission (verdict: Accepted):
n = int(input())
reds = sorted([list(map(int,input().split())) for i in range(n)],key=lambda reds: -reds[1])
blues = sorted([list(map(int,input().split())) for i in range(n)])

res = 0

for c,d in blues:
  for a,b in reds:
    if a<c and b<d:
      reds.remove([a,b])
      res+=1
      break
      
print(res)
Problem: p03409
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
a=sorted([list(map(int,input().split())) for _ in [0]*n],reverse=True)
b=sorted([list(map(int,input().split())) for _ in [0]*n],reverse=True)
c=0
i=j=0
while j<n:
    i=0
    while i<len(a):
        if a[i][0]<b[j][0] and a[i][1]<b[j][1]:
            c+=1
            del a[i]
            break
        i+=1
    j+=1
print(c)

Failing test case input:
5
0 0
7 3
2 2
4 8
1 6
8 5
9 9
5 4
11 1
2 7

Expected output:
5


Actual output:
4


Fixed submission (verdict: Accepted):
n=int(input())
a=sorted([list(map(int,input().split())) for _ in [0]*n],key=lambda x:[-x[1],x[0]])
b=sorted([list(map(int,input().split())) for _ in [0]*n],key=lambda x:[x[0],-x[1]])
c=0
i=j=0
while j<n:
    i=0
    while i<len(a):
        if a[i][0]<b[j][0] and a[i][1]<b[j][1]:
            c+=1
            del a[i]
            break
        i+=1
    j+=1
print(c)

Problem: p03409
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
lst1 = []
lst2 = []
N = int(input())
for i in range(N):
    lst1.append(list(map(int, input().split())))
for j in range(N):
    lst2.append(list(map(int, input().split())))
lst1.sort()
lst2.sort()
cnt = 0
for c,d in lst2:
    for i,(a,b) in enumerate(lst1):
        if a < c and b < d:
            cnt +=1 
            lst1.pop(i)
print(cnt)

Failing test case input:
5
0 0
4 1
5 5
6 6
13 11
2 2
3 3
2 4
8 8
9 16

Expected output:
3


Actual output:
4


Fixed submission (verdict: Accepted):
N = int(input())
lst1 = []
lst2 = []
for i in range(N):
    lst1.append(list(map(int, input().split())))
for i in range(N):
    lst2.append(list(map(int, input().split())))
lst1.sort()
lst2.sort()
cnt = 0
for i in lst2:
    ans = []
    for j in lst1:
        if i[0] <= j[0]:
            break
        else:
            if i[1] > j[1]:
                ans.append(j[::-1])
    if not ans:
        continue
    else:
        lst1.remove(max(ans)[::-1])
        cnt += 1
print(cnt)

Problem: p03409
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
red = [list(map(int, input().split())) for _ in range(N)]
blue = [list(map(int, input().split())) for _ in range(N)]
red.sort(reverse=True)
blue.sort(reverse=True)
ans = 0

for a, b in red:
    for c, d in blue:
        if a < c and b < d:
            blue.remove([c, d])
            ans += 1
            break

print(ans)

Failing test case input:
5
0 0
7 3
2 2
4 8
1 6
8 5
9 9
5 4
11 1
2 7

Expected output:
5


Actual output:
4


Fixed submission (verdict: Accepted):
N = int(input())
red = [list(map(int, input().split())) for _ in range(N)]
blue = [list(map(int, input().split())) for _ in range(N)]
red.sort()
blue.sort()

for c, d in blue:
    p = []
    dist = []
    for a, b in red:
        if a < c and b < d:
            p.append([a, b])
            dist.append(b)
        elif a >= c:
            break
    if p:
        red.remove(p[dist.index(max(dist))])

print(N - len(red))
Problem: p03409
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
x=sorted([tuple(map(int,input().split()))for i in range(n)])
y=sorted([tuple(map(int,input().split()))for i in range(n)])[::-1]


ans=0
for j in x.copy():
    for i in y.copy():
        s,t=i
        p,q=j
        if p<s and q<t:
            y.remove((s,t))
            x.remove((p,q))
            
            ans+=1
            break
print(ans)

Failing test case input:
5
0 0
2 1
5 5
6 6
7 11
2 2
3 3
2 4
4 8
9 9

Expected output:
3


Actual output:
2


Fixed submission (verdict: Accepted):
n=int(input())
x=sorted([tuple(map(int,input().split()))for i in range(n)],key=lambda x:x[1])[::-1]
y=sorted([tuple(map(int,input().split()))for i in range(n)])


ans=0
for j in x.copy():
    for i in y.copy():
        s,t=i
        p,q=j
        if p<s and q<t:
            y.remove((s,t))
            x.remove((p,q))
            
            ans+=1
            break
    
print(ans)
Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
print(a+b/2)

Failing test case input:
49 0

Expected output:
49


Actual output:
49.0


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y = map(int, input().split())

print(X + Y / 2)

Failing test case input:
88 58

Expected output:
117


Actual output:
117.0


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

print(X + Y

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y=map(int,input().split(" "))
print(x+y/2)


Failing test case input:
14 -3

Expected output:
12


Actual output:
12.5


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y = map(int, input().split())
print(x + y/2)

Failing test case input:
81 58

Expected output:
110

Actual output:
110.0


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y = map(int, input().split())
print(X+Y/2)

Failing test case input:
2 499

Expected output:
251


Actual output:
251.5


Fixed submission (verdict: Accepted):
X, Y = map(int, input().split())
print(X+Y

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y = map(int, input().split())
print(x+(y/2))


Failing test case input:
0 142

Expected output:
71


Actual output:
71.0


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y=map(int,input().split())
print(x+y/2)

Failing test case input:
37 -12

Expected output:
31


Actual output:
31.0


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X,Y=map(int, input().split())

print(X+Y/2)

Failing test case input:
19 21

Expected output:
29


Actual output:
29.5


Fixed submission (verdict: Accepted):
X,Y=map(int, input().split())
print(X+Y

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y = map(int, input().split(" "))
print(X + (Y / 2))

Failing test case input:
3 -28

Expected output:
-11


Actual output:
-11.0


Fixed submission (verdict: Accepted):
X, Y = map(int, input().split())
print(X + Y

Problem: p03219
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x,y=map(int,input().split())
print(x + y/2)

Failing test case input:
5 -28

Expected output:
-9


Actual output:
-9.0


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y = map(int,input().split())
print(X + Y/2)

Failing test case input:
41 -9

Expected output:
36


Actual output:
36.5


Fixed submission (verdict: Accepted):
X, Y = map(int,input().split())
print(X + Y
Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X,Y = map(int, input().split())

print(X +(Y/2))

Failing test case input:
23 -9

Expected output:
18


Actual output:
18.5


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

print(X + Y

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X,Y=map(int,input().split())
print(X+Y/2)

Failing test case input:
-11 -1

Expected output:
-12


Actual output:
-11.5


Fixed submission (verdict: Accepted):
X,Y=map(int,input().split())
print(X+Y

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = [int(_) for _ in input().split()]
print(a + b/2)

Failing test case input:
88 27

Expected output:
101


Actual output:
101.5


Fixed submission (verdict: Accepted):
a,b = [int(_) for _ in input().split()]
print(a + b

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int, open(0).read().split())
print(str(a + b/2))

Failing test case input:
0 1003

Expected output:
501


Actual output:
501.5


Fixed submission (verdict: Accepted):
a,b = map(int, open(0).read().split())
print(str(a + b

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y=map(int,input().split())
print(x+y/2)

Failing test case input:
5 34

Expected output:
22


Actual output:
22.0


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y = map(int, input().split())
print(X + Y/2)

Failing test case input:
-11 -1

Expected output:
-12


Actual output:
-11.5


Fixed submission (verdict: Accepted):
X, Y = map(int, input().split())
print(X + Y

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

Failing test case input:
23 -9

Expected output:
18


Actual output:
14


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y = map(int, input().split())
print((X+Y)/2)

Failing test case input:
37 -12

Expected output:
31


Actual output:
12.5


Fixed submission (verdict: Accepted):
X, Y = map(int, input().split())
print(X+Y

Problem: p03219
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
x, y = map(int, input().split())
print(x + y/2)

Failing test case input:
-1 142

Expected output:
70


Actual output:
70.0


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X,Y=map(int,input().split())
print(X+Y/2)

Failing test case input:
-15 4

Expected output:
-13


Actual output:
-13.0


Fixed submission (verdict: Accepted):
X,Y=map(int,input().split())
print(X+Y

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y = [int(x) for x in input().split()]
print(X + Y / 2)


Failing test case input:
0 377

Expected output:
188


Actual output:
188.5


Fixed submission (verdict: Accepted):
X, Y = [int(x) for x in input().split()]
print(X + Y
Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int, input().split())
print(a+b/2)

Failing test case input:
0 499

Expected output:
249


Actual output:
249.5


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

Problem: p03219
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
X, Y = map(int, input().split())

print(X + Y/2)

Failing test case input:
-20 1

Expected output:
-20


Actual output:
-19.5


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

print(X + Y

Problem: p03219
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
X,Y = map(int,input().split())
print(X + Y/2)

Failing test case input:
81 58

Expected output:
110

Actual output:
110.0


Fixed submission (verdict: Accepted):
X,Y = map(int,input().split())
print(X + Y

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y=map(int,input().split())
print(x+y/2)

Failing test case input:
0 142

Expected output:
71


Actual output:
71.0


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X,Y = map(int,input().split())
print(X + Y / 2)

Failing test case input:
68 58

Expected output:
97


Actual output:
97.0


Fixed submission (verdict: Accepted):
X,Y = map(int,input().split())
print(X + Y

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

Failing test case input:
-20 2

Expected output:
-19


Actual output:
-19.0


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(eval(input().replace(" ", "+") + "/2"))

Failing test case input:
1 -43

Expected output:
-21


Actual output:
-20.5


Fixed submission (verdict: Accepted):
print(eval(input().replace(" ", "+") + "

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X,Y=map(int,input().split())
print(X+Y/2)

Failing test case input:
0 251

Expected output:
125


Actual output:
125.5


Fixed submission (verdict: Accepted):
X,Y=map(int,input().split())
print(X+Y

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = (int(i) for i in input().split())
print(a+b/2)

Failing test case input:
51 11

Expected output:
56


Actual output:
56.5


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

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

Failing test case input:
-48 4

Expected output:
-46


Actual output:
-46.0


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

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

Failing test case input:
-1 90

Expected output:
44


Actual output:
44.0


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
print(a+(b
Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y = map(int, input().split())
print(X+Y/2)

Failing test case input:
88 58

Expected output:
117


Actual output:
117.0


Fixed submission (verdict: Accepted):
X, Y = map(int, input().split())
print(X+Y

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


X , Y = map(int, input().split())
print("{}".format(X + Y/2))

Failing test case input:
0 332

Expected output:
166


Actual output:
166.0


Fixed submission (verdict: Accepted):


X , Y= map(int,input().split())
print("{}".format(X + Y

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y=map(int,input().split())
print(x+(y/2))

Failing test case input:
0 251

Expected output:
125


Actual output:
125.5


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

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

Failing test case input:
95 1

Expected output:
95


Actual output:
95.5


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

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

Failing test case input:
0 221

Expected output:
110


Actual output:
110.5


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

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

X, Y = map(int, input().split())
print(X+(Y/2))


Failing test case input:
-28 4

Expected output:
-26


Actual output:
-26.0


Fixed submission (verdict: Accepted):
X, Y = map(int, input().split())
print(X+(Y

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

Failing test case input:
-12 -8

Expected output:
-16


Actual output:
-16.0


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X,Y=map(int,input().split())
print(X+Y/2)

Failing test case input:
88 27

Expected output:
101


Actual output:
101.5


Fixed submission (verdict: Accepted):
X,Y=map(int,input().split())
print(X+Y

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y = map(int, input().split())

print(X+(Y/2))


Failing test case input:
35 58

Expected output:
64


Actual output:
64.0


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

print(X+(Y

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int, input().split())
print(A+B/2)

Failing test case input:
0 221

Expected output:
110


Actual output:
110.5


Fixed submission (verdict: Accepted):
X,Y=map(int, input().split())
print(X+Y

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


Failing test case input:
68 58

Expected output:
97


Actual output:
97.0


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
print(a+b
Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y=(int(i) for i in input().split())
print(x+y/2)

Failing test case input:
88 51

Expected output:
113


Actual output:
113.5


Fixed submission (verdict: Accepted):
x,y=(int(i) for i in input().split())
print(x+y

Problem: p03219
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x,y = map(int,input().split())
print(x+y/2)

Failing test case input:
23 -9

Expected output:
18


Actual output:
18.5


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y = map(int, input().split())
print(x + y / 2)

Failing test case input:
38 0

Expected output:
38


Actual output:
38.0


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y = map(int,input().split())
print(x+y/2)

Failing test case input:
-12 -8

Expected output:
-16


Actual output:
-16.0


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y = map(int, input().split())
print(x+y/2)


Failing test case input:
77 1

Expected output:
77


Actual output:
77.5


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y=map(int,input().split())
print(x+(y/2))

Failing test case input:
51 11

Expected output:
56


Actual output:
56.5


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y = map(int, input().split())
print(x+y/2)

Failing test case input:
51 11

Expected output:
56


Actual output:
56.5


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

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

print(a + b / 2)

Failing test case input:
-28 2

Expected output:
-27


Actual output:
-27.0


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

print(a + b

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y = list(map(int, input().split()))
print(x+y/2)

Failing test case input:
2 178

Expected output:
91


Actual output:
91.0


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y = map(int, (input().split()))
print(x + (y / 2))

Failing test case input:
41 -9

Expected output:
36


Actual output:
36.5


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y =map(int,input().split())
print(x+y/2)

Failing test case input:
35 58

Expected output:
64


Actual output:
64.0


Fixed submission (verdict: Accepted):
x,y =map(int,input().split())
print(x + y
Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y = map(int, input().split())
print(X+Y/2)

Failing test case input:
14 -3

Expected output:
12


Actual output:
12.5


Fixed submission (verdict: Accepted):
X, Y = map(int, input().split())
print(X+Y

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y = input().split()

print(int(x) + int(y)/2)


Failing test case input:
0 205

Expected output:
102


Actual output:
102.5


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

print(x + y

Problem: p03219
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

X, Y = map(int, input().split())
print(X + (Y/2))


Failing test case input:
0 221

Expected output:
110


Actual output:
110.5


Fixed submission (verdict: Accepted):
X, Y = map(int, input().split())
print(X + (Y

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y = map(int, input().split())
print(X+Y/2)

Failing test case input:
37 -12

Expected output:
31


Actual output:
31.0


Fixed submission (verdict: Accepted):
X, Y = map(int, input().split())
print(X+Y

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y = map(int, input().split())
print(x+y/2)

Failing test case input:
35 58

Expected output:
64


Actual output:
64.0


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

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

x, y = map(int, input().split())

print(x + y/2)

Failing test case input:
-20 1

Expected output:
-20


Actual output:
-19.5


Fixed submission (verdict: Accepted):

x, y = map(int, input().split())

print(x + y

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y = [int(x) for x in input().split()]
print(int(X) + int(Y) / 2)

Failing test case input:
35 58

Expected output:
64


Actual output:
64.0


Fixed submission (verdict: Accepted):
X, Y = [int(x) for x in input().split()]
print(X + Y

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


Failing test case input:
14 -5

Expected output:
11


Actual output:
11.5


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y = map(int, input().split())
print(X+Y/2)

Failing test case input:
2 233

Expected output:
118


Actual output:
118.5


Fixed submission (verdict: Accepted):
X, Y = map(int, input().split())
print(X+Y

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y = map(int, input().split())

print(X+Y/2)


Failing test case input:
88 58

Expected output:
117


Actual output:
117.0


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

print(X+(Y
Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
list1 = [int(a) for a in input().split()]
list1_0 = list1[0] 
list1_1 = list1[1] 

if (list1_0 + (list1_1 / 2)) <1000:
    print(list1_0 + (list1_1 / 2))
else:
    print(list1)

Failing test case input:
-36 0

Expected output:
-36


Actual output:
-36.0


Fixed submission (verdict: Accepted):
list1 = [int(a) for a in input().split()]
list1_0 = list1[0] 
list1_1 = list1[1] 

if (list1_0 + (list1_1 
    print(list1_0 + (list1_1 
else:
    print(list1)

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y=map(int,input().split())
print(x+y/2)

Failing test case input:
-36 0

Expected output:
-36


Actual output:
-36.0


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y = map(int,input().split())
print(x+ y/2)

Failing test case input:
-20 1

Expected output:
-20


Actual output:
-19.5


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y = map(int, input().split())
print(x + y/2)

Failing test case input:
-1 142

Expected output:
70


Actual output:
70.0


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

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

Failing test case input:
0 643

Expected output:
321


Actual output:
321.5


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

Problem: p03219
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
X,Y = map(int, input().split())
print(X + Y/2)

Failing test case input:
0 499

Expected output:
249


Actual output:
249.5


Fixed submission (verdict: Accepted):
X,Y = map(int,input().split())
print(X + Y

Problem: p03219
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x, y = map(int, input().split())
print(x + y/2)

Failing test case input:
1 205

Expected output:
103


Actual output:
103.5


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

Problem: p03219
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
x, y = map(int, input().split())

print(x + y/2)

Failing test case input:
54 1

Expected output:
54


Actual output:
54.5


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

print(x + y

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X,Y = map(int,input().split())
print(X+(Y/2))

Failing test case input:
41 -1

Expected output:
40


Actual output:
40.5


Fixed submission (verdict: Accepted):
X,Y = map(int,input().split())
print(X+(Y

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y = map(int, input().split())

print(x + y/2)

Failing test case input:
14 -5

Expected output:
11


Actual output:
11.5


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

print(x + y
Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y=map(int,input().split())
print(x+y/2)

Failing test case input:
2 499

Expected output:
251


Actual output:
251.5


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y = map(int,input().split())
print(x+y/2)

Failing test case input:
37 -12

Expected output:
31


Actual output:
31.0


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X,Y=map(int,input().split())

print(X+Y/2)


Failing test case input:
54 1

Expected output:
54


Actual output:
54.5


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

print(X+Y

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y=map(int,input().split())
print(x+y/2)

Failing test case input:
54 1

Expected output:
54


Actual output:
54.5


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y = map(int, input().split(' '))
print(x + y / 2)

Failing test case input:
3 178

Expected output:
92


Actual output:
92.0


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

Problem: p03219
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x,y = map(int,input().split())
print(x+y/2)

Failing test case input:
88 58

Expected output:
117


Actual output:
117.0


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

Problem: p03219
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
X,Y=list(map(int,input().split()))
print(X+Y/2)

Failing test case input:
14 -5

Expected output:
11


Actual output:
11.5


Fixed submission (verdict: Accepted):
X,Y=list(map(int,input().split()))
print(X+Y

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = list(map(int, input().split()))
print(A + (B / 2))

Failing test case input:
-48 4

Expected output:
-46


Actual output:
-46.0


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

Problem: p03219
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x,y=map(int,input().split())
print(x + y*0.5)

Failing test case input:
0 1003

Expected output:
501


Actual output:
501.5


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ab = list(map(int, input().split(' ')))
res = ab[0] + (ab[1] / 2)
print(res)

Failing test case input:
-20 1

Expected output:
-20


Actual output:
-19.5


Fixed submission (verdict: Accepted):
ab = list(map(int, input().split(' ')))
res = ab[0] + (ab[1] 
print(res)

Problem: p03219
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x,y = map(int,input().split())
print(x+y/2)

Failing test case input:
0 499

Expected output:
249


Actual output:
249.5


Fixed submission (verdict: Accepted):
x,y = map(int,input().split())
print(x+y
Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y = map(int, input().split())
print(X+Y/2)

Failing test case input:
88 27

Expected output:
101


Actual output:
101.5


Fixed submission (verdict: Accepted):
X, Y = map(int, input().split())
print(X+Y

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

Failing test case input:
-36 0

Expected output:
-36


Actual output:
-36.0


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y=map(int,input().split())
print(x+y/2)

Failing test case input:
-1 124

Expected output:
61


Actual output:
61.0


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y = map(int,input().split())
print(x+y/2)

Failing test case input:
54 1

Expected output:
54


Actual output:
54.5


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y = map(int,input().split())
print(X + Y/2)

Failing test case input:
81 58

Expected output:
110

Actual output:
110.0


Fixed submission (verdict: Accepted):
X, Y = map(int,input().split())
print(X + Y

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


Failing test case input:
-1 124

Expected output:
61


Actual output:
61.0


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y=map(int,input().split())
print(x+y/2)

Failing test case input:
21 -12

Expected output:
15


Actual output:
15.0


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y = map(int,input().split())

print(x+y/2)

Failing test case input:
5 -28

Expected output:
-9


Actual output:
-9.0


Fixed submission (verdict: Accepted):
X,Y = map(int,input().split())
 
print( X + (Y

Problem: p03219
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x, y = map(int, input().split())

print(x + y/2)

Failing test case input:
0 135

Expected output:
67


Actual output:
67.5


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

print(x + y

Problem: p03219
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
X,Y=map(int,input().split())
print(X+Y/2)

Failing test case input:
-1 142

Expected output:
70


Actual output:
70.0


Fixed submission (verdict: Accepted):
X,Y=map(int,input().split())
print(X+Y

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y=map(int,input().split())
print(x+y/2)

Failing test case input:
95 1

Expected output:
95


Actual output:
95.5


Fixed submission (verdict: Accepted):
x,y=map(int,input().split())
print(x+y
Problem: p03219
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
x,y = map(int,input().split())
print(x+y/2)

Failing test case input:
0 251

Expected output:
125


Actual output:
125.5


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y = map(int, input().split())

print(x + y / 2)

Failing test case input:
0 377

Expected output:
188


Actual output:
188.5


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

print(x + y

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

Failing test case input:
-1 142

Expected output:
70


Actual output:
70.0


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

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

Failing test case input:
1 -43

Expected output:
-21


Actual output:
-20.5


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

Problem: p03219
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x, y = map(int, input().split())
print(x + y / 2)

Failing test case input:
0 135

Expected output:
67


Actual output:
67.5


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

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

Failing test case input:
5 34

Expected output:
22


Actual output:
22.0


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y = map(int, input().split())

print(str(X+Y/2))

Failing test case input:
5 34

Expected output:
22


Actual output:
22.0


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

print(str(X+Y

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

Failing test case input:
2 499

Expected output:
251


Actual output:
251.5


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

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y = map(int, input().split())
print(X + Y / 2)

Failing test case input:
3 -28

Expected output:
-11


Actual output:
-11.0


Fixed submission (verdict: Accepted):
X, Y = map(int, input().split())
print(X + Y

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X,Y = map(int,input().split())
 
print( X + (Y / 2))

Failing test case input:
-1 142

Expected output:
70


Actual output:
70.0


Fixed submission (verdict: Accepted):
X,Y = map(int,input().split())
 
print( X + (Y

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y = map(int,input().split())
print(x+y/2)


Failing test case input:
81 58

Expected output:
110

Actual output:
110.0


Fixed submission (verdict: Accepted):
x,y = map(int,input().split())
print(x+y
Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
AB, BC = [int(s) for s in input().split(" ")]
print(AB + BC/2)

Failing test case input:
81 58

Expected output:
110

Actual output:
110.0


Fixed submission (verdict: Accepted):
AB, BC = [int(s) for s in input().split(" ")]
print(AB + BC

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X,Y = map(int, input().split())

print(X + Y / 2)

Failing test case input:
-1 124

Expected output:
61


Actual output:
61.0


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

print(X + Y

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

x, y = list(map(int, stdin.readline().split()))
print(x + y/2)

Failing test case input:
1 499

Expected output:
250


Actual output:
250.5


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

x, y = list(map(int, stdin.readline().split()))
print(x + y

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

Failing test case input:
-11 -1

Expected output:
-12


Actual output:
-11.5


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

print(a + b

Problem: p03219
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y = map(int, input().split())
print(X+(Y/2))

Failing test case input:
3 -28

Expected output:
-11


Actual output:
-11.0


Fixed submission (verdict: Accepted):
X, Y = map(int, input().split())
print(X+(Y
Problem: p03309
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
import bisect
n = int(input())
a = list(map(int,input().split()))
a = [aa-i-1 for i, aa in enumerate(a)]
a.sort()

g = math.floor(sum(a)/n)
g_index = bisect.bisect_left(a, g)

answer = n*10**20
for gg in (g,a[g_index],a[g_index-1]):
  ans = 0
  for aa in a:
    ans += abs(aa-gg)
  answer = min(answer,ans)
print(answer)

Failing test case input:
7
308 -1 -3 -2 2 -1 0

Expected output:
321


Actual output:
324


Fixed submission (verdict: Accepted):
import math
import statistics
n = int(input())
a = list(map(int,input().split()))
a = [aa-i-1 for i, aa in enumerate(a)]
answer = n*10**20
median_low = statistics.median_low(a)
median_high = statistics.median_high(a)

for m in (median_low,median_high):
  ans=0
  for aa in a:
    ans += abs(aa-m)
  answer = min(ans,answer)
print(answer)

Problem: p03309
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
A_list = [int(item)-(index+1) for index, item in enumerate(input().split())]

b = sum(A_list)

ans = 0
for i in A_list:
  ans += abs(i-b)

print(ans)

Failing test case input:
7
1 1 1 1 2 3 4

Expected output:
6

Actual output:
90


Fixed submission (verdict: Accepted):
N = int(input())
A_list = [int(item)-(index+1) for index, item in enumerate(input().split())]

tmp_list = sorted(A_list)
b = tmp_list[N

ans = 0
for i in A_list:
  ans += abs(i-b)

print(ans)

Problem: p03309
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
N = int(input())
A = [int(x) for x in input().split()]
sum = 0
A_prime = [0]*N
for i in range(N):
    A_prime[i] = A[i] - i - 1
    sum += A_prime[i]


ave = math.ceil(sum / N)

ans = 0
for k in range(N):
    ans += abs(A[k] - (ave + k + 1))
print(ans)


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

Expected output:
63


Actual output:
92


Fixed submission (verdict: Accepted):


N = int(input())
A = [int(x) for x in input().split()]
A_prime = [0]*N
for i in range(N):
    A_prime[i] = A[i] - i-1
A_prime = sorted(A_prime)
center = A_prime[N

ans = 0
for k in range(N):
    ans += abs(A[k] - (center + k + 1))
print(ans)

Problem: p03309
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from collections import Counter
N = int(input())
A = list(map(int,input().split()))

L = [v - (i+1) for i,v in enumerate(A)]
b = sum(L) 
ans = 0
for i in range(N):
    ans += abs(A[i] - (b + i+1))
print(ans)

Failing test case input:
6
11 0 4 7 1 0

Expected output:
26


Actual output:
28


Fixed submission (verdict: Accepted):
N = int(input())
A = list(map(int,input().split()))
L = sorted([v - (i+1) for i,v in enumerate(A)])
ans = 0
for i in range(N):
    ans += abs(A[i] - (L[N
print(ans)