ZhenlongDai/ACPR huggingface dataset:
Problem: p02885
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a, b = map(int, input().split())
curtain = b * 2
if a <= b:
    print(0)
else:
    print(a-curtain)

Failing test case input:
20 15

Expected output:
0

Actual output:
-10


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

Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b =(int(x) for x in input().split())
c=2*a-b
if c>=0:
  print(c)
else:
  print(0)

Failing test case input:
45 11

Expected output:
23


Actual output:
79


Fixed submission (verdict: Accepted):
a,b =(int(x) for x in input().split())
c=a-b*2
if c>=0:
  print(c)
else:
  print(0)

Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if (b*2)>=a:
  print(a-(b*2))
else:
  print("0")
  

Failing test case input:
7 -79

Expected output:
165


Actual output:
0


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

Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
base = input().split()
a = int(base[0])
b = int(base[1])
if a>b*2:
    print(a-b*2)
else:
    print(a)

Failing test case input:
20 15

Expected output:
0

Actual output:
20


Fixed submission (verdict: Accepted):
base = input().split()
a = int(base[0])
b = int(base[1])
if a>b*2:
    print(a-b*2)
else:
    print(0)

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

Failing test case input:
4 -73

Expected output:
150


Actual output:
4


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

Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import fileinput

def process(A, B):
    print(A, B)
    if A <= B*2:
        return 0
    else:
        return A - B*2

for line in fileinput.input():
    print(line.split())
    print(process(*map(int, line.split())))


Failing test case input:
4 -487

Expected output:
978


Actual output:
['4', '-487']
4 -487
978


Fixed submission (verdict: Accepted):
import fileinput

def process(A, B):
    if A <= B*2:
        return 0
    else:
        return A - B*2

for line in fileinput.input():
    print(process(*map(int, line.split())))

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

if A >= B*2:
    print(0)
else:
    print(A-B*2)

Failing test case input:
106 13

Expected output:
80


Actual output:
0


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

if A <= B*2:
    print(0)
else:
    print(A-B*2)
Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def LI():
  return [int(s) for s in input().split()]
 
A,B = LI()
 
print(int(A-2*B)) if A < 2*B else print(0)

Failing test case input:
85 11

Expected output:
63


Actual output:
0


Fixed submission (verdict: Accepted):
def LI():
  return [int(s) for s in input().split()]
 
A,B = LI()
 
print(int(A-2*B)) if A > 2*B else print(0)

Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
if A<=2*B:
  print(0)
else:
  print(2*B-A)

Failing test case input:
77 -1

Expected output:
79


Actual output:
-79


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

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

if A > 2*B:
  print(B)
else:
  print(0)

Failing test case input:
17 5

Expected output:
7


Actual output:
5


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

if A > 2*B:
  print(A-2*B)
else:
  print(0)

Problem: p02885
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A, B = list(map(int, input().split()))
print(A - B * 2)


Failing test case input:
20 15

Expected output:
0

Actual output:
-10


Fixed submission (verdict: Accepted):
A, B = list(map(int, input().split()))
ans = max(0, A - B * 2)
print(ans)

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

Failing test case input:
1 -51

Expected output:
103


Actual output:
53


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
print(max(0,a-(2*b)))

Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
num = (b*2)-a
if num < 0:
  num = 0
print(num)

Failing test case input:
4 -487

Expected output:
978


Actual output:
0


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
num = a-(b*2)
if num < 0:
  num = 0
print(num)

Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map( int, input().split() )
print( A - 2 * B )

Failing test case input:
20 15

Expected output:
0

Actual output:
-10


Fixed submission (verdict: Accepted):
A, B = map( int, input().split() )
print( max( A - 2 * B, 0 ) )

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

Failing test case input:
20 15

Expected output:
0

Actual output:
-10


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
print(max(0, a - b * 2))

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

Failing test case input:
20 15

Expected output:
0

Actual output:
-10


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
print(a-b*2 if a-b*2>=0 else 0)
Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
print(a-2*b)

Failing test case input:
20 15

Expected output:
0

Actual output:
-10


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

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

if b >= a:
  print(0)
else:
  print(a-b)
  

Failing test case input:
2 -51

Expected output:
104


Actual output:
0


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

Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split(" "))
length = A - B * 2
print(length)

Failing test case input:
20 15

Expected output:
0

Actual output:
-10


Fixed submission (verdict: Accepted):
A, B = map(int, input().split(" "))
length = A - B * 2
if length >= 0:
    print(length)
