Problem: The restaurant AtCoder serves the following five dishes:    * ABC Don (rice bowl): takes A minutes to serve.   * ARC Curry: takes B minutes to serve.   * AGC Pasta: takes C minutes to serve.   * APC Ramen: takes D minutes to serve.   * ATC Hanbagu (hamburger patty): takes E minutes to serve.  Here, the time to serve a dish is the time between when an order is placed and when the dish is delivered.  This restaurant has the following rules on orders:    * An order can only be placed at a time that is a multiple of 10 (time 0, 10, 20, ...).   * Only one dish can be ordered at a time.   * No new order can be placed when an order is already placed and the dish is still not delivered, but a new order can be placed at the exact time when the dish is delivered.  E869120 arrives at this restaurant at time 0. He will order all five dishes. Find the earliest possible time for the last dish to be delivered.   Here, he can order the dishes in any order he likes, and he can place an order already at time 0.

Submission attempts (in order):
import numpy as np
A=int(input())
B=int(input())
C=int(input())
D=int(input())
E=int(input())

order_time = [A,B,C,D,E]
elapsed_time=0
extra = []
for i in order_time:
    ex = i%10
    extra.append(ex)
seiri = np.vstack((order_time,extra))
sort = np.sort(seiri)[:,::-1]
sort1 = sort[0]
sort2 =sort[1]
time = []
for i in range(0,len(sort)):
    ort = sort2[i]
    otime=sort1[i]+(10-ort)
    elapsed_time+=otime
elapsed_time+=sort1[-1]
print(elapsed_time)

import numpy as np

A=int(input())
B=int(input())
C=int(input())
D=int(input())
E=int(input())

order_time = [A,B,C,D,E]
elapsed_time = 0
extra = []
for i in order_time:
    ex = i%10
    extra.append(ex)
seiri = np.vstack((order_time,extra))
sort = np.sort(seiri)[:,::-1]
sort1 = sort[0]
sort2 =sort[1]
for i in range(len(sort1)-1):
    ort = sort2[i]
    otime = sort1[i]+(10-ort)
    elapsed_time += otime
elapsed_time+=sort1[-1]
print(elapsed_time)

import numpy as np

A=int(input())
B=int(input())
C=int(input())
D=int(input())
E=int(input())

order_time = [A,B,C,D,E]
elapsed_time=0
extra = []
for i in order_time:
    ex = i%10
    extra.append(ex)
seiri = np.vstack((order_time,extra))
sort = np.sort(seiri)[:,::-1]
sort1 = sort[0]
sort2 =sort[1]
time = []
for i in range(0,len(sort2)-1):
    ort = sort2[i]
    otime = sort1[i]+(10-ort)
    elapsed_time += otime
elapsed_time+=sort1[-1]
print(elapsed_time)

import numpy as np
A=int(input())
B=int(input())
C=int(input())
D=int(input())
E=int(input())

order_time = [A,B,C,D,E]
elapsed_time=0
extra = []
for i in order_time:
    ex = i%10
    extra.append(ex)
seiri = np.vstack((order_time,extra))
sort = np.sort(seiri)[:,::-1]
sort1 = sort[0]
sort2 =sort[1]
time = []
for i in range(0,len(sort)):
    ort = sort2[i]
    otime=sort1[i]+(10-ort)
    elapsed_time+=otime
elapsed_time+=sort1[-1]
print(elapsed_time)

import numpy as np

A=int(input())
B=int(input())
C=int(input())
D=int(input())
E=int(input())

order_time = [A,B,C,D,E]
elapsed_time=0
extra = []
for i in order_time:
    ex = i%10
    extra.append(ex)
seiri = np.vstack((order_time,extra))
sort = np.sort(seiri)[:,::-1]
sort1 = sort[0]
sort2 =sort[1]
time = []
for i in range(0,len(sort2)-1):
    ort = sort2[i]
    otime = sort1[i]+(10-ort)
    elapsed_time += otime
    print(elapsed_time)
elapsed_time+=sort1[-1]
print(elapsed_time)

import numpy as np
A=int(input())
B=int(input())
C=int(input())
D=int(input())
E=int(input())

order_time = [A,B,C,D,E]
elapsed_time=0
extra = []
for i in order_time:
    ex = i%10
    extra.append(ex)
seiri = np.vstack((order_time,extra))
sort = np.sort(seiri)[:,::-1]
sort1 = sort[0]
sort2 =sort[1]
time = []
for i in range(0,len(sort2)-1):
    ort = sort2[i]
    otime=sort1[i]+(10-ort)
    elapsed_time+=otime
elapsed_time+=sort1[-1]
print(elapsed_time)
    

A=int(input())
B=int(input())
C=int(input())
D=int(input())
E=int(input())

Menu = [A,B,C,D,E]
L1=[0]
L2=[]
time_max=0
extra=[]

for i in Menu:
    if i%10==0:
        L1.append(i)
    else:
        L2.append(i + 10 - int(i%10))
        extra.append(i%10)

if len(L2)>0:        
	tmp = 10 - min(extra)
	time_max=sum(L1)+sum(L2)
	print(time_max-tmp)
else: 
  print(sum(L1))

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted