PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name = input()
agents = int(input())
people = input()
def new_license(name, agents, people):
people = people.split()
people.append(name)
people.sort()
p = people.index(name)
time = 0
while p >= 0:
time += 20
p -= agents
return time
print(new_license(name, agents, people))
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run