Buggy python submission (verdict: Runtime Error):
dish = [int(input()) for d in range(5)]
tmp = 0
time = []
for index,d in enumerate(dish):
  if d % 10 != 0:
    d10 = ((d // 10) +1) * 10
    time.append(d10)
    if tmp <= (d10-d):
      tmp = d10 - d
      last = index  
  else:
    time.append(d)
del time[last]
print(sum(time)+dish[last])

Fixed submission:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
dish = [a,b,c,d,e]
last = 0
for index,d in enumerate(dish):
  if d % 10 != 0:
    d10 = ((d // 10)+1) *10
    if last <= d10 - d:
      last = d10 - d
    dish[index] = d10
print(sum(dish)-last)

Buggy python submission (verdict: Runtime Error):
dish = [int(input()) for d in range(5)]
diff = 0
ans = []
for index,d in enumerate(dish):
  if d % 10 == 0:
    ans.append(d)
  else:
    d10 = ((d //10) +1) * 10
    ans.append(d10)
    tmp = d10-d
    if diff < tmp:
      diff = tmp
      last= index
    
del ans[last]
print(sum(ans)+dish[last])



Fixed submission:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
dish = [a,b,c,d,e]
last = 0
for index,d in enumerate(dish):
  if d % 10 != 0:
    d10 = ((d // 10)+1) *10
    if last <= d10 - d:
      last = d10 - d
    dish[index] = d10
print(sum(dish)-last)

Buggy python submission (verdict: Runtime Error):
dish = [int(input()) for d in range(5)]
diff = 0
ans = []
for index,d in enumerate(dish):
  if d % 10 != 0:
    d10 = ((d //10) +1) * 10
    ans.append(d10)
    if diff < d10-d:
      diff = d10-d
      last= index
  else:
    ans.append(d)
del ans[last]
print(sum(ans)+dish[last])

Fixed submission:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
dish = [a,b,c,d,e]
last = 0
for index,d in enumerate(dish):
  if d % 10 != 0:
    d10 = ((d // 10)+1) *10
    if last <= d10 - d:
      last = d10 - d
    dish[index] = d10
print(sum(dish)-last)

Buggy python submission (verdict: Runtime Error):
dish = [int(input()) for d in range(5)]
diff = 0
ans = []
for index,d in enumerate(dish):
  if d % 10 != 0:
    d10 = ((d //10) +1) * 10
    ans.append(d10)
    if diff < d10-d:
      diff = d10-d
      last= index
  else:
    ans.append(d)


ans.remove(ans[last])

print(sum(ans)+dish[last])

Fixed submission:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
dish = [a,b,c,d,e]
last = 0
for index,d in enumerate(dish):
  if d % 10 != 0:
    d10 = ((d // 10)+1) *10
    if last <= d10 - d:
      last = d10 - d
    dish[index] = d10
print(sum(dish)-last)

Buggy python submission (verdict: Runtime Error):
dish = [int(input()) for d in range(5)]
diff = 0
ans = []
for index,d in enumerate(dish):
  if d % 10 != 0:
    d10 = ((d //10) +1) * 10
    ans.append(d10)
    if diff < d10-d:
      diff = d10-d
      last= index
  else:
    ans.append(d)


ans.remove(ans[last])

print(sum(ans)+dish[last])

Fixed submission:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
dish = [a,b,c,d,e]
last = 0
for index,d in enumerate(dish):
  if d % 10 != 0:
    d10 = ((d // 10)+1) *10
    if last <= d10 - d:
      last = d10 - d
    dish[index] = d10
print(sum(dish)-last)

Buggy python submission (verdict: Runtime Error):
dish = [int(input()) for d in range(5)]
diff = 0
ans = []
for index,d in enumerate(dish):
  if d % 10 != 0:
    tmp = (d //10) +1
    d10 = tmp * 10
    ans.append(d10)
  else:
    ans.append(d)
  if d % 10 != 0 and diff < d10-d:
    diff = d10-d
    last= index

ans.remove(ans[last])

print(sum(ans)+dish[last])



Fixed submission:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
dish = [a,b,c,d,e]
last = 0
for index,d in enumerate(dish):
  if d % 10 != 0:
    d10 = ((d // 10)+1) *10
    if last <= d10 - d:
      last = d10 - d
    dish[index] = d10
print(sum(dish)-last)