else:
    print(0)

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

Failing test case input:
181 21

Expected output:
139


Actual output:
0


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

Problem: p02885
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=map(int,input().split())
if(a<=b):
  print(0)
else:
  print(a-(b*2))

Failing test case input:
20 15

Expected output:
0

Actual output:
-10


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

Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys

def main():
    A, B = map(int, input().split())

    if(A<=2*B):
        print('0')

    else:
        print(A-B*B)

main()

Failing test case input:
7 -43

Expected output:
93


Actual output:
-1842


Fixed submission (verdict: Accepted):
import sys

def main():
    A, B = map(int, input().split())

    if(A<=2*B):
        print('0')

    else:
        print(A-2*B)

main()

Problem: p02885
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
inpl = lambda: list(map(int,input().split()))
A, B = inpl()
if B*2 >= A:
    print(0)
else:
    print(B*2-A)

Failing test case input:
125 13

Expected output:
99


Actual output:
-99


Fixed submission (verdict: Accepted):
inpl = lambda: list(map(int,input().split()))
A, B = inpl()
if B*2 >= A:
    print(0)
else:
    print(A-B*2)

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


Failing test case input:
23 -46

Expected output:
115


Actual output:
True


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
if a-2*b>0:
    print(a-2*b)
else:
    print(0)
Problem: p02885
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
print(eval('min('+input().replace(' ','-2*')+',0)'))

Failing test case input:
181 9

Expected output:
163


Actual output:
0


Fixed submission (verdict: Accepted):
print(eval('max('+input().replace(' ','-2*')+',0)'))

Problem: p02885
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
def main():
    A, B = list(map(int, input().split()))
    print(min(A - 2 * B, 0))


if __name__ == '__main__':
    main()


Failing test case input:
3 -166

Expected output:
335


Actual output:
0


Fixed submission (verdict: Accepted):
def main():
    A, B = list(map(int, input().split()))
    print(max(A - 2 * B, 0))


if __name__ == '__main__':
    main()

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

if a>=2*b:
  print(0)
else:
  print(a-2*b)

Failing test case input:
2 -147

Expected output:
296


Actual output:
0


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

if a<=2*b:
  print(0)
else:
  print(a-2*b)

Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def LI():
  return [int(s) for s in input().split()]

A,B = LI()

print(A-2*B) if A > 2*B else 0 



Failing test case input:
20 15

Expected output:
0

Actual output:

Fixed submission (verdict: Accepted):
def LI():
  return [int(s) for s in input().split()]
 
A,B = LI()
 
print(int(A-2*B)) if A > 2*B else print(0)

Problem: p02885
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a,b = map(int,input().split())

print(a - b*2 if a-2*b < 0 else 0)

Failing test case input:
2 -147

Expected output:
296


Actual output:
0


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

print(a - b*2 if a-2*b >= 0 else 0)

Problem: p02885
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b = [int(x) for x in input().split()]

b = b * 2

print(max(0, b - a))

Failing test case input:
2 -370

Expected output:
742


Actual output:
0


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

b = b * 2

print(max(0, a - b))

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

r = A - (2*B)

if A < B :
  r = 0
  

Failing test case input:
77 -1

Expected output:
79


Actual output:

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

r = A - (2*B)

if A < (2*B) :
  r = 0
  
print(r)

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

Failing test case input:
39 11

Expected output:
17


Actual output:
0


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
B=b*2
if a>B:
  print(a-B)
else:
  print('0')

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

Failing test case input:
20 15

Expected output:
0

Actual output:
-10


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
print(max(0,a-b*2))
Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int, input().split())

if b*2 > a:
    print(0)
else:
    print(b*2 - a)

Failing test case input:
1 -17

Expected output:
35


Actual output:
-35


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

if b*2 >= a:
    print(0)
else:
    print(a - b*2)

Problem: p02885
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
A, B = [int(i) for i in input().split()]

if A-B<0:
    print(0)
else:
    print(A - 2*B)

Failing test case input:
20 15

Expected output:
0

Actual output:
-10


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

if A-2*B<0:
    print(0)
else:
    print(A - 2*B)

Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
s = a - b
if s >= 0:
  print(s)
else:
  print("0")

Failing test case input:
2 -19

Expected output:
40


Actual output:
21


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
s = a - 2 * b
if s >= 0:
  print(s)
