+ 1
Please why am i not getting 2/5 cases from New drivers license. Here's my code..
my_name= input() available_agents = int(input ()) other_names= input () _split=other_names.split(',') all_names = _split.append(my_name) _sorted = sorted(_split) time =( 20 *((_sorted.index(my_name))+1)) // available_agents print(time)
3 odpowiedzi
+ 2
Use search bar before posting
https://www.sololearn.com/discuss/2435632/?ref=app
+ 1
https://www.sololearn.com/discuss/2435632/?ref=app
https://www.sololearn.com/discuss/2227752/?ref=app
https://www.sololearn.com/discuss/2153578/?ref=app
https://www.sololearn.com/discuss/2114027/?ref=app
https://www.sololearn.com/discuss/2132511/?ref=app
+ 1
time = etc....
This section is causing the problem as it is not outputting in increments of 20 minutes.
Remember it takes 1 agent 20 minutes to process 1 licence /person.
If you had 3 agents and 1 customer, it will still take 20 minutes.
Your code would return 7 minutes .