Buggy python submission (verdict: Runtime Error):
n = int(input())
if n == 1:
	print(0)
else:
	vals = list(map(int, input().split()))
    costs = list(map(int, input().split()))
 
	total = 0
	for v, c in zip(vals, costs):
    	resale = v - c
        if resale > 0:
        	total += resale
    print(total)

Fixed submission:
n = int(input())
vals = list(map(int, input().split()))
costs = list(map(int, input().split()))

if n == 1:
    print(0)
else:
    total = 0
    for v, c in zip(vals, costs):
        resale = v - c
        if resale > 0:
            total += resale
    print(total)

Buggy python submission (verdict: Runtime Error):
n = int(input())
if n == 1:
	print(0)
else:
	vals = list(map(int, input().split()))
    costs = list(map(int, input().split()))

	total = 0
	for v, c in zip(vals, costs):
    	resale = v - c
        if resale > 0:
        	total += resale


Fixed submission:
n = int(input())
vals = list(map(int, input().split()))
costs = list(map(int, input().split()))

if n == 1:
    print(0)
else:
    total = 0
    for v, c in zip(vals, costs):
        resale = v - c
        if resale > 0:
            total += resale
    print(total)

Buggy python submission (verdict: Runtime Error):
import numpy as np
 
n = input()
v = np.array([int(x) for x in input().split()])
c = np.array([int(x) for x in input().split()])
 
profit = v - c
positive_profit = profit(profit > 0)
print(np.sum(positive_profit))

Fixed submission:
import numpy as np
 
n = input()
v = np.array([int(x) for x in input().split()])
c = np.array([int(x) for x in input().split()])
 
profit = v - c
positive_profit = profit[profit > 0]
print(np.sum(positive_profit))

Buggy python submission (verdict: Runtime Error):
import numpy as np
 
n = input()
v = [int(x) for x in input().split()]
c = [int(x) for x in input().split()]
 
profit = v - c
positive_profit = profit(profit > 0)
print(np.sum(positive_profit))

Fixed submission:
import numpy as np
 
n = input()
v = np.array([int(x) for x in input().split()])
c = np.array([int(x) for x in input().split()])
 
profit = v - c
positive_profit = profit[profit > 0]
print(np.sum(positive_profit))

Buggy python submission (verdict: Runtime Error):
import numpy as np

n = input()
v = [int(x) for x in input().split()]
c = [int(x) for x in input().split()]

profit = v - c
positive_profit = profit(profit > 0)
print(positive_profit.sum())


Fixed submission:
import numpy as np
 
n = input()
v = np.array([int(x) for x in input().split()])
c = np.array([int(x) for x in input().split()])
 
profit = v - c
positive_profit = profit[profit > 0]
print(np.sum(positive_profit))

Buggy python submission (verdict: Runtime Error):
n = input()
v = np.array([int(x) for x in input().split()])
c = np.array([int(x) for x in input().split()])
profit = v -c
positive_profit = profit(profit > 0)
print(positive_profit.sum())

Fixed submission:
import numpy as np
 
n = input()
v = np.array([int(x) for x in input().split()])
c = np.array([int(x) for x in input().split()])
 
profit = v - c
positive_profit = profit[profit > 0]
print(np.sum(positive_profit))

Buggy python submission (verdict: Runtime Error):
n = input()
v_list = [int(x) for x in input().split()]
c_list = [int(x) for x in input().split()]
total_profit = 0
for v, c in zip(v_list, c_list)
    profit = v -c
    if profit > 0:
        total_profit += profit
print(total_profit)

Fixed submission:
import numpy as np
 
n = input()
v = np.array([int(x) for x in input().split()])
c = np.array([int(x) for x in input().split()])
 
profit = v - c
positive_profit = profit[profit > 0]
print(np.sum(positive_profit))