+ 2
Driver's License [SOLVED]
3 odpowiedzi
+ 1
Works
+ 1
inpt = input()
if inpt[0] == "Z":
print (100)
elif inpt[0] == "C" and inpt[1] == "h" and inpt[2] == "a":
print (40)
else:
print (20)
#tricked sololearn
0
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)