+ 1
Where did I go wrong. Challenge
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)
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)
0
I thank everyone for help