ZhenlongDai/ACPR huggingface dataset:
Problem: p03292
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a, b, c = map(int, input().split())
if abs(a-b) > abs(a-c):
    print(abs(a-c) + abs(c-b))
else:
    print(abs(a-b) + abs(b-c))

Failing test case input:
-2 4 -69

Expected output:
73


Actual output:
79


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
c1 = abs(a-b) + abs(b-c)
c2 = abs(a-c) + abs(c-b)
c3 = abs(b-a) + abs(a-c)
cs = [c1, c2, c3]
print(min(cs))

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = sorted(list(map(int, input().split())))
print(abs(a[1]-a[2])+(a[0]-a[1]))

Failing test case input:
-5 0 99

Expected output:
104


Actual output:
94


Fixed submission (verdict: Accepted):
a = sorted(list(map(int, input().split())))
print(abs(a[1]-a[2])+abs(a[0]-a[1]))

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

    sort_A = sorted(A)
    print(sort_A[2] + sort_A[1] - 2*sort_A[0])

main()

Failing test case input:
4 8 -4

Expected output:
12


Actual output:
20


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

    sort_A = sorted(A)
    print(sort_A[2] - sort_A[0])

main()

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def plo_A(A1,A2,A3):
    
    vec = [A1,A2,A3]
    com = list(itertools.permutations(vec))
    
    
    all_cos = [0,0,0,0,0,0]
    for i in range(6):
        tmp_com = com[i]
        
        tmp_A1 = tmp_com[0]
        tmp_A2 = tmp_com[1]
        tmp_A3 = tmp_com[2]
        
        cos1 = 0
        cos2 = abs(tmp_A1 - tmp_A2)
        cos3 = abs(tmp_A2 - tmp_A3)
        
        all_cos[i] = cos1 + cos2 + cos3
    
    res = min(all_cos)
    
    return res

Failing test case input:
-1 8 -133

Expected output:
141


Actual output:

Fixed submission (verdict: Accepted):
import itertools

A1,A2,A3 = map(int,input().split())
    
vec = [A1,A2,A3]
com = list(itertools.permutations(vec))
    
all_cos = [0,0,0,0,0,0]
for i in range(6):
    tmp_com = com[i]
        
    tmp_A1 = tmp_com[0]
    tmp_A2 = tmp_com[1]
    tmp_A3 = tmp_com[2]
        
    cos1 = 0
    cos2 = abs(tmp_A1 - tmp_A2)
    cos3 = abs(tmp_A2 - tmp_A3)
        
    all_cos[i] = cos1 + cos2 + cos3
    
res = min(all_cos)
print(res)

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=list(map(int,input().split()));a.sort()
print(a[2]-a[1]*2-a[0])

Failing test case input:
-1 46 -2

Expected output:
48


Actual output:
50


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

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = list(map(int, input().split()))
A.sort
answer = 0
for i in range(2):
    answer += A[i + 1] - A[i]

print(answer)


Failing test case input:
14 3 -8

Expected output:
22


Actual output:
-22


Fixed submission (verdict: Accepted):
A = list(map(int, input().split()))
A.sort()
answer = 0
for i in range(2):
    answer += A[i + 1] - A[i]

print(answer)
Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ns=list(map(int,input().split()))
ns.sort()
print(ns[2]-ns[1])


Failing test case input:
11 5 2

Expected output:
9


Actual output:
6


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

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

A =[int(j) for j in input().split()]
print(abs(A[2]-A[0]))

Failing test case input:
-1 8 -133

Expected output:
141


Actual output:
132


Fixed submission (verdict: Accepted):

A =[int(j) for j in input().split()]
A.sort()
print(abs(A[2]-A[0]))

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split())
d=abs(a-b)
e=abs(b-c)
f=abs(c-a)
s1=d+e
s2=e+f
s3=f+d
l=[s1,s2,s3]
l.sort()
print(sum(l[1:]))

Failing test case input:
3 5 2

Expected output:
3


Actual output:
9


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
d=abs(a-b)
e=abs(b-c)
f=abs(c-a)
s1=d+e
s2=e+f
s3=f+d
l=[s1,s2,s3]
l.sort()
print(l[0])

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = list(map(int,input().split()))
a.sort()
print(a)
print(a[2]-a[0])

Failing test case input:
0 1 27

Expected output:
27


Actual output:
[0, 1, 27]
27


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

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
tasks = sorted(map(int, input().split()))
cost = sum([tasks[i+1] - tasks[i] for i in range(1, len(tasks) - 1)])
print(cost)


Failing test case input:
-2 64 0

Expected output:
66


