import math
def zscore(x, mean, std):
    return (x-mean)/std if std>0 else 0.0
assert zscore(15, 10, 5) == 1.0
assert zscore(10, 10, 0) == 0.0
print("SELF-TEST PASS")