Problem p03373 (python)

Fixed submission:
a, b, c, x, y = map(int, input().split())
res = 0
if a+b > c*2:
    mi = min(x, y)
    res += c*2 * mi
    x -= mi
    y -= mi
res += x * min(a, c*2)
res += y * min(b, c*2)
print(res)

Buggy submission (verdict: Runtime Error):
a, b, c, x, y=map(int, input().split())
m=2＊x＊c
n=c＊y＊2+a＊(x-y)
d=2＊y＊c
e=c＊x＊2+b＊(y-x)
f=a＊x+b＊y
g=min(m,n,f)
h=min(d,e,f)
if x>=y:
    print(g)
else:
    print(h)

Buggy submission (verdict: Runtime Error):
a, b, c, x, y=map(int, input().split())
m=2＊x＊c
n=c＊y＊2+a＊(x-y)
d=2＊y＊c
e=c＊x＊2+b＊(y-x)
f=a＊x+b＊y
g=min(m,n,f)
h=min(d,e,f)
if a[3]>=a[4]:
    print(g)
else:
    print(h)

Buggy submission (verdict: Runtime Error):
print 1

Buggy submission (verdict: Runtime Error):
a=list(map(int, input().split()))

print 1

Buggy submission (verdict: Runtime Error):
a=list(map(int, input().split()))
b=2＊a[3]＊a[2]
c=a[2]＊a[4]＊2+a[0]＊(a[3]-a[4])
d=2＊a[4]＊a[2]
e=a[2]＊a[3]＊2+a[1]＊(a[4]-a[3])
f=a[0]＊a[3]+a[1]＊a[4]
g=min(b,c,f)
h=min(d,e,f)
if a[3]>=a[4]:
    print(g)
else:
    print(h)

Buggy submission (verdict: Runtime Error):
a=list(map(int, input().split()))
b=2＊a[3]＊a[2]
c=a[2]＊a[4]＊2+a[0]＊(a[3]-a[4])
d=2＊a[4]＊a[2]
e=a[2]＊a[3]＊2+a[1]＊(a[4]-a[3])
f=a[0]＊a[3]+a[1]＊a[4]
g=min(b,c,f)
h=min(d,e,f)
if a[3]>=a[4]:
    print(g)
else:
    print(h)

Buggy submission (verdict: Runtime Error):
a=list(map(int, input().split()))
b=2＊a[3]＊a[2]
c=a[2]＊a[4]＊2+a[0]＊(a[3]-a[4])
d=2＊a[4]＊a[2]
e=a[2]＊a[3]＊2+a[1]＊(a[4]-a[3])
f=a[0]＊a[3]+a[1]＊a[4]
g=min(b,c,f)
h=min(d,e,f)
if a[3]>=a[4]:
    print(g)
else:
    print(h)

Buggy submission (verdict: Runtime Error):
a=list(map(int, input().split()))
b=2＊a[3]＊a[2]
c=a[2]＊a[4]＊2+a[0]＊(a[3]-a[4])
d=2＊a[4]＊a[2]
e=a[2]＊a[3]＊2+a[1]＊(a[4]-a[3])
f=a[0]＊a[3]+a[1]＊a[4]
if a[3]>=a[4]:print(min(b,c,f))
else:print(min(d,e,f))

Buggy submission (verdict: Runtime Error):
a=list(map(int, input().split()))
b=2＊a[3]＊a[2]
c=a[2]＊a[4]＊2+a[0]＊(a[3]-a[4])
d=2＊a[4]＊a[2]
e=a[2]＊a[3]＊2+a[1]＊(a[4]-a[3])
f=a[0]＊a[3]+a[1]＊a[4]
if a[3]>=a[4]:
    print(min(b,c,f))
else:
    print(min(d,e,f))

Buggy submission (verdict: Runtime Error):
a=list(map(int, input().split()))
b=2＊a[3]＊a[2]
c=a[2]＊a[4]＊2+a[0]＊(a[3]-a[4])
d=2＊a[4]＊a[2]
e=a[2]＊a[3]＊2+a[1]＊(a[4]-a[3])
f=a[0]＊a[3]+a[1]＊a[4]
if a[3]>=a[4]:
    print(min(b,c,f))
else:
    print(min(d,e,f))

Buggy submission (verdict: Runtime Error):
a=list(map(int, input().split()))
b=2＊a[3]＊a[2]
c=a[2]＊a[4]＊2+a[0]＊(a[3]-a[4])
d=2＊a[4]＊a[2]
e=a[2]＊a[3]＊2+a[1]＊(a[4]-a[3])
f=a[0]＊a[3]+a[1]＊a[4]
if a[3]>=a[4]:
  print(min(b,c,f))
else:
  print(min(d,e,f))

Buggy submission (verdict: Runtime Error):
a=list(map(int, input().split()))
if a[0]+a[1]>=a[2]＊2:
    if a[3]>=a[4]:
        print (min(2＊a[3]＊a[2], (a[2]＊a[4]＊2+a[0]＊(a[3]-a[4]))))
    else:
        print (min(2＊a[4]＊a[2], (a[2]＊a[3]＊2+a[1]＊(a[4]-a[3]))))
else:
    print (a[0]＊a[3]+a[1]＊a[4])

Buggy submission (verdict: Runtime Error):
a=list(map(int, input().split()))
if a[0]+a[1]>=a[2]＊2:
    if a[3]>=a[4]:
        print min(2＊a[3]＊a[2], (a[2]＊a[4]＊2+a[0]＊(a[3]-a[4])))
    else:
        print min(2＊a[4]＊a[2], (a[2]＊a[3]＊2+a[1]＊(a[4]-a[3])))
else:
    print (a[0]＊a[3]+a[1]＊a[4])

Buggy submission (verdict: Runtime Error):
a=list(map(int, input().split()))
if a[0]+a[1]>=a[2]＊2:
    if a[3]>=a[4]:
        print max(2＊a[3]＊a[2], (a[2]＊a[4]＊2+a[0]＊(a[3]-a[4])))
    else:
        print max(2＊a[4]＊a[2], (a[2]＊a[3]＊2+a[1]＊(a[4]-a[3])))
else:
    print (a[0]＊a[3]+a[1]＊a[4])

Buggy submission (verdict: Runtime Error):
a=list(map(int, input().split()))
if a[0]+a[1]>=a[2]＊2:
    if a[3]>=a[4]:
        print (a[2]＊a[4]＊2+a[0]＊(a[3]-a[4]))
    else:
        print (a[2]＊a[3]＊2+a[1]＊(a[4]-a[3]))
else:
    print (a[0]＊a[3]+a[1]＊a[4])

Buggy submission (verdict: Runtime Error):
a=list(map(int, input().split()))
if a[0]+a[1]>=a[2]＊2 :
  if a[3]>=a[4]:
    print (a[2]＊a[4]+a[0]＊(a[3]-a[4]))
  else:
    print (a[2]＊a[3]+a[1]＊(a[4]-a[3]))
else:
  print (a[0]＊a[3]+a[1]＊a[4])

Buggy submission (verdict: Runtime Error):
a=list(map(int, input().split()))
if a[0]+a[1]>=a[2]＊2 :
    if a[3]>=a[4]:
        print (a[2]＊a[4]+a[0]＊(a[3]-a[4]))
    else:
        print (a[2]＊a[3]+a[1]＊(a[4]-a[3]))
else:
    print (a[0]＊a[3]+a[1]＊a[4])