Buggy python submission (verdict: Runtime Error):
li,lia = [],[]
total = 0
for i in range(5):
    a = input()
    li.append(a)
for i in range(5):
    lia.append(li[i][-1])
lib = [int(s) for s in lia]
b = lib.count(0)
for i in range(b):
    lib.remove(0)
for i in range(5):
    total += (int(li[i])//10+1)*10
total -= 10*(1+b)
total += min(lib)
print(total)

Fixed submission:
li,lia = [],[]
total = 0
for i in range(5):
    a = input()
    li.append(a)
for i in range(5):
    lia.append(li[i][-1])
lib = [int(s) for s in lia]
b = lib.count(0)
for i in range(b):
    lib.remove(0)
for i in range(5):
    total += (int(li[i])//10+1)*10
if len(lib) >= 1:
    total -= 10*(1+b)
else:
    total -= 10*(b)
if len(lib) >= 1:
    total += min(lib)
if total <= 0:
    print(0)
else:
    print(total)

Buggy python submission (verdict: Runtime Error):
li1 = []
ans = 0
count = 0
for i in range(5):
    a = int(input())
    li1.append(a)
if sum(li1) == 0:
    print(0)
else:
    for i in range(5):
        if li1[i] % 10 == 0:
            ans += li1[i]
            count += 1
            li1[i] = 0
    for i in range(count):
        li1.remove(0)
    li2 = [s % 10 for s in li1]
    ans += min(li2)-10
    for i in range(len(li1)):
        ans += (li1[i] // 10 + 1) * 10
    print(ans)

Fixed submission:
li,lia = [],[]
total = 0
for i in range(5):
    a = input()
    li.append(a)
for i in range(5):
    lia.append(li[i][-1])
lib = [int(s) for s in lia]
b = lib.count(0)
for i in range(b):
    lib.remove(0)
for i in range(5):
    total += (int(li[i])//10+1)*10
if len(lib) >= 1:
    total -= 10*(1+b)
else:
    total -= 10*(b)
if len(lib) >= 1:
    total += min(lib)
if total <= 0:
    print(0)
else:
    print(total)

Buggy python submission (verdict: Runtime Error):
li1 = []
ans = 0
count = 0
for i in range(5):
    a = int(input())
    li1.append(a)
for i in range(5):
    if li1[i] % 10 == 0:
        ans += li1[i]
        count += 1
        li1[i] = 0
for i in range(count):
    li1.remove(0)
li2 = [s % 10 for s in li1]
ans += min(li2)-10
for i in range(len(li1)):
    ans += (li1[i] // 10 + 1) * 10
print(ans)

Fixed submission:
li,lia = [],[]
total = 0
for i in range(5):
    a = input()
    li.append(a)
for i in range(5):
    lia.append(li[i][-1])
lib = [int(s) for s in lia]
b = lib.count(0)
for i in range(b):
    lib.remove(0)
for i in range(5):
    total += (int(li[i])//10+1)*10
if len(lib) >= 1:
    total -= 10*(1+b)
else:
    total -= 10*(b)
if len(lib) >= 1:
    total += min(lib)
if total <= 0:
    print(0)
else:
    print(total)

Buggy python submission (verdict: Runtime Error):
li = [int(input()) for i in range(5)]
a,b,c,d,e = li[0],li[1],li[2],li[3],li[4]
a1,b1,c1,d1,e1 = int(str(a)[-1]),int(str(b)[-1]),int(str(c)[-1]),int(str(d)[-1]),int(str(e)[-1])
for i in range(1,11):
    if a1 == i:
        plus = i+(li[0])//10*10
        li.remove(li[0])
        break
    if b1 == i:
        plus = i+(li[1])//10*10
        li.remove(li[1])
        break
    if c1 == i:
        plus = i+(li[2])//10*10
        li.remove(li[2])
        break
    if d1 == i:
        plus = i+(li[3])//10*10
        li.remove(li[3])
        break
    if e1 == i:
        plus = i+(li[4])//10*10
        li.remove(li[4])
        break
for i in range(4):
    if li[i] % 10 != 0:
        li[i] = (li[i] // 10 + 1)*10
print(sum(li)+plus)

Fixed submission:
li,lia = [],[]
total = 0
for i in range(5):
    a = input()
    li.append(a)
for i in range(5):
    lia.append(li[i][-1])
lib = [int(s) for s in lia]
b = lib.count(0)
for i in range(b):
    lib.remove(0)
for i in range(5):
    total += (int(li[i])//10+1)*10
if len(lib) >= 1:
    total -= 10*(1+b)
else:
    total -= 10*(b)
if len(lib) >= 1:
    total += min(lib)
if total <= 0:
    print(0)
else:
    print(total)