PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import math
my_name = input()
num_agent = int(input())
people_arnd = input()
people_arnd = people_arnd.split(" ")
def how_lng(my_nm, nums, pple_rnd):
pple_rnd.append(my_nm)
pple_rnd = sorted(pple_rnd)
waves = pple_rnd.index(my_nm) / nums
time_to_wait = waves * 20
time_to_wait = math.ceil(time_to_wait + 20)
return time_to_wait
print(how_lng(my_name, num_agent, people_arnd))
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run