Mean, Var, and Std

  • + 0 comments

    import numpy

    N, M = map(int, input().split()) arr = numpy.array([input().split() for _ in range(N)], int)

    print(numpy.mean(arr, axis=1)) print(numpy.var(arr, axis=0)) print(round(numpy.std(arr), 11)) why we must round the std value? because the question not force us to round 11 digits.