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

CodePudding user response:

refer to the second floor liups response:
I thought it was a poor performance in the building C

Ha ha I result is very poor

CodePudding user response:

reference Programmer_Shaw reply: 3/f
Quote: refer to the second floor liups response:
I thought it was a poor performance in the building C

Ha ha my grade is very poor

But not to the exam

CodePudding user response:

For help for bosses to help a look

CodePudding user response:

The final should be divided by n, why is n - 1

CodePudding user response:

refer to 6th floor not smell out the window of the reply:
last should be divided by n, why is n - 1

Formula is n - 1 n the answer or not

CodePudding user response:

refer to 7th floor Programmer_Shaw response:
Quote: refer to the sixth floor not smell out the window of the reply:
last should be divided by n, why is n - 1

Formula is n - 1 n the answer or not

That you calculate a calculate how much, in fact every step of the what, print each step, and see if there is any difference with you

CodePudding user response:


I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related