Actual output:
64


Fixed submission (verdict: Accepted):
tasks = sorted(map(int, input().split()))
cost = sum([tasks[i+1] - tasks[i] for i in range(0, len(tasks) - 1)])
print(cost)

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B,C=map(int,input().split())

D=abs(A-B)
E=abs(B-C)
F=abs(C-A)

if D>E and D>F:
  print(E+F)
elif E>D and E>F:
  print(D+F)
else:
  print(E+F)


Failing test case input:
1 1 -151

Expected output:
152


Actual output:
304


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

D=abs(A-B)
E=abs(B-C)
F=abs(C-A)

if D>=E and D>=F:
  print(E+F)
elif E>=D and E>=F:
  print(D+F)
elif F>=D and F>=E:
  print(D+E)

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a1, a2, a3=map(int, input().split())
temp=[a1, a2, a3]
print(a3-a1)

Failing test case input:
1 6 3

Expected output:
5

Actual output:
2


Fixed submission (verdict: Accepted):
a1, a2, a3=map(int, input().split())
temp=[a1, a2, a3]
temp.sort()
print(temp[2]-temp[0])

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

import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline

l = list(map(int, input().split()))
print(3*max(l)-sum(l))


Failing test case input:
1 16 4

Expected output:
15


Actual output:
27


Fixed submission (verdict: Accepted):

import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline

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

l = sorted(l, reverse=True)
print(sum(a-b for a, b in zip(l, l[1:])))
Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split())
print(min(a+abs(b-a)+abs(c-b),a+abs(c-a)+abs(b-c),b+abs(a-b)+abs(c-a),b+abs(c-b)+abs(a-c),c+abs(a-c)+abs(b-a),c+abs(b-c)+abs(a-b)))

Failing test case input:
-1 -1 200

Expected output:
201


Actual output:
200


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

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = sorted(list(map(int, input().split())))
print(A[0]-A[2])

Failing test case input:
2 0 -44

Expected output:
46


Actual output:
-46


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

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input()
b = a.split()
b.sort()
print(int(b[2])-int(b[0]))

Failing test case input:
22 4 -12

Expected output:
34


Actual output:
16


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

Problem: p03292
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
l = list(map(int,input().split()))
l.sort()

print((l[0]-l[1])+(l[1]-l[2])) 


Failing test case input:
0 1 8

Expected output:
8


Actual output:
-8


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

print((l[2]-l[1])+(l[1]-l[0]))

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = [i for i in input().split()]

b = sorted(list(set(a)))
if len(b) == 1:
    print(0)
elif len(b) == 2:
    print(int(b[0])-int(b[1]))
else:
    print(int(b[2]) - int(b[0]))



Failing test case input:
-2 -3 115

Expected output:
118


Actual output:
117


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

b = sorted(map(int, list(set(a))))

if len(b) == 1:
    print(0)
elif len(b) == 2:
    print(int(b[1])-int(b[0]))
else:
    print(int(b[2]) - int(b[0]))

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
num =input().split()
num.sort()
result = int(num[2]) - int(num[0])
print(result)

Failing test case input:
0 -1 -44

Expected output:
44


Actual output:
1


Fixed submission (verdict: Accepted):
num =list(map(int,input().split()))
result = max(num) - min (num)
print(result)

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = list(map(int,input().split()))
a = a[::-1]
cost = 0
for i in range(len(a)-1):
  print(a[i+1],a[i])
  cost += a[i+1]-a[i]
print(cost)

Failing test case input:
1 16 4

Expected output:
15


Actual output:
16 4
1 16
-3


Fixed submission (verdict: Accepted):
a = list(map(int,input().split()))
a = sorted(a)
cost = 0
for i in range(len(a)-1):
  cost += a[i+1]-a[i]
print(cost)
Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
task = input()
task = task.split()
costs = []
for i in range(len(task)):
    costs.append(int(task[i]))
task.sort()
cost = 0
for i in range(len(costs)-1):
    cost += costs[i+1]-costs[i]
    
print(cost)

Failing test case input:
100 111 001

Expected output:
110


Actual output:
-99


Fixed submission (verdict: Accepted):
task = input()
task = task.split()
costs = []
for i in range(len(task)):
    costs.append(int(task[i]))
costs.sort()
cost = 0
for i in range(len(costs)-1):
    cost += costs[i+1]-costs[i]
    
print(cost)

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = sorted(map(int, input().split()), reverse=True)
print(a - c + b - c)


Failing test case input:
13 2 -6

Expected output:
19


Actual output:
27


