[READ-ONLY] Mirror of https://github.com/shuuji3/competitive-programming. 馃洬 Codes submitted to competitive programming platforms
aizu-online-jadge aoj atcoder hackerrank leetcode
0

Configure Feed

Select the types of activity you want to include in your feed.

1import math 2 3while True: 4 n = int(input()) 5 if n == 0: 6 break 7 points = list(map(int, input().split())) 8 9 m = sum(points) / n 10 variance = sum(map(lambda x: (x - m) ** 2, points)) / n 11 standard_deviation = math.sqrt(variance) 12 print(standard_deviation)