else:
  print("0")

Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int, input().split())
print(max(2*b-a,0))

Failing test case input:
45 20

Expected output:
5


Actual output:
0


Fixed submission (verdict: Accepted):
a,b = map(int, input().split())
print(max(a-2*b,0))

Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int, input().split())
print(A-2*B if (A-2*B) < 0 else 0)


Failing test case input:
23 -46

Expected output:
115


Actual output:
0


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

Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int, input().split())
print(max(0, 2*b-a))

Failing test case input:
181 21

Expected output:
139


Actual output:
0


Fixed submission (verdict: Accepted):
a,b = map(int, input().split())
print(max(0, a-2*b))

Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
print(A-B*2)

Failing test case input:
20 15

Expected output:
0

Actual output:
-10


Fixed submission (verdict: Accepted):

A, B = map(int, input().split())
print(A-B*2 if A-B*2 > 0 else 0)

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

if a - b > 0:
    print(a - b)
else:
    print(0)

Failing test case input:
17 5

Expected output:
7


Actual output:
12


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

if a - 2*b > 0:
    print(a - 2*b)
else:
    print(0)

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

Failing test case input:
18 -46

Expected output:
110


Actual output:
-110


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

if A <= 2 * B:
  print(0)
  
else:
  print(2*B - A)

Failing test case input:
126 21

Expected output:
84


Actual output:
-84


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

if A <= 2 * B:
  print(0)
  
else:
  print(A - 2*B)

Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B =map(int, input().split())
print(min(0,A-B*2))

Failing test case input:
91 2

Expected output:
87


Actual output:
0


Fixed submission (verdict: Accepted):
A, B =map(int, input().split())
print(max(0,A-B*2))

Problem: p02885
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
A,B = map(int, input().split())
print(min(0, A-2*B))

Failing test case input:
37 5

Expected output:
27


Actual output:
0


Fixed submission (verdict: Accepted):
A,B = map(int, input().split())
print(max(0, A-2*B))

Problem: p02885
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,B = map(int,input().split())
print(min(A-B-B,0))

Failing test case input:
35 7

Expected output:
21


Actual output:
0


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

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

X=A-2*B

if X>=1:
    print(B)
    
else:
    print("0")


Failing test case input:
125 12

Expected output:
101


Actual output:
12


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

X=A-2*B

if X>=1:
    print(X)
    
else:
    print("0")

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

if a <= b:
  print(0)
else:
  print(a-2*b)

Failing test case input:
20 15

Expected output:
0

Actual output:
-10


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

if a <= 2*b:
  print(0)
else:
  print(a-2*b)

Problem: p02885
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b = map(int,input().split())
print(max(0,b-a*2))

Failing test case input:
7 -79

Expected output:
165


Actual output:
0


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
print(max(0,a-b*2))

Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
C=A-2*B
if C>0:
    uncovered = C
else:
    uncovered = 0
print('the lenth of unvocered =',uncovered)

Failing test case input:
7 -43

Expected output:
93


Actual output:
the lenth of unvocered = 93


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
C=A-2*B
if C>0:
    uncovered = C
else:
    uncovered = 0
print(uncovered)

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

Failing test case input:
1 -839

Expected output:
1679


Actual output:
0


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a>b*2:
  print(a-b*2)
else:
  print(0)
Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int, input().split())
print(min(0, A - B * 2))

Failing test case input:
2 -18

Expected output:
38


Actual output:
0


Fixed submission (verdict: Accepted):
A,B = map(int, input().split())
print(max(0, A - B * 2))

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

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



Failing test case input:
20 15

Expected output:
0

Actual output:
-10


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

c=b+b
if(a-c!=0)and(a-c>=0):
    print(a-c)
else:
    print(0)

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

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

answer=a-2*b

if(answer < 0):
    print(0)
else:answer

Failing test case input:
194 13

Expected output:
168


Actual output:

Fixed submission (verdict: Accepted):

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

answer=a-2*b

if(answer < 0):
    print(0)
else:
    print(answer)

Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
print(min(0,a-b*2))

Failing test case input:
72 21

Expected output:
30


Actual output:
0


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
print(max(0,a-b*2))

Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=input().split()
a=int(A)
b=int(B)
c=a*b
if a>c:
  x=a-c
else:
  x=0
print(x)

Failing test case input:
17 5

Expected output:
7


Actual output:
0