Fixed submission (verdict: Accepted):
a, b, c = sorted(map(int, input().split()), reverse=True)
print(a - c)

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from itertools import permutations

a1, a2, a3 = map(int, input().split())
ans = 1e9
for a in permutations([a1, a2, a3]):
    print(a)
    tmp = abs(a[0] - a[1]) + abs(a[1] - a[2])
    ans = min(ans, tmp)
print(ans)


Failing test case input:
14 3 -6

Expected output:
20


Actual output:
(14, 3, -6)
(14, -6, 3)
(3, 14, -6)
(3, -6, 14)
(-6, 14, 3)
(-6, 3, 14)
20


Fixed submission (verdict: Accepted):
from itertools import permutations

a1, a2, a3 = map(int, input().split())
ans = 1e9
for a in permutations([a1, a2, a3]):
    tmp = abs(a[0] - a[1]) + abs(a[1] - a[2])
    ans = min(ans, tmp)
print(ans)

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = [int(a) for a in input().split()]
A.sort()
print(A[0]-A[2])

Failing test case input:
1 6 3

Expected output:
5

Actual output:
-5


Fixed submission (verdict: Accepted):
A = [int(a) for a in input().split()]
A.sort()
print(A[2]-A[0])

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


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

An.sort()

print(An)

i = 0
Ai = An[0]
sum = 0
for j,Aj in enumerate(An):
    i = Aj - Ai
    sum += i
    Ai = Aj

print(sum)


Failing test case input:
11 5 2

Expected output:
9


Actual output:
[2, 5, 11]
9


Fixed submission (verdict: Accepted):


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

An.sort()
i = 0
Ai = An[0]
sum = 0
for j,Aj in enumerate(An):
    i = Aj - Ai
    sum += i
    Ai = Aj

print(sum)

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = sorted(map(int, input().split()))
print(a - c + b - c)



Failing test case input:
1 16 4

Expected output:
15


Actual output:
-27


Fixed submission (verdict: Accepted):
a, b, c = sorted(map(int, input().split()), reverse=True)
print(a - c)

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

A = map(int, input().split())
A = sorted(A)
print(A[1] - A[0] + A[2] - A[0])

Failing test case input:
2 0 -44

Expected output:
46


Actual output:
90


Fixed submission (verdict: Accepted):

A = map(int, input().split())
A = sorted(A)
print(A[1] - A[0] + A[2] - A[1])
Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
	A1, A2, A3 = map(int, input().split())
	print(min(abs(A2-A1), abs(A3-A1))+abs(A3-A2))


if __name__ == '__main__':
    main()

Failing test case input:
4 8 -4

Expected output:
12


Actual output:
16


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


if __name__ == '__main__':
    main()

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
L = list(map(int,input().split()))
ans = 0
cnt = L.pop(0)
sorted_L = sorted(L)
for i in sorted_L:
    ans += abs(i - cnt )
    cnt = i
print(ans)

Failing test case input:
3 5 2

Expected output:
3


Actual output:
4


Fixed submission (verdict: Accepted):
L = list(map(int,input().split()))
ans = 0
min_L = min(L)
L.remove(min_L)
cnt = min_L
sorted_L = sorted(L)
for i in sorted_L:
    ans += abs(i - cnt )
    cnt = i
print(ans)

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

    sort_A = sorted(A)
    print(A[2] + A[1] - 2*A[0])

main()

Failing test case input:
0 2 -145

Expected output:
147


Actual output:
-143


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

    sort_A = sorted(A)
    print(sort_A[2] - sort_A[0])

main()

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a1,a2,a3=map(int,input().split())
l=[a1,a2,a3]
l.sort()
print(l[2]+l[0])


Failing test case input:
100 111 001

Expected output:
110


Actual output:
112


Fixed submission (verdict: Accepted):
a1,a2,a3=map(int,input().split())
l=[a1,a2,a3]
l.sort()
print(l[2]-l[0])

Problem: p03292
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b,c = map(int,input().split())
ans = min(abs(a-b)+abs(b-c),abs(a-c)+abs(b-c),abs(a-c)+abs(b-c))
print(ans)


Failing test case input:
0 -1 85

Expected output:
86


Actual output:
87


Fixed submission (verdict: Accepted):
a,b,c = map(int,input().split())
ans = min(abs(a-b)+abs(b-c),abs(a-c)+abs(b-c),abs(a-c)+abs(a-b))
print(ans)

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())
ans = abs(a-b) + abs(b-c) + abs(a-c) - max(abs(a-b), abs(b-c), abs(b-a))
print(ans)

Failing test case input:
-1 1 27

Expected output:
28


