Home > Back-end > C grade standard deviation to attach your own code
C grade standard deviation to attach your own code
Time:06-09
# include # include Int main () { Int k, n, I; Double sum, u, s, x [1000]; The scanf (" % d ", & amp; K); While (k -) { The scanf (" % d ", & amp; N); sum=0; for(i=0; I{ Lf the scanf (" % ", & amp; X [I]); The sum +=x [I]; } U=sum/n. S=0; for(i=0; I{ S +=(x [I] -u) * (x [I] - u); } Printf (" % 2 lf \ n ", SQRT (s)/(n - 1)); } return 0; }
CodePudding user response:
What problem the answer is not correct I feel no problem
CodePudding user response:
I thought it was a poor performance in the building C