Fixed submission (verdict: Accepted):
A,B=input().split()
a=int(A)
b=int(B)
c=b*2
if a>c:
  x=a-c
else:
  x=0
print(x)

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

Failing test case input:
20 15

Expected output:
0

Actual output:
-10


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
print(max(0,a-(2*b)))

Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
result = a - (b*2)
if a > 0:
    print(result)
else:
    print(0)

Failing test case input:
20 15

Expected output:
0

Actual output:
-10


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

Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def LI():
  return [int(s) for s in input().split()]
 
A,B = LI()
 
print(int(A-2*B)) if A > 2*B else 0

Failing test case input:
20 15

Expected output:
0

Actual output:

Fixed submission (verdict: Accepted):
def LI():
  return [int(s) for s in input().split()]
 
A,B = LI()
 
print(int(A-2*B)) if A > 2*B else print(0)

Problem: p02885
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
a,b=[int(i) for i in input().split()]
c=(b*2)-a
if(c<0):
  c=a
print(a-c)

Failing test case input:
1 -25

Expected output:
51


Actual output:
0


Fixed submission (verdict: Accepted):
a,b=[int(i) for i in input().split()]
c=b*2
if(c>a):
    c=a
print(a-c)
Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    a, b = map(int, input().split())
    ans = min(a - 2 * b, 0)
    print(ans)


if __name__ == "__main__":
    main()


Failing test case input:
45 11

Expected output:
23


Actual output:
0


Fixed submission (verdict: Accepted):
def main():
    a, b = map(int, input().split())
    ans = max(a - 2 * b, 0)
    print(ans)


if __name__ == "__main__":
    main()

Problem: p02885
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b = map(int, input().split())
print(a - b * 2)

Failing test case input:
20 15

Expected output:
0

Actual output:
-10


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

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

if (b*2-a)>0:
  print(int(b*2-a))
else:
  print(0)

Failing test case input:
1 -15

Expected output:
31


Actual output:
0


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

if (a-b*2)>0:
  print(int(a-b*2))
else:
  print(0)

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

x = A - 2 * B

print(x)

Failing test case input:
20 15

Expected output:
0

Actual output:
-10


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

if(A > 2 * B):
  x = A - 2 * B
else:
  x = 0

print(x)

Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split(" "))
if b * 2 >= a:
  print(0)
else:
  print(b*2 - a)

Failing test case input:
194 13

Expected output:
168


Actual output:
-168


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

Problem: p02885
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
                                
A =a                            
B =b    
        
C = A - B*2
print(C)

Failing test case input:
20 15

Expected output:
0

Actual output:
-10


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
                                
A =a                            
B =b    
        
C = A - B*2
if C < 0:
  C = 0
print(C)

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

Failing test case input:
20 15

Expected output:
0

Actual output:
-10


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
c = max(a-b*2, 0)
print(c)

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

Failing test case input:
20 15

Expected output:
0

Actual output:
-10


Fixed submission (verdict: Accepted):
a,b = map(int, input().split())
c=a-2*b
print(c if c>0 else 0)
Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input().split()

n = int(s[0])
k = int(s[1])

if n ==1 :
    print(0)
else:
    print(n-k)

Failing test case input:
1 477

Expected output:
-476


Actual output:
0


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

n = int(s[0])
k = int(s[1])

if k==1 :
    print(0)
else:
    print(n-k)

Problem: p03005
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N, K = map(int, input().split())
if N == 1:
	print(0)
else:
	print(N-K)

Failing test case input:
1 477

Expected output:
-476


Actual output:
0


Fixed submission (verdict: Accepted):
N, K = map(int, input().split())
if K == 1:
	print(0)
else:
	print(N-K)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m=map(int,input().split())
if n==1:
    print(0)
else:
    print(n-m)

Failing test case input:
1 477

Expected output:
-476


Actual output:
0


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

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,K = map(int,input().split())
if N==1:
  print(0)
else:
  print(N-K)


Failing test case input:
1 351

Expected output:
-350


Actual output:
0


Fixed submission (verdict: Accepted):
N,K = map(int,input().split())
if K==1:
  print(0)
else:
  print(N-K)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if __name__ == "__main__":
    n,k = input().split()
    n = int(n)
    k = int(k)
    print(n-k+1)


Failing test case input:
2 517

Expected output:
-515


Actual output:
-514


