+ 2

27th Jan 2020, 12:37 PM
G4M3S4L1F3
7 Respostas
+ 7
What do you mean what problem your stuck on? what is your question?
27th Jan 2020, 12:39 PM
Easham Halder
+ 3
For Python Language name = input() agents = int(input()) clients = input() clients = clients.split() clients.append(name) clients.sort(reverse=True) time = 0 reminder = True while reminder: for i in range(agents): if clients[-1] == name: reminder = False break clients.pop() time += 1 print(time * 20)
1st Feb 2022, 7:18 PM
Avrian Shandy
4th Dec 2020, 5:21 AM
Tanmay Prakash Powar
+ 1
4th Dec 2020, 5:21 AM
Tanmay Prakash Powar
+ 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)
25th Nov 2021, 10:32 PM
Mas'ud Saleh
0
name = input() agents = int(input()) clients = input() clients = clients.split() clients.append(name) clients.sort(reverse=True) time = 0 reminder = True while reminder: for i in range(agents): if clients[-1] == name: reminder = False break clients.pop() time += 1 print(time * 20)
17th May 2020, 11:10 AM
Oliver Reyes
0
#Swift #swift import Foundation var myname = readLine() ?? "" var agents = Int(readLine() ?? " ") ?? 0 var ppl = readLine() ?? "" var main = (ppl+" "+myname).split(separator: " ").sorted() var time = 0 for i in main{ if i != myname{ time+=1 }else{time+=1; break} } print(Int((Float(time)/Float(agents)).rounded(.up))*20)
11th Oct 2022, 3:05 PM
Artem Leschenko