0
New Driver's License
I passed the 3 tests but I am failing the first and second one why? (In python)
4 odpowiedzi
+ 1
Here's the code
https://code.sololearn.com/cL7gABQ6lH79/?ref=app
+ 1
Line 12 needs attention. Think of the agents taking groups of n people at a time. The calculation should include division.
+ 1
Nice
+ 1
myname = input()
num_agents = int(input())
other_names = list(input().split())
other_names.append(myname)
other_names.sort()
ind_myname = other_names.index(myname)+1
print('20' if ind_myname <=num_agents else (ind_myname-num_agents)*20+20)