Fixed submission (verdict: Accepted):
if __name__ == "__main__":
    n,k = input().split()
    n = int(n)
    k = int(k)
    if k == 1:
        print(0)
    else:
        print(n-k)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, k = map(int, input().split())

if n <= 1:
    ans = 0
else:
    nokori = n - k
    ans = nokori

print(ans)

Failing test case input:
0 323

Expected output:
-323


Actual output:
0


Fixed submission (verdict: Accepted):

n, k = map(int, input().split())

if k <= 1:
    ans = 0
else:
    nokori = n - k
    ans = nokori

print(ans)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,k = map(int,input().split())
if n%k:
    print(1)
else:
    print(0)

Failing test case input:
2 323

Expected output:
-321


Actual output:
1


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

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, K = map(int, input().split())
if N == 1:
    print(0)
else:
    print(N - K)


Failing test case input:
1 477

Expected output:
-476


Actual output:
0


Fixed submission (verdict: Accepted):
N, K = map(int, input().split())
if K == 1:
    print(0)
else:
    print(N - K)
Problem: p03005
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N,K=map(int,input().split())
print(N-K if N!=0 else 0)

Failing test case input:
0 351

Expected output:
-351


Actual output:
0


Fixed submission (verdict: Accepted):
N,K=map(int,input().split())
print(N-K if K!=1 else 0)

Problem: p03005
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N,K = map(int,input().split())
if N == 1:
    print(0)
else:
    print(N-(K-1)-1)

Failing test case input:
1 351

Expected output:
-350


Actual output:
0


Fixed submission (verdict: Accepted):
N,K = map(int,input().split())
if K == 1:
    print(0)
else:
    print(N-(K-1)-1)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,K= map(int, input().split())
if N == 1:
    ans = 0
else:
    ans = N-K
print(ans)

Failing test case input:
1 477

Expected output:
-476


Actual output:
0


Fixed submission (verdict: Accepted):
N,K= map(int, input().split())
if K == 1:
    ans = 0
else:
    ans = N-K
print(ans)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, K = map(int, input().split())
if N == 1:
    print(0)
else:
    print(N - K)

Failing test case input:
1 351

Expected output:
-350


Actual output:
0


Fixed submission (verdict: Accepted):
N, K = map(int, input().split())
if K == 1:
    print(0)
else:
    print(N - K)

Problem: p03005
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):









import sys



ipti = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)

def main():
    n, k = list(map(int,ipti().split()))
    if n == 1:
        print(0)
    else:
        print(n-k)

if __name__ == '__main__':
    main()

Failing test case input:
1 351

Expected output:
-350


Actual output:
0


Fixed submission (verdict: Accepted):









import sys



ipti = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)

def main():
    n, k = list(map(int,ipti().split()))
    if k == 1:
        print(0)
    else:
        print(n-k)

if __name__ == '__main__':
    main()

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,K=map(int,input().split())
print(0 if K==1 or K==N else N-K+1)

Failing test case input:
64 14

Expected output:
50


Actual output:
51


Fixed submission (verdict: Accepted):
N,K=map(int,input().split())
print(0 if K==1 or N==K else N-K)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,K=list(map(int, input().split()))
if N==1:print(0)
else:print(N-K)

Failing test case input:
1 351

Expected output:
-350


Actual output:
0


Fixed submission (verdict: Accepted):
N,K=list(map(int, input().split()))
if K==1:print(0)
else:print(N-K)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,K = map(int,input().split())
print(N-K if N != 1 else 0)

Failing test case input:
1 351

Expected output:
-350


Actual output:
0


Fixed submission (verdict: Accepted):
N,K = map(int,input().split())
print(N-K if K != 1 else 0)
Problem: p03005
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n,k = map(int,input().split())
if n >= 2: print(n-k)
else: print(0)

Failing test case input:
0 351

Expected output:
-351


Actual output:
0


Fixed submission (verdict: Accepted):
n,k = map(int,input().split())
if k >= 2: print(n-k)
else: print(0)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,K = map(int, input().split())
if K > N or K == 1:
	print(1)
else:
	print(N-K)

Failing test case input:
-4 240

Expected output:
-244


Actual output:
1


Fixed submission (verdict: Accepted):
N,K = map(int, input().split())
if K == 1:
	print(0)
else:
	print(N-K)

Problem: p03005
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n,k = map(int,input().split())
if n % k: print(1)
else: print(0)

Failing test case input:
-3 25

Expected output:
-28


Actual output:
1


