Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Python by ddd ( 6 years ago )
import math
n=int(input())
nr=list(map(float,input().split()))
#print(nr)
r=sum(nr)/len(nr)
#print(r)
d=0
for i in range(n):
d+=(nr[i]-r)**2
d=math.sqrt(d/n)
#print(d)
c=0
for i in range(n):
if nr[i]>=(r-d) and nr[i]<=(r+d):
c+=1
#print(c)
rap=(c/n)*100
print(rap)
Revise this Paste