Actual output:
30


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
ans = abs(a-b) + abs(b-c) + abs(a-c) - max(abs(a-b), abs(b-c), abs(c-a))
print(ans)

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a1,a2,a3=map(int,input().split())
l=[a1,a2,a3]
l.sort()
print(l[2]-l[1]*2+l[0])


Failing test case input:
1 1 -142

Expected output:
143


Actual output:
-143


Fixed submission (verdict: Accepted):
a1,a2,a3=map(int,input().split())
l=[a1,a2,a3]
l.sort()
print(l[2]-l[0])
Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    cost_list = input().split()
    for i in range(len(cost_list)):
        cost_list[i] = int(cost_list[i])
    cost_list.sort()
    cost_list.reverse()
    counter = 0
    for i in range(len(cost_list) - 1):
        counter += cost_list[i+1] - cost_list[i]
    print(counter)

main()

Failing test case input:
100 100 000

Expected output:
100


Actual output:
-100


Fixed submission (verdict: Accepted):
def main():
    cost_list = input().split()
    for i in range(len(cost_list)):
        cost_list[i] = int(cost_list[i])
    cost_list.sort()
    counter = 0
    for i in range(len(cost_list) - 1):
        counter += cost_list[i+1] - cost_list[i]
    print(counter)

main()

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A=list(map(int,input().split()))
X=abs(A[0]-A[1])
Y=abs(A[2]-A[0])
Z=abs(A[1]-A[2])
print(min(Y+X,max(X+Z,Y+Z)))

Failing test case input:
96 16 0

Expected output:
96


Actual output:
112


Fixed submission (verdict: Accepted):
A=list(map(int,input().split()))
X=abs(A[0]-A[1])
Y=abs(A[2]-A[0])
Z=abs(A[1]-A[2])
print(min(Y+X,min(X+Z,Y+Z)))

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=list(map(int, input().split()))
a.sort(reverse=True)
print(a[2]-a[0])


Failing test case input:
-2 0 52

Expected output:
54


Actual output:
-54


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

Problem: p03292
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b,c=sorted(map(int, input().split()))
print(a+c)

Failing test case input:
14 3 -6

Expected output:
20


Actual output:
8


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

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    cost_list = input().split()
    for i in range(len(cost_list)):
        cost_list[i] = int(cost_list[i])
    cost_list.sort()
    print(cost_list)
    counter = 0
    for i in range(len(cost_list) - 1):
        counter += cost_list[i+1] - cost_list[i]
    print(counter)

main()

Failing test case input:
0 2 -145

Expected output:
147


Actual output:
[-145, 0, 2]
147


Fixed submission (verdict: Accepted):
def main():
    cost_list = input().split()
    for i in range(len(cost_list)):
        cost_list[i] = int(cost_list[i])
    cost_list.sort()
    counter = 0
    for i in range(len(cost_list) - 1):
        counter += cost_list[i+1] - cost_list[i]
    print(counter)

main()

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = list(map(int,input().split()))
ans = min(abs(a-b)+abs(b-c),abs(a-c)+abs(b-c))
print(ans)

Failing test case input:
-1 8 -133

Expected output:
141


Actual output:
150


Fixed submission (verdict: Accepted):
a,b,c = list(map(int,input().split()))
ans = min(abs(a-b)+abs(b-c),abs(a-c)+abs(b-c),abs(a-b)+abs(a-c))
print(ans)
Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())
print(min(abs(a-b)+abs(a-c),abs(b-a)+(b-c),abs(c-a)+abs(c-b)))

Failing test case input:
-5 0 52

Expected output:
57


Actual output:
-47


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

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

cost = 0
for i in range(1,len(a)-1):
  cost += a[i+1]-a[i]
print(cost)

Failing test case input:
6 39 -1

Expected output:
40


Actual output:
33


Fixed submission (verdict: Accepted):
a = list(map(int,input().split()))
a = sorted(a)
cost = 0
for i in range(len(a)-1):
  cost += a[i+1]-a[i]
print(cost)

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
[A1,A2,A3]=map(int,input().split())
tasks=[A1,A2,A3]
costs=[]
def cost(start):
    for i in range(3):
        if i!=start:
            cost_1st=abs(tasks[i]-tasks[start])
            for l in range(3):
                if l != i and l != start:
                    total_cost=cost_1st+abs(tasks[i]-tasks[l])
                    costs.append(total_cost)
                else:
                    continue
        else:
            continue
for i in range(3):
    cost(i)
print(costs)
ans=min(costs)

print(ans)


Failing test case input:
4 1 -89

Expected output:
93