Fixed submission (verdict: Accepted):
n,k = map(int,input().split())
if k >= 2: print(n-k)
else: print(0)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, k = list(map(int, input().split(" ")))

if n == 1:
  print(0)
else:
  print(n - k)

Failing test case input:
1 351

Expected output:
-350


Actual output:
0


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

if k == 1:
  print(0)
else:
  print(n - k)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,k = map(int,input().split())
if n == k or n == 1:
  print(0)
else:
  print(n-k)


Failing test case input:
1 351

Expected output:
-350


Actual output:
0


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

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys,collections,math,random;sys.setrecursionlimit(10**7)
def Is(): return [int(x) for x in sys.stdin.readline().split()]
def Ss(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

n,k = Is()
if n <= k:
    print(1)
else:
    print(n-k)

Failing test case input:
-2 135

Expected output:
-137


Actual output:
1


Fixed submission (verdict: Accepted):
import sys,collections,math,random;sys.setrecursionlimit(10**7)
def Is(): return [int(x) for x in sys.stdin.readline().split()]
def Ss(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

n,k = Is()
if k == 1 or n == k:
    print(0)
else:
    print(n-k)
Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys,collections,math,random;sys.setrecursionlimit(10**7)
def Is(): return [int(x) for x in sys.stdin.readline().split()]
def Ss(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

n,k = Is()
if k == 0:
    print(0)
elif n <= k:
    print(1)
else:
    print(n-k)

Failing test case input:
-3 25

Expected output:
-28


Actual output:
1


Fixed submission (verdict: Accepted):
import sys,collections,math,random;sys.setrecursionlimit(10**7)
def Is(): return [int(x) for x in sys.stdin.readline().split()]
def Ss(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

n,k = Is()
if k == 1 or n == k:
    print(0)
else:
    print(n-k)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,k=map(int,input().split())
print((n-k)*(n!=0))

Failing test case input:
0 323

Expected output:
-323


Actual output:
0


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

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, k = map(int, input().split())
if k != 1:
  print(max(0, n - k))

Failing test case input:
1 477

Expected output:
-476


Actual output:
0


Fixed submission (verdict: Accepted):
n, k = map(int, input().split())
if k != 1:
  print(n - k)
  exit()
else :
  print(0)

Problem: p03005
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N, K = map(int, input().split())
if K == 1:
  print(0)
  exit()
print(max(N-K, 1))

Failing test case input:
2 130

Expected output:
-128


Actual output:
1


Fixed submission (verdict: Accepted):
N, K = map(int, input().split())
if K == 1:
  print(0)
else:
  print(N-K)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,k=map(int,input().split())

if k==1:
	ans=0
else:
	ans=n-k

Failing test case input:
93 6

Expected output:
87


Actual output:

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

if k==1:
	ans=0
else:
	ans=n-k
print(ans)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
import math
import bisect

def main():
    n, k = map(int, input().split())
    if n == 1:
        print(0)
    else:
        print(n - k)
    
if __name__ == "__main__":
    main()


Failing test case input:
1 477

Expected output:
-476


Actual output:
0


Fixed submission (verdict: Accepted):
import sys
import math
import bisect

def main():
    n, k = map(int, input().split())
    if k == 1:
        print(0)
    else:
        print(n - k)
    
if __name__ == "__main__":
    main()

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
data = input()
datas = data.split(' ')

N = int(datas[0])
K = int(datas[1])

print(K-N)

Failing test case input:
2 517

Expected output:
-515


Actual output:
515


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

N = int(datas[0])
K = int(datas[1])

if K==1:
	print(0)
else:
	print(N-K)
Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,K=list(map(int, input().split()))
print(min(N%K,1))

Failing test case input:
-4 17

Expected output:
-21


Actual output:
1


Fixed submission (verdict: Accepted):
N,K=list(map(int, input().split()))
if K==1:print(0)
else:print(N-K)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, K = list(map(int, input().split()))
if N==1:
  print(0)
else:
  print(K-N)

Failing test case input:
3 90

Expected output:
-87


Actual output:
87


Fixed submission (verdict: Accepted):
N, K = map(int, input().split())
if K==1 or K==0:
  print(0)
else:
  print(N-K)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, K = map(int,input().split())
if N != 1:
    print(N-K)
else:
    print(0)

Failing test case input:
1 351

Expected output:
-350


Actual output:
0


Fixed submission (verdict: Accepted):
N, K = map(int,input().split())
if K == 1:
    print(0)
else:
    print(N-K)

Problem: p03005
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N, K = map(int, input().strip().split())
print(N)
print(K)
if K == 1:
    print('0')
else:
    print(str(N - K))

Failing test case input:
3 90

Expected output:
-87


Actual output:
3
90
-87


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


if K == 1:
    print(0)
else:
    print(N - K)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,k = map(int,input().split())
if n == 1 :
    print(0)
else :
    print(n - k)

Failing test case input:
1 477

Expected output:
-476


Actual output:
0


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

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,k = map(int, input().split())
if k>=2:
    print(n-k-1)
else:
    print(0)

Failing test case input:
2 323

Expected output:
-321


Actual output:
-322


Fixed submission (verdict: Accepted):
n,k = map(int, input().split())
if k>=2:
    print(n-k)
else:
    print(0)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, K = list(map(int, input().split()))
if N==1 or N==0:
  print(0)
else:
  print(K-N)

Failing test case input:
3 90

Expected output:
-87


Actual output:
87


Fixed submission (verdict: Accepted):
N, K = map(int, input().split())
if K==1 or K==0:
  print(0)
else:
  print(N-K)

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

Failing test case input:
3 323

Expected output:
-320


Actual output:
320


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

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


Failing test case input:
0 323

Expected output:
-323


Actual output:
323


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if b==1:print(0)
else:print(a-b)
Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, K = [int(i) for i in input().split()]
print(N - K if N >= 2 else 0)

Failing test case input:
1 477

Expected output:
-476


Actual output:
0


Fixed submission (verdict: Accepted):
N, K = [int(i) for i in input().split()]
print(N - K if K >= 2 else 0)

Problem: p03005
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n,k= map(int, input().split())
if n==1:
  print(0)
else:
  print(n-k)
  

Failing test case input:
1 477

Expected output:
-476


Actual output:
0


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

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,k=(int(i) for i in input().split())
if n>=k:
  print(n-k)
else:
  print(0)

Failing test case input:
-4 17

Expected output:
-21


Actual output:
0


Fixed submission (verdict: Accepted):
n,k=(int(i) for i in input().split())
if k >1:
  print(n-k)
else:
  print(0)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, K = map(int, input().split())
if N == 1:
  print(0)
else:
  print(N-K)


Failing test case input:
1 477

Expected output:
-476


Actual output:
0


Fixed submission (verdict: Accepted):
N, K = map(int, input().split())
if K == 1:
  print(0)
else:
  print(N-K)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys,collections,math,random;sys.setrecursionlimit(10**7)
def Is(): return [int(x) for x in sys.stdin.readline().split()]
def Ss(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

n,k = Is()
if n <= k:
    print(0)
else:
    print(n-k)

Failing test case input:
3 130

Expected output:
-127


Actual output:
0


Fixed submission (verdict: Accepted):
import sys,collections,math,random;sys.setrecursionlimit(10**7)
def Is(): return [int(x) for x in sys.stdin.readline().split()]
def Ss(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

n,k = Is()
if k == 1 or n == k:
    print(0)
else:
    print(n-k)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,k = map(int,input().split())

mi = 1
ma = 1 + k-n

if(k==1):
    print(0)
else:
    print(ma-mi)

Failing test case input:
73 3

Expected output:
70


Actual output:
-70


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

mi = 1
ma = 1 + n-k

if(k==1):
    print(0)
else:
    print(ma-mi)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,K=map(int,input().split())
if N==1:
  print(0)
else:
  print(N-K)

Failing test case input:
1 351

Expected output:
-350


Actual output:
0


Fixed submission (verdict: Accepted):
N,K=map(int,input().split())
if K==1:
  print(0)
else:
  print(N-K)
Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
stdin = sys.stdin

sys.setrecursionlimit(10 ** 7)

def li(): return map(int, stdin.readline().split())
def li_(): return map(lambda x: int(x) - 1, stdin.readline().split())
def lf(): return map(float, stdin.readline().split())
def ls(): return stdin.readline().split()
def ns(): return stdin.readline().rstrip()
def lc(): return list(ns())
def ni(): return int(stdin.readline())
def nf(): return float(stdin.readline())

n,k = li()

if n == 1:
    print(0)
else:
    print(n-k)

Failing test case input:
1 351

Expected output:
-350


Actual output:
0


Fixed submission (verdict: Accepted):
import sys
stdin = sys.stdin

sys.setrecursionlimit(10 ** 7)

def li(): return map(int, stdin.readline().split())
def li_(): return map(lambda x: int(x) - 1, stdin.readline().split())
def lf(): return map(float, stdin.readline().split())
def ls(): return stdin.readline().split()
def ns(): return stdin.readline().rstrip()
def lc(): return list(ns())
def ni(): return int(stdin.readline())
def nf(): return float(stdin.readline())

n,k = li()

if k == 1:
    print(0)
else:
    print(n-k)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k,n = map(int,input().split())
if n == 1: print(0)
else: print(n-k)

Failing test case input:
-4 240

Expected output:
-244


Actual output:
244


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

Problem: p03005
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n,k=map(int,input().split())
if n%k==0:
  print(0)
else:
  print(1)

Failing test case input:
3 52

Expected output:
-49


Actual output:
1


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

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, K = map(int, input().split())
if N >= 2:
    print(N - K)
else:
    print(0)


Failing test case input:
-4 17

Expected output:
-21


Actual output:
0


Fixed submission (verdict: Accepted):
N, K = map(int, input().split())
if K >= 2:
    print(N - K)
else:
    print(0)

Problem: p03005
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N, K = map(int, input().split())
if K == 1:
  print(0)
  exit()
print(max(K-2, 1))

Failing test case input:
-4 17

Expected output:
-21


Actual output:
15


Fixed submission (verdict: Accepted):
N, K = map(int, input().split())
if K == 1:
  print(0)
else:
  print(N-K)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,k=map(int,input().split())
if n==1:
    print(0)
else:
    print(n-k)

Failing test case input:
1 477

Expected output:
-476


Actual output:
0


Fixed submission (verdict: Accepted):
n,k=map(int,input().split())
if k==1:
    print(0)
else:
    print(n-k)
Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, K = input().split()
N, K = int(N), int(K)

if K==1:
  print(0)

if K==2:
  print(N-1)

else: print((N-(K-1))-1)

Failing test case input:
106 2

Expected output:
104


Actual output:
105


Fixed submission (verdict: Accepted):
N, K = input().split()
N, K = int(N), int(K)

if K==1:
  print(0)

else: print((N-(K-1))-1)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, k = (int(i) for i in input().split()) 



min_num = k - 1  

max_num = n - min_num

if max_num - min_num < 0:
    print(0)
elif k < 2:
    print(0)
else:
    print(max_num - min_num)

Failing test case input:
140 3

Expected output:
137


Actual output:
136


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



 
others = k - 1  
min_num = 1
max_num = n - others
 

if k < 2:
    print(0)
else:
    print(max_num - min_num)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, K = map(int, input().split())
if N == 1:
    print(0)
else:
    print(N-K)

Failing test case input:
1 351

Expected output:
-350


Actual output:
0


Fixed submission (verdict: Accepted):
N, K = map(int, input().split())
if K == 1:
    print(0)
else:
    print(N-K)

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

N, K = map(int, input().split())

if N == 1:
    amari = 0
else:
    amari = N - K
print(amari)

Failing test case input:
1 351

Expected output:
-350


Actual output:
0


Fixed submission (verdict: Accepted):

N, K = map(int, input().split())

if K == 1:
    amari = 0
else:
    amari = N - K
print(amari)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, k = map(int, input().split())
if n == 1:
    print(0)
else:
    print(n-k)

Failing test case input:
1 477

Expected output:
-476


Actual output:
0


Fixed submission (verdict: Accepted):
n, k = map(int, input().split())
if k == 1:
    print("0")
else:
    print(n-k)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,k = map(int, input().split())

ans = n-k+1

if k == 1:
  ans = 0
print(ans)

Failing test case input:
93 7

Expected output:
86


Actual output:
87


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

ans = n-k

if k == 1:
  ans = 0
print(ans)

Problem: p03005
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n, k = map(int, input().split())
rem = n-k
if n == 1:
    print(0)
    exit()
print(rem)

Failing test case input:
1 351

Expected output:
-350


Actual output:
0


Fixed submission (verdict: Accepted):
n, k = map(int, input().split())
rem = n-k
if k == 1:
    print(0)
    exit()
print(rem)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,k = map(int,input().split())
if n == 1: print(0)
else: print(n-k)

Failing test case input:
1 477

Expected output:
-476


Actual output:
0


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