4th Jun 2020, 1:40 PM
Baratov Hojiakbar
Baratov Hojiakbar - avatar
5 Antworten
+ 2
The code after changing y=input() n=int(y) o=[] o.append(y) o.sort() a=o.index(y) if n>=a or a==0: print(20) elif n<a and a>=1: print(a*20-n*20)
4th Jun 2020, 1:44 PM
Muhammad Galhoum
Muhammad Galhoum - avatar
0
s=input() n=int(input()) l=input().split(' ') l.append(s) S=sorted(l) i=S.index(s) if i>=n: print((i+1)//n*20+(i+1)%n*20) else: print(20)
4th Jun 2020, 1:52 PM
v@msi😉
v@msi😉 - avatar
0
I thank everyone for help
4th Jun 2020, 2:00 PM
Baratov Hojiakbar
Baratov Hojiakbar - avatar