Actual output:
[93, 183, 96, 183, 96, 93]
93


Fixed submission (verdict: Accepted):
[A1,A2,A3]=map(int,input().split())
tasks=[A1,A2,A3]
costs=[]
def cost(start):
    for i in range(3):
        if i!=start:
            cost_1st=abs(tasks[i]-tasks[start])
            for l in range(3):
                if l != i and l != start:
                    total_cost=cost_1st+abs(tasks[i]-tasks[l])
                    costs.append(total_cost)
                else:
                    continue
        else:
            continue
for i in range(3):
    cost(i)

ans=min(costs)

print(ans)

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
L=list(map(int,input().split()))
L.sort()
a=0
for i in range(len(L)-1):
    a+=L[i]-L[i-1]
    
print(a)

Failing test case input:
1 6 3

Expected output:
5

Actual output:
-3


Fixed submission (verdict: Accepted):
L=list(map(int,input().split()))
L.sort()
a=0
for i in range(1,len(L)):
    a=a+(L[i]-L[i-1])
    
print(a)

Problem: p03292
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import itertools
a1, a2, a3 = map(int, input().split())
ans = 10 ** 9
for v in itertools.permutations([a1, a2, a3]):
    d = 0
    for i in range(1, 3):
        d += abs(v[i]-v[i-1])
    ans = min(ans, d)
    print(v, d)

print(ans)


Failing test case input:
-3 0 52

Expected output:
55


Actual output:
(-3, 0, 52) 55
(-3, 52, 0) 107
(0, -3, 52) 58
(0, 52, -3) 107
(52, -3, 0) 58
(52, 0, -3) 55
55


Fixed submission (verdict: Accepted):
import itertools
a1, a2, a3 = map(int, input().split())
ans = 10 ** 9
for v in itertools.permutations([a1, a2, a3]):
    d = 0
    for i in range(1, 3):
        d += abs(v[i]-v[i-1])
    ans = min(ans, d)

print(ans)
Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    task_str = input().split()
    print(task_str)
    task_list = []
    task_list = [int(s, 10) for s in task_str]
    task_list.sort()
    print(task_list)
    result = task_list[2] - task_list[0]
    print(result)

if __name__=='__main__':
    main()

Failing test case input:
010 100 011

Expected output:
90


Actual output:
['010', '100', '011']
[10, 11, 100]
90


Fixed submission (verdict: Accepted):
def main():
    task_str = input().split()
    task_list = []
    task_list = [int(s, 10) for s in task_str]
    task_list.sort()
    result = task_list[2] - task_list[0]
    print(result)

if __name__=='__main__':
    main()

Problem: p03292
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A1,A2,A3 = map(int,input().split())

x = abs(A1 - A2)
y = abs(A2 - A3)
z = abs(A3 - A1)

if x + y <= y + z and x <= z + x:
	print(x + y )
elif y + z <= x + y and  y<= z + x:
	print(y + z )
else:
	print(z + x)

Failing test case input:
0 2 -145

Expected output:
147


Actual output:
149


Fixed submission (verdict: Accepted):
A1,A2,A3 = map(int,input().split())
 
x = abs(A1 - A2)
y = abs(A2 - A3)
z = abs(A3 - A1)
 
if x + y <= y + z and x + y <= z + x:
	print(x + y )
elif y + z <= x + y and  y + z <= z + x:
	print(y + z )
else:
	print(z + x)
Problem: p03125
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())
if B%A==0:
  print(A+B)
else:
  print(A-B)

Failing test case input:
5 57

Expected output:
52


Actual output:
-52


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

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

Failing test case input:
4 28

Expected output:
32


Actual output:
24


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

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

a,b=map(int,input().split())
print(a+b if a%b==0 else b-a)

Failing test case input:
010 40

Expected output:
50


Actual output:
30


Fixed submission (verdict: Accepted):

a,b=map(int,input().split())
print(a+b if b%a==0 else b-a)

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

Failing test case input:
42 4

Expected output:
-38


Actual output:
38


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

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


Failing test case input:
010 40

Expected output:
50


Actual output:
30


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

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

if A % B == 0:
    print(A + B)
else:
    print(B - A)
    

Failing test case input:
6 24

Expected output:
30


Actual output:
18


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

if B % A == 0:
    print(A + B)
else:
    print(B - A)

Problem: p03125
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
if B % A == 0:
  print(A+B)
else:
  print(A-B)

Failing test case input:
3 46

Expected output:
43


Actual output:
-43


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

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

if b%a==0:
    print(a+b)

elif b%a!=0:
    print(a-b)
    

Failing test case input:
13 70

