Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- answer = 0
- points = []
- number = int(input())
- for i in range(number):
- yes = int(input())
- if points == []:
- points.append(yes)
- answer += 1
- else:
- for h in range(len(points)):
- if yes >= points[h]:
- points.insert(h, yes)
- answer += h+1
- break
- elif h == len(points)-1:
- points.append(yes)
- answer += h+2
- break
- final = answer/len(points)
- print(format(final,'.2f'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement