• + 0 comments

    Python Solution

    using Z Score

    from math import *
    def Zscore(x):
        return (1.0 + erf(x / sqrt(2.0))) / 2.0
    
    sumN = int(input())
    n = int(input())
    u = float(input())
    o = float(input())
    
    pr = (sumN - n*u) / (sqrt(n) * o)
    x = Zscore(pr)
    print(round(x, 4))