Expected output:
57


Actual output:
-57


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

if b%a==0:
    print(a+b)

else:
    print(b-a)

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

Failing test case input:
4 28

Expected output:
32


Actual output:
24


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
print(a+b if b%a == 0 else b-a)
Problem: p03125
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=input().split()
a=int(a)
b=int(b)
if b%a>=0:
  print(a+b)
else:
  print(b-a)

Failing test case input:
10 73

Expected output:
63


Actual output:
83


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

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

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

if a % b == 0:
    print(a+b)
else:
    print(b-a)


Failing test case input:
42 14

Expected output:
-28


Actual output:
56


Fixed submission (verdict: Accepted):

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

if b % a == 0:
    print(a+b)
else:
    print(b-a)

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


Failing test case input:
6 24

Expected output:
30


Actual output:
18


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

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

if B % A == 0:
    print(A+B)
else:
    print(A-B)

Failing test case input:
3 22

Expected output:
19


Actual output:
-19


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

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

if b % a== 0:
    print("A + B")
else:
    print("B - A")

Failing test case input:
42 14

Expected output:
-28


Actual output:
B - A


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

if b % a == 0:
    print(a+b)
else:
    print(b-a)

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

if a % b == 0:
    print("A+B")
else:
    print("B-A")

Failing test case input:
8 46

Expected output:
38


Actual output:
B-A


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

if b % a == 0:
    print(a+b)
else:
    print(b-a)

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

if a % b == 0:
  print(a + b)
 
else:
  print(b - a)


Failing test case input:
010 40

Expected output:
50


Actual output:
30


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

if b % a == 0:
  print(b + a)
 
else:
  print(b - a)

Problem: p03125
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y = map(int,input().split())
if x % y == 0:
  print(str(x + y))
else:
  print(str(x - y))

Failing test case input:
54 -1

Expected output:
-55


Actual output:
53


Fixed submission (verdict: Accepted):
x,y = map(int,input().split())
if y % x == 0:
  print(str(x + y))
else:
  print(str(y - x))

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

Failing test case input:
111 40

Expected output:
-71


Actual output:
71


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
print(a+b if b%a == 0 else b-a)
Problem: p03125
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
print(A+B if A%B == 0 else B-A)

Failing test case input:
4 28

Expected output:
32


Actual output:
24


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

Problem: p03125
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if __name__ == '__main__':
    A, B = map(int, input().split())
    if A%B == 0:
        print(A+B)
    else:
        print(B - A)

Failing test case input:
54 2

Expected output:
-52


Actual output:
56


Fixed submission (verdict: Accepted):
if __name__ == '__main__':
    A, B = map(int, input().split())
    if B%A == 0:
        print(A+B)
    else:
        print(B - A)

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

if B / A == 0:
	print(int(A + B))
else:
	print(int(B - A))

Failing test case input:
6 36

Expected output:
42


Actual output:
30


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

if B % A == 0:
	print(int(A + B))
else:
	print(int(B - A))

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

if a % b == 0:
    print("A + B")
else:
    print("B - A")

Failing test case input:
6 36

Expected output:
42


Actual output:
B - A


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

if b % a == 0:
    print(a+b)
else:
    print(b-a)

Problem: p03125
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
if A % B == 0:
  print(A+B)
else:
  print(B-A)

Failing test case input:
42 14

Expected output:
-28


Actual output:
56


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

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

print(a+b if a % b == 0 else b-a)


Failing test case input:
010 40

Expected output:
50


Actual output:
30


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

print(a+b if b%a == 0 else b-a)

Problem: p03125
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ab=input().split()
a=int(ab[0])
b=int(ab[1])
if isinstance(b/a,int):
  print(str(a+b))
else:
  print(str(b-a))

Failing test case input:
010 40

Expected output:
50


Actual output:
30


Fixed submission (verdict: Accepted):
ab=input().split()
a=int(ab[0])
b=int(ab[1])
if (b/a).is_integer():
  print(str(a+b))
else:
  print(str(b-a))

Problem: p03125
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a, b = map(int, input().split())
print((a + b) if a % b == 0 else (b- a))

Failing test case input:
25 -1

Expected output:
-26


Actual output:
24


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
print((a + b) if b % a == 0 else (b - a))
Problem: p03125
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if __name__ == '__main__':
    A, B = map(int, input().split())
    if A%B != 0:
        print(A+B)
    else:
        print(B - A)

Failing test case input:
101 68

Expected output:
-33


Actual output:
169


Fixed submission (verdict: Accepted):
if __name__ == '__main__':
    A, B = map(int, input().split())
    if B%A == 0:
        print(A+B)
    else:
        print(B - A)

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

