ZhenlongDai/ACPR huggingface dataset:
Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = (int(i) for i in input().split())

if a >= 13:
  print(b)
else:
  if a >= 6:
    print(b/2)
  else:
    print(0)

Failing test case input:
9 110

Expected output:
55


Actual output:
55.0


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

if a >= 13:
  print(b)
elif a >=6:
  print(int(b/2))
else:
  print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a >= 13:
    print(b)
elif 12 >= a >= 6:
    print(b / 2)
else:
    print(0)

Failing test case input:
12 100

Expected output:
50

Actual output:
50.0


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a >= 13:
    print(b)
elif 13 > a > 5:
    print(b 
elif 5 >= a:
    print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,k=map(int,input().split())
if n>=13:
    print(k)
elif 6<=n<=12:
    print(k/2)
else:
    print(0)

Failing test case input:
11 111

Expected output:
55


Actual output:
55.5


Fixed submission (verdict: Accepted):
n,k=map(int,input().split())
if n>=13:
    print(k)
elif 6<=n<=12:
    y=k/2
    print(int(y))
else:
    print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B =  map(int, input().split())
if A>= 13:
  print(int(B))
if A < 5:
  print(int(0))
if 6<= A <=12:
  print(int(B/2))

Failing test case input:
5 111

Expected output:
0


Actual output:

Fixed submission (verdict: Accepted):
A, B =  map(int, input().split())
if A>= 13:
  print(int(B))
if A <= 5:
  print(int(0))
if 6<= A <=12:
  print(int(B/2))

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a <= 5:
    print("0")

elif 6 <= a and a <= 12:
    print(b/2)

elif a >= 13:
    print(b)

Failing test case input:
9 100

Expected output:
50


Actual output:
50.0


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

elif 6 <= a and a <= 12:
    print(int(b/2))

elif a >= 13:
    print(b)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
print(b if a >= 13 else b/2 if a >= 6 else 0)

Failing test case input:
9 010

Expected output:
5


Actual output:
5.0


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

Problem: p03035
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n = list(map(int, input().split()))

if n[1] >= 13:
    print(n[0])
elif n[1]>=6 and n[1]<=12:
    print(n[0]/2)
elif n[1]<=5:
    print(0)

Failing test case input:
3 110

Expected output:
0


Actual output:
3


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

if n[0] >= 13:
    print(n[1])
elif n[0]>=6 and n[0]<=12:
    print(n[1]
elif n[0]<=5:
    print(0)
Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a>=13:
  print(b)
elif a>=6 :
  print(b/2)
else:
  print(0)

Failing test case input:
12 110

Expected output:
55


Actual output:
55.0


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a>=13:
  print(b)
elif a>=6 :
  print(b
else:
  print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = tuple(int(i) for i in input().split(" "))
if A >= 13:
	print(B)
elif A >= 6:
	print(B / 2)
else:
    print(0)

Failing test case input:
9 100

Expected output:
50


Actual output:
50.0


Fixed submission (verdict: Accepted):
A, B = tuple(int(i) for i in input().split(" "))
if A >= 13:
    print(B)
elif A >= 6:
	print(int(B / 2))
else:
    print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())
if A >= 13:
  print(B)
elif A <=5:
  print(0)
else:
  print(B/2)

Failing test case input:
9 100

Expected output:
50


Actual output:
50.0


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())
if A >= 13:
  print(B)
elif 6 <= A <= 12:
  print(B
else:
  print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
if a >= 13: print(b)
elif 5 <= a < 13: print(int(b/2))
else: print(0)

Failing test case input:
5 111

Expected output:
0


Actual output:
55


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
if a >= 13: print(b)
elif 6 <= a < 13: print(int(b/2))
else: print(0)

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

if a>=13:
    print(b)
elif 12 >= a >= 6:
    print(b/2)
else:
    print(0)

Failing test case input:
10 001

Expected output:
0


Actual output:
0.5


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

if a>=13:
    print(b)
elif 12 >= a >= 6:
    print(b
else:
    print(0)

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

if a<6:
    print("0")
elif a<13:
    print(b/2)
else:
    print(b)

Failing test case input:
10 001

Expected output:
0


Actual output:
0.5


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

if a<6:
    print("0")
elif a<13:
    print(int(b/2))
else:
    print(b)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
i = input().split(' ')

a = int(i[0])
b = int(i[1])

if a >= 13:
	print(b)
elif a >= 6:
	print(b / 2)
else:
	print(0)

Failing test case input:
11 111

Expected output:
55


Actual output:
55.5


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

a = int(i[0])
b = int(i[1])

if a >= 13:
	print(b)
elif a >= 6:
	print(b 
else:
	print(0)
Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int, input().split())

if A >= 13:
     print(B)
elif A>=6 and A<=12:
    print(B/2)
else:
    print("0")

Failing test case input:
9 111

Expected output:
55


Actual output:
55.5


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

if A >= 13:
     print(B)
elif A>=6 and A<=12:
    print(int(B/2))
else:
    print("0")

Problem: p03035
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b= map(int,input().split())
if a >= 13:
    print(b)
elif a >=6 and a<= 12:
    print(b/2)
elif a <= 5:
    print(0)

Failing test case input:
12 100

Expected output:
50

Actual output:
50.0


Fixed submission (verdict: Accepted):
a,b= map(int,input().split())
if a >= 13:
    print(b)
elif a > 5:
    print(b
elif a <= 5:
    print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
if a>12:
    print(b)
elif a>5:
    print(b/2)
else:
    print(0)

    

Failing test case input:
9 010

Expected output:
5


Actual output:
5.0


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
if a>12:
    print(b)
elif a>5:
    print(b
else:
    print(0)

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


if __name__ == '__main__':
  A,B = map(int,input().split())
  if A >= 13:
    print(B)
  elif A>=6:
    print(B/2)
  else:
    print(0)

Failing test case input:
9 100

Expected output:
50


Actual output:
50.0


Fixed submission (verdict: Accepted):


if __name__ == '__main__':
  A,B = map(int,input().split())
  if A >= 13:
    print(B)
  elif A>=6:
    print(int(B/2))
  else:
    print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
if a>=13:
  print(b)
elif a>=6 and a<=12:
  print(b/2)
else :
  print(0)
    


Failing test case input:
7 110

Expected output:
55


Actual output:
55.0


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

if a>=13:
  print(b)
elif a>=6:
  print(b
else:
  print(0)

Problem: p03035
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=map(int,input().split())
if a>12:
    print(b)
elif 12>=a>=6:
    print(b/2)
else:
    print(0)


Failing test case input:
6 110

Expected output:
55


Actual output:
55.0


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a>12:
    print(b)
elif 12>=a>=6:
    print(b
else:
    print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a>=13:
    print(b)
elif a>=6 and a<=12:
    print(b/2)
else:
    print(0)

Failing test case input:
9 111

Expected output:
55


Actual output:
55.5


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a>=13:
    print(b)
elif a>=6:
    print(b
else:
    print(0)
Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=(int(i) for i in input().split())



if 6<=a<=12 :
    ans = b/2

elif 6 > a :
    ans = 0

else :
    ans = b

print(ans)


Failing test case input:
10 001

Expected output:
0


Actual output:
0.5


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



if 6<=a<=12 :
    ans = b/2

elif 6 > a :
    ans = 0

else :
    ans = b

print(int(ans))

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

if a >= 13:
    print(b)
elif a >= 6:
    print(b/2)
else:
    print(0)

Failing test case input:
11 111

Expected output:
55


Actual output:
55.5


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

if a >= 13:
    print(b)
elif a >= 6:
    print(int(b/2))
else:
    print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())
if A >= 13:
  print(B)
elif A>=6 and A<=12:
  print(B/2)
else:
  print(0)


Failing test case input:
11 111

Expected output:
55


Actual output:
55.5


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())
if A >= 13:
  print(B)
elif A>=6 and A<=12:
  print(int(B/2))
elif A<=5:
  print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
if a<6:
  print(0)
elif a<13:
  print(b/2)
else:
  print(b)

Failing test case input:
7 110

Expected output:
55


Actual output:
55.0


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

Problem: p03035
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
try:
    age,money=map(int, input().split())
    assert 0<=age<=100 and 2<=money<=1000 and money%2==0
    if age<=5:
        print('0')
    elif 6<=age<=12:
        print(money/2)
    else:
        print(money)
except AssertionError:
    print('')



Failing test case input:
-10 100

Expected output:
0


Actual output:

Fixed submission (verdict: Accepted):
try:
    age,money=map(int, input().split())
    assert 0<=age<=100 and 2<=money<=1000 and money%2==0
    if age<=5:
        print('0')
    elif 6<=age<=12:
        print(money
    else:
        print(money)
except AssertionError:
    print('')

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

if A>=13:
    print(B)
elif A>=12:
    print(B/2)
else:
    print(0)

Failing test case input:
11 111

Expected output:
55


Actual output:
0


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

if A>=13:
    print(int(B))
elif A>=6:
    print(int(B/2))
else:
    print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l = input().split()
a = int(l[0])
b = int(l[1])
if a >= 13:
    c = b
elif a <=12 and a >= 6:
    c = b /2
else:
    c = 0
print(c)

Failing test case input:
6 110

Expected output:
55


Actual output:
55.0


Fixed submission (verdict: Accepted):
l = input().split()
a = int(l[0])
b = int(l[1])
if a >= 13:
    c = b
elif a <=12 and a >= 6:
    c = b /2
else:
    c = 0
print(int(c))
Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int, input().split())

if A > 13:
    print(B)
elif 6 <= A <= 12:
    print(B/2)
elif 6 > A:
    print("0")



Failing test case input:
6 101

Expected output:
50


Actual output:
50.5


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

if A >= 13:
    print(B)
elif 6 <= A <= 12:
    print(int(B/2))
elif 5 >= A:
    print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())
if A >= 13:
  print(B)
elif A>=6 and A<=12:
  print(B/2)
elif A<=5:
  print(0)


Failing test case input:
10 110

Expected output:
55


Actual output:
55.0


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())
if A >= 13:
  print(B)
elif A>=6 and A<=12:
  print(int(B/2))
elif A<=5:
  print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
if A>=13:
  print(B)
elif A>=6:
  print(B/2)
else:
  print("0")

Failing test case input:
12 110

Expected output:
55


Actual output:
55.0


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
if A>=13:
  print(B)
elif A>=6:
  print(B
else:
  print("0")

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

if A<6:
  print(0)
if 6<=A<12:
  print(B/2)
else:
  print(B)



Failing test case input:
-2 000

Expected output:
0


Actual output:
0
0


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

if A<6:
  print(0)
elif 6<=A<=12:
  print(B
else:
  print(B)

Problem: p03035
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
A , B = map(int,input().split())

if A >= 13:
    print(B)

if 6 <= A <= 12:
    print(B / 2)

if A <= 5:
    print(0)

Failing test case input:
9 010

Expected output:
5


Actual output:
5.0


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

if A >= 13:
    print(B)

if 6 <= A and A <= 12:
    print(B 

if A <= 5:
    print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
hoge = input().split()
a = int(hoge[0])
b = int(hoge[1])
if a >= 13:
  print(b)
elif a >= 6 and a <= 12:
  print(b/2)
else:
  print(0)

Failing test case input:
7 110

Expected output:
55


Actual output:
55.0


Fixed submission (verdict: Accepted):
hoge = input().split()
a = int(hoge[0])
b = int(hoge[1])
if a >= 13:
  print(b)
elif a >= 6 and a <= 12:
  print(int(b/2))
else:
  print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
 
if a > 13:
  print(b)
elif a < 6 and a >= 0:
  print(0)
elif a <= 12 and a >= 6: 
  print(int(b/2))


Failing test case input:
-4 101

Expected output:
0


Actual output:

Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
 
if a < 6:
  print(0)
elif a <= 12:
  print(int(b/2))
else: 
  print(b)
Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())

if a >= 13:
  print(b)
elif  a >= 5 and 13 >= a:
  print(b/2)
else:
  print(0)
    

Failing test case input:
11 111

Expected output:
55


Actual output:
55.5


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

if a >= 13:
  print(b)
elif  a >= 6 and 12 >= a:
  print(int(b/2))
elif a<= 5:
  print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a>=13:
    print(b)
elif a>=6:
    print(b/2)
else:
    print(0)

Failing test case input:
7 110

Expected output:
55


Actual output:
55.0


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a>=13:
    print(b)
elif a>=6:
    print(b
else:
    print(0)

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

if A >=13:
	print(B)
elif A>=6:
	print(B/2)
else:
	print(0)

Failing test case input:
10 001

Expected output:
0


Actual output:
0.5


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

if A >=13:
	print(B)
elif A>=6:
	print(int(B/2))
else:
	print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int, input().split())
if a >= 13:
    print (b)
elif 6>=a:
    print (b/2)
else:
    print (0)


Failing test case input:
-2 001

Expected output:
0


Actual output:
0.5


Fixed submission (verdict: Accepted):
a,b = map(int, input().split())
if a >= 13:
    print (b)
elif 6<=a and a<=12:
    print (int(b/2))
else:
    print (0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
if a >= 13:
  print(b)
elif a < 5:
  print(0)
else:
  print(b/2)

Failing test case input:
6 101

Expected output:
50


Actual output:
50.5


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
if a >= 13:
  print(b)
elif a <= 5:
  print(0)
else:
  print(b

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
if A<6:
  print(0)
elif 6<=A<=12:
  print(B/2)
else:
  print(B)

Failing test case input:
12 100

Expected output:
50

Actual output:
50.0


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
if A<=5:
  print(0)
elif 6<=A<=12:
  print(int(B/2))
elif A>=13:
  print(B)

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

if A>=13:
    print(B)
elif A>=6:
    print(B/2)
else:
    print(0)


Failing test case input:
10 110

Expected output:
55


Actual output:
55.0


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

if A>=13:
    print(B)
elif A>=6:
    print(int(B/2))
else:
    print(0)
Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def input_from_console():
    a, b = map(int, input().split())
    return a, b


def solve(a, b):
    if a >= 13:
        return b
    elif a >= 6:
        return b / 2
    return 0


def main():
    a, b = input_from_console()
    print(solve(a, b))


if __name__ == "__main__":
    DEBUG = False
    if not DEBUG:
        main()

Failing test case input:
12 100

Expected output:
50

Actual output:
50.0


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


def solve(a, b):
    if a >= 13:
        return b
    elif a >= 6:
        return int(b / 2)
    return 0


def main():
    a, b = input_from_console()
    print(solve(a, b))


if __name__ == "__main__":
    DEBUG = False
    if not DEBUG:
        main()

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

if a <= 5:
    print(0)

elif a >= 6 and a <= 12:
    print(b / 2)

else:
    print(b)


Failing test case input:
7 110

Expected output:
55


Actual output:
55.0


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

if a <= 5:
    print(0)

elif a >= 6 and a <= 12:
    print(b 

else:
    print(b)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = input().split()
a = int(a)
b = int(b)
price = 0
if a>=13:
    price = b
elif a>=6:
    price = b / 2
else:
    price = 0
print(price)

Failing test case input:
11 111

Expected output:
55


Actual output:
55.5


Fixed submission (verdict: Accepted):
a,b = input().split()
a = int(a)
b = int(b)
price = 0
if a>=13:
    price = b
elif a>=6:
    price = b / 2
else:
    price = 0
price = int(price)
print(price)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split(" "))
if a <= 5:
  print(0)
elif a >= 6 and a <= 12:
  print(b / 2)
else:
  print(b)


Failing test case input:
9 100

Expected output:
50


Actual output:
50.0


Fixed submission (verdict: Accepted):
a,b = map(int,input().split(" "))
if a <= 5:
  print(0)
elif a >= 6 and a <= 12:
  print(b 
else:
  print(b)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
if A >=13:
    print(B)
elif 6 <= A <= 12:
    print(B / 2)
elif A <= 5:
    print(0)  

Failing test case input:
12 110

Expected output:
55


Actual output:
55.0


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
if A >=13:
    print(B)
elif 6 <= A <= 12:
    print(int(B / 2))
elif A <= 5:
    print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = list(map(int, input().split()))
if a >= 13:
    print(b)
elif a > 5:
    print(b/2)
else:
    print(0)

Failing test case input:
11 111

Expected output:
55


Actual output:
55.5


Fixed submission (verdict: Accepted):
a, b = list(map(int, input().split()))
if a >= 13:
    print(b)
elif 6<= a <= 12:
    print(b
else:
    print(0)
Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    a, b = map(int, input().split())
    if a >= 12:
        ans = b
    elif a >= 6:
        ans = int(b / 2)
    else:
        ans = 0

    print(ans)


if __name__ == "__main__":
    main()


Failing test case input:
12 110

Expected output:
55


Actual output:
110


Fixed submission (verdict: Accepted):
def main():
    a, b = map(int, input().split())
    if a >= 13:
        ans = b
    elif a >= 6:
        ans = int(b / 2)
    else:
        ans = 0

    print(ans)


if __name__ == "__main__":
    main()

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

if a>=13:
  print(b)
elif 6<=a<=12:
  print(b/2)
else:
  print(0)

Failing test case input:
6 110

Expected output:
55


Actual output:
55.0


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

import math
if a>=13:
  print(b)
elif a<=5:
  print(0)
else:
  c=math.floor(b/2)
  print(c)

Problem: p03035
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
A, B = map(int, input().split())

if A < 6:
    print(0)
elif A < 13:
    print(B/2)
else:
    print(B)


Failing test case input:
11 111

Expected output:
55


Actual output:
55.5


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

if A <= 5:
    print(0)
elif A <= 12:
    print(B
else:
    print(B)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y = map(int,input().split())
if x>=13:
  print(y)
elif x>=6 and x<13:
  print(y/2)
else:
  print(0)

Failing test case input:
9 111

Expected output:
55


Actual output:
55.5


Fixed submission (verdict: Accepted):
x,y = map(int,input().split())
if x>=13:
  print(y)
elif x>=6 and x<13:
  print(int(y/2))
else:
  print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B =  list(map(int,input().split()))
if A>13:
    print(B)
elif 6<A<=12:
    print(int(B/2))
else:
    print(0)

Failing test case input:
6 111

Expected output:
55


Actual output:
0


Fixed submission (verdict: Accepted):
A, B =  list(map(int,input().split()))
if A>=13:
    print(B)
elif 6<=A<=12:
    print(int(B/2))
else:
    print(0)

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

if b >= 13:
  print(c)
elif 6 <= b <= 12:
  print(c/2)
else:
  print(c*0)

Failing test case input:
7 110

Expected output:
55


Actual output:
55.0


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

if b >= 13:
  print(c)
elif 6 <= b <= 12:
  print(int(c/2))
elif b <=5:
  print(int(0))

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

if 13<=a:
  p=int(b)
  print(p)
if 6<=a<=12:
  p=int(b/2)
  print(p)
if a<+5:
  print('0')


Failing test case input:
5 111

Expected output:
0


Actual output:

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

if 13<=a:
  p=int(b)
  print(p)
if 6<=a<=12:
  p=int(b
  print(p)
if a<=5:
  print('0')
Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
if A<=5:
  print(0)
elif 6<=A<=12:
  print(B/2)
elif A>=13:
  print(B)

Failing test case input:
12 110

Expected output:
55


Actual output:
55.0


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
if A<=5:
  print(0)
elif 6<=A<=12:
  print(int(B/2))
elif A>=13:
  print(B)

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

if a <= 5:
	res = 0
elif a >5 & a <= 12:
	res = int(b/2)
else:
	res = b

print(res)

Failing test case input:
20 110

Expected output:
110


Actual output:
55


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

if a <= 5:
	res = 0
elif a > 5 and a <= 12:
	res = int(b/2)
else:
	res = b

print(res)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
if A>=13:
  print(B)
elif (A>=6) and (A<=12):
  print(B/2)
else:
  print(0)
  

Failing test case input:
6 101

Expected output:
50


Actual output:
50.5


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
if A>=13:
  print(B)
elif A>=6 and A<=12:
  print(B
else:
  print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b =map(int,input().split())
if a >= 13:
    print(b)
elif 5<= a <= 12:
    print(int(b/2))
elif 0 <= a <= 5:
    print(0)

Failing test case input:
-2 100

Expected output:
0


Actual output:

Fixed submission (verdict: Accepted):
a,b =map(int,input().split())
if a >= 13:
    print(b)
elif 6<= a <= 12:
    print(int(b/2))
elif  a <= 5:
    print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
d = input().split(" ")
A = int(d[0])
B = int(d[1])

if(A >= 13):
  money = B
elif(A >= 6):
  money = B/2
else:
  money = 0
    
print(money)

Failing test case input:
10 001

Expected output:
0


Actual output:
0.5


Fixed submission (verdict: Accepted):
d = input().split(" ")
A = int(d[0])
B = int(d[1])
 
if(A >= 13):
  money = B
elif(A >= 6):
  money = B/2
else:
  money = 0
    
print(int(money))

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






A, B= map(int,input().split())
if A>=13:
    print(B)
elif 6<=A:
     print(B/2)   
else:
    print(0)

Failing test case input:
12 100

Expected output:
50

Actual output:
50.0


Fixed submission (verdict: Accepted):






A, B= map(int,input().split())
if A>=13:
    print(B)
elif 6<=A:
     print(int(B/2))   
else:
    print(0)

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

if A >= 13:
  ans = B
elif 6 <= A <= 12:
  ans = B/2
else:
  ans = 0
print(ans)

Failing test case input:
9 110

Expected output:
55


Actual output:
55.0


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

if A >= 13:
  ans = B
elif 6 <= A <= 12:
  ans = int(B/2)
else:
  ans = 0
print(ans)
Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys

A, B = input().split()

if int(A) >= 13:
    print(int(B))
else:
    print(int(int(B)/2))

Failing test case input:
3 011

Expected output:
0


Actual output:
5


Fixed submission (verdict: Accepted):
import sys

A, B = input().split()

if int(A) >= 13:
    print(int(B))
elif int(A) >= 6:
    print(int(int(B)/2))
else:
    print(int(0))

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a>=13:
    print(b)
elif a<=5:
    print(0)
else:
    print(b/2)
    


Failing test case input:
10 110

Expected output:
55


Actual output:
55.0


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a>=13:
    print(b)
elif a<=5:
    print(0)
else:
    print(b

Problem: p03035
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
A, B = map(int, input().split())
print(B if A >= 13 else B / 2 if A >= 6 else 0)

Failing test case input:
7 110

Expected output:
55


Actual output:
55.0


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

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
istr=input()
a,b=istr.split(' ')
a=int(a)
b=int(b)
if a>12:
    print(b)
elif a>=6:
    print(b/2)
else:
    print(0)

Failing test case input:
12 110

Expected output:
55


Actual output:
55.0


Fixed submission (verdict: Accepted):
istr=input()
a,b=istr.split(' ')
a=int(a)
b=int(b)
if a>12:
    print(b)
elif a>=6:
    print(int(b/2))
else:
    print(0)

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

if A >= 13:
    print(B)

elif A >= 6 and A <= 12:
    print(B/2)

elif A <= 5:
    print(0)


Failing test case input:
9 100

Expected output:
50


Actual output:
50.0


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


if A >= 13:
    print(B)

elif A >= 6 and A <= 12:
    print(int(B/2))

else:
    print(0)

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

if 6 <= A <= 12:
  print(B/2)
elif A <= 5:
  print(0)
else:
  print(B)
  

Failing test case input:
10 001

Expected output:
0


Actual output:
0.5


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

if 6 <= A <= 12:
  print(B
elif A <= 5:
  print(0)
else:
  print(B)

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

if A>=13:
    print(B)
elif 6 <= A < 13:
    print(B/2)
else:
    print(0)

Failing test case input:
9 110

Expected output:
55


Actual output:
55.0


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

if A>=13:
    print(B)
elif 6 <= A < 13:
    print(int(B/2))
else:
    print(0)
Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = input().split()
a = int(a)
b = int(b)
price = 0
if a>=13:
    price = b
elif a>=6:
    price = b / 2
print(price)

Failing test case input:
10 001

Expected output:
0


Actual output:
0.5


Fixed submission (verdict: Accepted):
a,b = input().split()
a = int(a)
b = int(b)
price = 0
if a>=13:
    price = b
elif a>=6:
    price = b / 2
else:
    price = 0
price = int(price)
print(price)

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

if a >= 6 & a <= 12:
        b = b / 2
elif a <= 5:
        b = 0

print(b)

Failing test case input:
0 000

Expected output:
0


Actual output:
0.0


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

if a <= 12:
        b = b / 2

if a <= 5:
        b = 0

print(int(b))

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

if a >= 13:
  print(b)
if 6 <= a and a <= 12:
  print(b/2)
if 5 >= a:
  print(0)

Failing test case input:
9 010

Expected output:
5


Actual output:
5.0


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
 
if a >= 13:
  print(b)
if 6 <= a and a <= 12:
  print(b
if 5 >= a:
  print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
if a < 6:
  print(0)
elif a < 13:
  print(b / 2)
else:
  print(b)

Failing test case input:
9 110

Expected output:
55


Actual output:
55.0


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
if a < 6:
  print(0)
elif a < 13:
  print(int(b / 2))
else:
  print(b)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
if A >= 13:
  print(B)
elif 6 <= A and A <= 12:
  print(B / 2)
elif A <= 5:
  print(0)

Failing test case input:
12 110

Expected output:
55


Actual output:
55.0


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
if A >= 13:
  print(B)
elif 6 <= A and A <= 12:
  print(int(B / 2))
else:
  print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a >= 13:
    print(b)
elif 12 >= a and a>= 6:
    print(b / 2)
else:
    print(0)

Failing test case input:
6 111

Expected output:
55


Actual output:
55.5


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a >= 13:
    print(b)
elif 13 > a > 5:
    print(b 
elif 5 >= a:
    print(0)

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

if a >= 13:
    print(b)
elif a <= 5:
    print(b)
else:
    print(b/2)

Failing test case input:
1 011

Expected output:
0


Actual output:
11


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

if a >= 13:
    print(b)
elif a <= 5:
    print(0)
else:
    print(b
Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
if a<6:
  print('0')
elif 6<=a<=12:
  print(b/2)
else:
  print(b)

Failing test case input:
7 110

Expected output:
55


Actual output:
55.0


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
if a<6:
  print('0')
elif 6<=a<=12:
  print(int(b/2))
else:
  print(b)

Problem: p03035
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=map(int,input().split())
if a>=13:
    print(b)
elif 6<=a<=12:
    print(b/2)
else:
    print(0)

Failing test case input:
12 110

Expected output:
55


Actual output:
55.0


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a>=13:
    print(b)
elif 6<=a<=12:
    print(int(b/2))
else:
    print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
if A>=13:
  print(B)
elif A>=6 and A<=12:
  print(B/2)
elif A<=5:
  print(0)

Failing test case input:
12 110

Expected output:
55


Actual output:
55.0


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a>=13:
  print(b)
elif a>=6 and a<13:
  print(b
else:
  print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = (int(i) for i in input().split())  
if a<= 13:
  sum = b
if 6<= a <= 12:
  sum = b/2
elif 5>=a:
  sum = 0
print(sum)
 

Failing test case input:
9 010

Expected output:
5


Actual output:
5.0


Fixed submission (verdict: Accepted):
a,b = (int(i) for i in input().split())  
sum = b
if 13<= a:
  sum = b
if 6<= a <= 12:
  sum = b/2
if 5>=a:
  sum = 0
print(int(sum))

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a >= 13:
    print(b)
elif a > 5:
    print(b/2)
else:
    print(0)

Failing test case input:
11 111

Expected output:
55


Actual output:
55.5


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a >= 13:
    print(b)
elif a > 5:
    print(b
else:
    print(0)

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

import sys;
sys.setrecursionlimit(20000) 





a = [x for x in map(int, input().split())]
















surfixes = ("dream", "dreamer", "erase", "eraser")

def doit(l):
  
  if l == 0:
    return True;
  for x in surfixes:
    if s[:l].endswith(x):

      if doit(l-len(x)):
        return True
  return False

try:
  if a[0] > 12:
    print("" + [a1])
  elif a[0] > 5:
    print("" + ([a1]/2))
  else:
    print("0")
except Exception as e:
  print(e, file=sys.stderr)


Failing test case input:
6 111

Expected output:
55


Actual output:

Fixed submission (verdict: Accepted):

import sys;
sys.setrecursionlimit(20000) 





a = [x for x in map(int, input().split())]














print(a, file=sys.stderr)



def doit(l):
  
  if l == 0:
    return True;
  for x in surfixes:
    if s[:l].endswith(x):

      if doit(l-len(x)):
        return True
  return False

try:
  if a[0] > 12:
    print("%d" % a[1])
  elif a[0] > 5:
    print("%d" % (a[1]/2))
  else:
    print("0")
except Exception as e:
  print(e, file=sys.stderr)
Problem: p03035
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b = map(int, input().split())

if a >= 13:
  print(b)
elif a >= 6 and a <= 12:
  print(b/2)
else:
  print(0)

Failing test case input:
12 110

Expected output:
55


Actual output:
55.0


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

if a >= 13:
  print(b)
elif a >= 6 and a <= 12:
  print(int(b/2))
else:
  print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
if A>12:
  print(B)
elif A<13 and A>5:
  print(B/2)
else:
  print("0")

Failing test case input:
9 111

Expected output:
55


Actual output:
55.5


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
if A>12:
  print(B)
elif A<13 and A>5:
  print(int(B/2))
else:
  print("0")

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split(" "))
if A >= 13:
    print(B)
elif 6 <= A <= 12:
    print(B / 2)
elif A <= 5:
    print(0)


Failing test case input:
6 110

Expected output:
55


Actual output:
55.0


Fixed submission (verdict: Accepted):
A, B = map(int, input().split(" "))
if A >= 13:
    print(B)
elif 6 <= A:
    print(B 
elif A <= 5:
    print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a>=13:
    print(b)
elif 6<=a<=12:
    print(b/2)
else:
    print(0)

Failing test case input:
12 110

Expected output:
55


Actual output:
55.0


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a>=13:
    print(b)
elif a>=6 and a<=12:
    print(int(b/2))
else:
    print(0)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a<=5:
    print(0)
elif a>=6 and a<=12:
    print(b/2)
else:
    print(b)

Failing test case input:
10 110

Expected output:
55


Actual output:
55.0


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a<=5:
    print(0)
elif a>=6 and a<=12:
    print(b
else:
    print(b)

Problem: p03035
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int,input().split())
if A <= 5:
	print(0)
elif 6 <= A <= 12:
	print(B/2)
else: print(B)

Failing test case input:
9 110

Expected output:
55


Actual output:
55.0


Fixed submission (verdict: Accepted):
A, B = map(int,input().split())
if A < 6:
    print(0)
elif 5<A<13:
    print(int(B/2))
else: print(B)
Problem: p03371
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c,x,y=map(int,input().split())
res1=a*x+b*y
if x>y:
    res2=c*2*y+a*(x-y)
else:
    res2=c*2*x+b*(y-x)
print(min(res1,res2))

Failing test case input:
251 6 75 6 3

Expected output:
900


Actual output:
1203


Fixed submission (verdict: Accepted):
a,b,c,x,y=map(int,input().split())
res1=a*x+b*y
if x>y:
    res2=c*2*y+a*(x-y)
else:
    res2=c*2*x+b*(y-x)
res3=c*2*max(x,y)
print(min(res1,res2,res3))

Problem: p03371
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B, C, X, Y = map(int, input().split())
ans = 0

if A + B <= C:
    ans = A*X + B*Y
else:
    ans += 2*C*min(X, Y)

    if X >= Y:
        ans += min(A, 2*C) * (X-Y)
    else:
        ans += min(B, 2*C) * (X-Y)

print (ans)


Failing test case input:
1500 2000 1900 3 2

Expected output:
8500

Actual output:
9100


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

if A + B <= 2*C:
    ans = A*X + B*Y
else:
    ans += 2*C*min(X, Y)

    if X >= Y:
        ans += min(A, 2*C) * (X-Y)
    else:
        ans += min(B, 2*C) * (Y-X)

print (ans)

Problem: p03371
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B, C, X, Y = list(map(int, input().split()))
pri = 0

if A + B <= 2 * C:
    pri = A * X + B * Y
else:
    while min(X, Y) >= 1:
        pri += C * 2
        X -= 1
        Y -= 1
    if A * X + B * Y >= 2 * C:
        pri += 2 * C
    else:
        pri += A * X + B * Y

print(pri)


Failing test case input:
97 3 16 1 12

Expected output:
65


Actual output:
64


Fixed submission (verdict: Accepted):
A, B, C, X, Y = list(map(int, input().split()))
pri = 0

if A + B <= 2 * C:
    pri = A * X + B * Y
else:
    while min(X, Y) != 0:
        pri += C * 2
        X -= 1
        Y -= 1
    if A * X + B * Y >= 2 * C * (X + Y):
        pri += 2 * C * (X + Y)
    else:
        pri += A * X + B * Y

print(pri)

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

ans1 = A*X + B*Y
ans2 = 0
ans3 = 0
if X >= Y:
  ans2 = A*(X-Y) + AB*Y*2
  ans3 = AB*X*2
else:
  ans2 = A*(Y-X) + AB*X*2
  ans3 = AB*Y*2
print(min(ans1, ans2, ans3))


Failing test case input:
97 1 25 1 14

Expected output:
63


Actual output:
111


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

ans1 = A*X + B*Y
ans2 = 0
ans3 = 0
if X >= Y:
  ans2 = A*(X-Y) + AB*Y*2
  ans3 = AB*X*2
else:
  ans2 = B*(Y-X) + AB*X*2
  ans3 = AB*Y*2
print(min(ans1, ans2, ans3))
Problem: p03371
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c, x, y = map(int, input().split())

tmp1 = c * min(x, y) * 2
tmp2 = min(a, b) * abs(x - y)

pattern1 = (a * x + b * y)
pattern2 = tmp1 + tmp2
pattern3 = c * max(x, y) * 2

print(min(pattern1, pattern2, pattern3))



Failing test case input:
75 1 43 2 1

Expected output:
151


Actual output:
87


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

tmp1 = c * min(x, y) * 2
tmp2 = 0
if x < y:
    tmp2 = b * abs(x - y)

elif x > y:
    tmp2 = a * abs(x - y)

else:
    tmp2 = float("INF")

pattern1 = (a * x + b * y)
pattern2 = tmp1 + tmp2
pattern3 = c * max(x, y) * 2

print(min(pattern1, pattern2, pattern3))

Problem: p03371
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a,b,c,x,y=map(int,input().split())
if c*2<=a and c*2<=b:
  print(c*2*max(x,y))
  exit()
if c*2>=a+b:
  print(a*x+b*y)
  exit()
if x>=y:
  print(2*c*y+(x-y)*a)
else:
  print(2*c*x+(y-x)*b)

Failing test case input:
251 6 75 6 3

Expected output:
900


Actual output:
1203


Fixed submission (verdict: Accepted):
a,b,c,x,y=map(int,input().split())
if c*2<=a and c*2<=b:
  print(c*2*max(x,y))
  exit()
if c*2<=a:
  print(c*2*x+max(0,b*(y-x)))
  exit()
if c*2<=b:
  print(c*2*y+max(0,a*(x-y)))
  exit()
if c*2>=a+b:
  print(a*x+b*y)
  exit()
if x>=y:
  print(2*c*y+(x-y)*a)
else:
  print(2*c*x+(y-x)*b)

Problem: p03371
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c, x, y = map(int, input().split())
out1 = a * x + b * y
if x > y:
    out2 = x*c*2
    out3 = y*c*2 + (x-y)*a
else:
    out2 = y*c*2
    out3 = x*c*2 + (y-x)*a
print(min([out1, out2, out3]))

Failing test case input:
97 2 21 1 8

Expected output:
56


Actual output:
113


Fixed submission (verdict: Accepted):
a, b, c, x, y = map(int, input().split())
out1 = a * x + b * y
if x > y:
    out2 = x*c*2
    out3 = y*c*2 + (x-y)*a
else:
    out2 = y*c*2
    out3 = x*c*2 + (y-x)*b
print(min([out1, out2, out3]))

Problem: p03371
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a, b, c, x, y = map(int, input().split())
if a+b<2*c:
    print(a*x + b*y)
else:
    if x > y:
        if a < c:
            print(2*y*c + (x-y)*a)
        else:
            print(2*x*c)
    else:
        if a < c:
            print(2*x*c + (y-x)*b)
        else:
            print(2*y*c)

Failing test case input:
97 2 26 1 17

Expected output:
84


Actual output:
884


Fixed submission (verdict: Accepted):
a, b, c, x, y = map(int, input().split())
if a+b < 2*c:
    print(a*x + b*y)
else:
    if x > y:
        if a < 2*c:
            print(2*y*c + (x-y)*a)
        else:
            print(2*x*c)
    else:
        if b < 2*c:
            print(2*x*c + (y-x)*b)
        else:
            print(2*y*c)
Problem: p03371
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B,C,X,Y = map(int, input().split())

n = min(X,Y)

sum = 0

sum = min(n*2*C, A*n+B*n)

if X>Y:
    n = X-n
    sum = sum + n*A
else:
    n = Y - n
    sum = sum + n*B

s = (X+Y)*2*C

if sum>s:
    print(s)
else:
    print(sum)

Failing test case input:
1500 3132 574 90000 100000

Expected output:
114800000


Actual output:
134640000


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

n = min(X,Y)

sum = 0

sum = min(n*2*C, A*n+B*n)

if X>Y:
    n = X-n
    sum = sum + n*A
else:
    n = Y - n
    sum = sum + n*B

sum_ab = X*A + Y*B

sum_a_b = 2*max(X,Y)*C


print(min(sum,sum_ab,sum_a_b))

Problem: p03371
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B, C, X, Y = map(int, input().split())
if A+B <= 2*C:
    ans = A*X+B*Y
else:
    c = min(X, Y)
    x = X-c
    y = Y-c
    ans = 2*C*c +min(A*x+B*y, 2*C*x+2*C*x)
print(ans)

Failing test case input:
1500 2000 1166 0 2

Expected output:
4000


Actual output:
0


Fixed submission (verdict: Accepted):
A, B, C, X, Y = map(int, input().split())
if A+B <= 2*C:
    ans = A*X+B*Y
else:
    c = min(X, Y)
    x = X-c
    y = Y-c
    ans = 2*C*c +min(A*x+B*y, 2*C*x+2*C*y)
print(ans)

Problem: p03371
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b,c,x,y = map(int,input().split())
print( min(x,y)*min(a+b,2*c) + (max(x,y)-min(x,y))*(max(x,y)==y)*b + (max(x,y)-min(x,y))*(max(x,y)==x)*a)
  


Failing test case input:
1928 3132 265 90000 100000

Expected output:
53000000


Actual output:
79020000


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

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

a, b, c, x, y = list(map(int, input().rstrip().split()))
ans = [c * 2 * max(x, y), a * x + b * y]
if x > y:
    ans += [c * 2 * y + a * (x - y)]
elif y < x:
    ans += [c * 2 * x + b * (y - x)]
print(min(ans))

Failing test case input:
104 2 16 1 12

Expected output:
54


Actual output:
128


Fixed submission (verdict: Accepted):

a, b, c, x, y = list(map(int, input().rstrip().split()))
ans = min(
    c * 2 * max(x, y),
    a * x + b * y,
    c * 2 * y + a * max(0, x - y),
    c * 2 * x + b * max(0, y - x),
)
print(ans)

Problem: p03371
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a, b, c, x, y = map(int, input().split())
ans = float("inf")
for i in range(max(x, y)):
    ans = min(ans, i * 2 * c + a * max(0, x - i) + b * max(0, y - i))
print(ans)


Failing test case input:
1928 3132 265 90000 100000

Expected output:
53000000


Actual output:
53002602


Fixed submission (verdict: Accepted):
a, b, c, x, y = map(int, input().split())
ans = float("inf")
for i in range(100001):
    ans = min(ans, i * 2 * c + a * max(0, x - i) + b * max(0, y - i))
print(ans)
Problem: p03371
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c, x, y = map(int, input().split())

candidates = []
candidates.append(a * x + b * y)
candidates.append(c * max(x, y) * 2)
candidates.append(c * min(x, y) * 2 + abs(a - b) * max(x, y))

print(min(candidates))

Failing test case input:
1 1 8 2 0

Expected output:
2


Actual output:
0


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

candidates = []
candidates.append(a * x + b * y)
candidates.append(c * max(x, y) * 2)
candidates.append(c * min(x, y) * 2 + (a if x > y else b) * abs(x - y))

print(min(candidates))

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


tmp = A * X + B * Y


counter = 0
XY_max = max(X,Y)
XY_min = min(X,Y)

for i in range(XY_max):
    if i <= XY_min-1:
        minprice = tmp - A - B + 2 * C
    else:
        minprice = tmp - max(A,B) + 2 * C
    tmp = min(tmp,minprice)

print(tmp)

Failing test case input:
124 6 6 1 12

Expected output:
78


Actual output:
-1154


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

minprice = 10 ** 10
XY_max = max(X,Y)

for i in range(XY_max + 1):
    nokori_X = max(X - i,0)
    nokori_Y = max(Y - i,0)

    tmp = i * 2 * C + nokori_X * A + nokori_Y * B
    minprice = min(tmp,minprice)

if minprice == 10 ** 10:
    minprice = 0

print(minprice)

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

if (C>=(A+B)/2):
    print(A*X+B*Y)
else:
    if(X>=Y):
        price = C*Y*2+A*(X-Y)
    else:
        price = C*X*2+A*(Y-X)
    print(min(price,C*2*max(X,Y)))


Failing test case input:
124 6 6 1 12

Expected output:
78


Actual output:
144


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

if (C>=(A+B)/2):
    price = A*X+B*Y
    print(price)
else:
    if(X>=Y):
        price = C*Y*2+A*(X-Y)
    else:
        price = C*X*2+B*(Y-X)
    print(min(price,C*2*max(X,Y)))

Problem: p03371
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a, b, c, x, y = [int(x) for x in input().split()]

ans1 = 2 * min(x, y) * c
if x >= y:
  ans1 += (x - y) * a
else:
  ans1 += (y - x) * b

ans2 = x * a + y * b
print(min(ans1,ans2))

Failing test case input:
1626 165 681 5 3

Expected output:
6810


Actual output:
7338


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

ans1 = 2 * min(x, y) * c
if x >= y:
  ans1 += (x - y) * a
else:
  ans1 += (y - x) * b

ans2 = x * a + y * b

ans3 = 2 * max(x, y) * c

print(min(ans1, ans2, ans3))