if (b % a) == 0:
    print(a+b)
else:
    print(b-1)

Failing test case input:
19 111

Expected output:
92


Actual output:
110


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

if (b % a) == 0:
    print(a+b)
else:
    print(b-a)

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

if B%A==0:
    print(A+B)
else:
  print(A-B)

Failing test case input:
5 57

Expected output:
52


Actual output:
-52


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

if B%A==0:
    print(A+B)
else:
  print(B-A)

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

Failing test case input:
2 182

Expected output:
184


Actual output:
180


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

Problem: p03125
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A ,B = map(int,input().split())
if B%A == 0:
  print(A+B)
else:
  print(A-B)

Failing test case input:
19 110

Expected output:
91


Actual output:
-91


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

Problem: p03125
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def solve(a, b):
    return (a+b) if (b % a == 0) else (a-b)
a, b = map(int, input().split())
print(solve(a,b))

Failing test case input:
111 68

Expected output:
-43


Actual output:
43


Fixed submission (verdict: Accepted):
def solve(a, b):
    return (a+b) if (b % a == 0) else (b-a)
a, b = map(int, input().split())
print(solve(a,b))

Problem: p03125
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
A, B = list(map(int, input().split()))
print((A+B) if B%A else (B-A))

Failing test case input:
8 28

Expected output:
20


Actual output:
36


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

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


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

if b % a == 0:
  print(a + b)
else:
  print(a - b)


Failing test case input:
19 110

Expected output:
91


Actual output:
-91


Fixed submission (verdict: Accepted):


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

if b % a == 0:
  print(a + b)
else:
  print(b - a)
Problem: p03125
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = (int(x) for x in input().split())
if b % a == 0:
  print(a+b)
else:
  print(a-b)


Failing test case input:
19 101

Expected output:
82


Actual output:
-82


Fixed submission (verdict: Accepted):
a,b = (int(x) for x in input().split())
if b % a == 0:
  print(a+b)
else:
  print(b-a)

Problem: p03125
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = (int(x) for x in input().split())

if b % a == 0:
	print(a+b)

else:
	print(a-b)


Failing test case input:
19 70

Expected output:
51


Actual output:
-51


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

if b % a == 0:
	print(a+b)

else:
	print(b-a)

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




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

if b % a == 0:
  print(a+b)
else:
  print(b-a)

Failing test case input:
13 70

Expected output:
57


Actual output:
57.0


Fixed submission (verdict: Accepted):




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

if b % a == 0:
  print(int(a+b))
else:
  print(int(b-a))

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


Failing test case input:
6 61

Expected output:
55


Actual output:
-55


Fixed submission (verdict: Accepted):
m,n=map(int,input().split())
print(m+n if n%m==0 else n-m)

Problem: p03125
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,B = map(int,input().split())
 
if B%A==0:
  print(A+B)
else:
  print(A-B)


Failing test case input:
5 57

Expected output:
52


Actual output:
-52


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

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

Failing test case input:
54 -1

Expected output:
-55


Actual output:
53


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

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


def a_minus_b_or_b_minus_a(a, b):
    if b % a == 0:
        return a + b
    else:
        return a - b

def main():
    input_line = stdin.readline().rstrip()
    a, b = [int(num_string) for num_string in input_line.split(' ')]
    answer = a_minus_b_or_b_minus_a(a, b)
    print(answer)


if __name__ == '__main__':
    main()


Failing test case input:
35 28

Expected output:
-7


Actual output:
7


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


def a_minus_b_or_b_minus_a(a, b):
    if b % a == 0:
        return a + b
    else:
        return b - a

def main():
    input_line = stdin.readline().rstrip()
    a, b = [int(num_string) for num_string in input_line.split(' ')]
    answer = a_minus_b_or_b_minus_a(a, b)
    print(answer)


if __name__ == '__main__':
    main()
Problem: p03125
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a % b == 0:
    print(a+b)
else:
   print(b-a)

Failing test case input:
42 14

Expected output:
-28


Actual output:
56


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

if b % a == 0:
    print(a+b)
else:
   print(b-a)

Problem: p03125
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
if B%A==0:
  print(A+B)
else:
  print(A-B)

Failing test case input:
34 -2

Expected output:
-36


Actual output:
36


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

Problem: p03125
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
if A % B == 0:
    print(A+B)
else:
    print(A - B)

Failing test case input:
19 70

Expected output:
51


Actual output:
-51


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

Problem: p03125
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A, B = map(int, input().split())

if A%B == 0:
  print(A+B)
else:
  print(B-A)

Failing test case input:
2 182

Expected output:
184


Actual output:
180


Fixed submission (verdict: Accepted):

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

if B%A == 0:
  print(A+B)
else:
  print(B-A)

Problem: p03125
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split());print(b+a*(2*(1-b%a)-1))

Failing test case input:
22 14

Expected output:
-8


Actual output:
-580


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

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

Failing test case input:
25 -1

Expected output:
-26


Actual output:
26


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

Problem: p03125
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if __name__ == '__main__':
    A, B = map(int, input().split())
    if B%A != 0:
        print(A+B)
    else:
        print(B - A)

Failing test case input:
111 90

Expected output:
-21


Actual output:
201


Fixed submission (verdict: Accepted):
if __name__ == '__main__':
    A, B = map(int, input().split())
    if B%A == 0:
        print(A+B)
    else:
        print(B - A)

Problem: p03125
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = (int(i) for i in input().split())  
  
if a/b == 0:
	c = a + b
else:
	c = b - a
    
print(c)


Failing test case input:
2 182

Expected output:
184


Actual output:
180


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

if b%a == 0:
	c = a + b
else:
	c = b - a
    
print(c)
Problem: p03125
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]

print(list1_0 + list1_1)
print(list1_1 - list1_0)

Failing test case input:
14 70

Expected output:
84


Actual output:
84
56


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

if (list1_1 % list1_0) == 0:
    print(list1_0 + list1_1)
else:
    print(list1_1 - list1_0)

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

a, b = stdin.readline().rstrip().split()
a, b = int(a), int(b)

for i in range(1, 21):
    if a * i > b:
        break

    if b % (a * i) == 0:
        print(a + b)
        break
else:
    print(b - a)

Failing test case input:
19 101

Expected output:
82


Actual output:

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

a, b = stdin.readline().rstrip().split()
a, b = int(a), int(b)

for i in range(1, 21):
    if a * i > b:
        print(b - a)
        break

    if b % (a * i) == 0:
        print(a + b)
        break
else:
    print(b - a)

Problem: p03125
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())
if B%A==0:
  print(A+B)
else:
  print(A-B)

Failing test case input:
3 56

Expected output:
53


Actual output:
-53


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

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


Failing test case input:
9 32

Expected output:
23


Actual output:
-23


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

Problem: p03125
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
if A % B == 0:
  print(A+B)
else:
  print(A-B)

Failing test case input:
8 28

Expected output:
20


Actual output:
-20


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

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

if B % A == 0:
  print(A + B)
else:
  print(A - B)
  

Failing test case input:
42 14

Expected output:
-28


Actual output:
28


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

if B % A == 0:
  print(A + B)
else:
  print(B - A)

Problem: p03125
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,B = map(int,input().split())
 
if A%B==0:
  print(A+B)
else:
  print(A-B)

Failing test case input:
111 68

Expected output:
-43


Actual output:
43


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())
 
if B%A==0:
  print(A+B)
else:
  print(B-A)
Problem: p03125
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())

if A % B == 0:
  print(A+B)
else:
  print(A-B)

Failing test case input:
111 90

Expected output:
-21


Actual output:
21


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

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

def main():
    a, b = map(int, input().split())
    if b / a == 0:
        print(a + b)
    else:
        print(b - a)


if __name__ == "__main__":
    main()


Failing test case input:
3 36

Expected output:
39


Actual output:
33


Fixed submission (verdict: Accepted):
def main():
    a, b = map(int, input().split())
    if b % a == 0:
        print(a + b)
    else:
        print(b - a)


if __name__ == "__main__":
    main()

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

if B % A == 0:
    print(A+B)
else:
    print(A-B)


Failing test case input:
22 14

Expected output:
-8


Actual output:
8


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

if B % A == 0:
    print(A+B)
else:
    print(B-A)

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

Failing test case input:
6 24

Expected output:
30


Actual output:
18


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

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

if a%b==0:
    print(a+b)
else:
    print(b-a)

Failing test case input:
25 -1

Expected output:
-26


Actual output:
24


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

if b%a==0:
    print(a+b)
else:
    print(b-a)

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

Failing test case input:
42 4

Expected output:
-38


Actual output:
38


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

Problem: p03125
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
if B % A == 0 and B >= A:
    print(A+B)
else:
    print(A-B)

Failing test case input:
54 2

Expected output:
-52


Actual output:
52


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
if B % A == 0 and B >= A:
    print(A+B)
else:
    print(B-A)

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


Failing test case input:
6 24

Expected output:
30


Actual output:
18


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