DCEPC12H - Height of Expectation
Welcome To ICPC! ICPC is a programming competition in which N teams participate every year. Out of N teams, K number of teams has been selected from our college. You know what? K is always a prime number. Coincidence! Before going to ICPC, we want to calculate our expected overall score of our college.
Expected Overall score is defined as expected median value of our college team’s ranks.
All the ranks are distinct. Team’s rank value always lies between 1 to N.
First line consists of T, the number of test cases.
Each of the next T lines contains 2 space separated integers N and K.
Output T lines each line containing expected overall score of our college. You should output at least 6 digits after decimal.
3 3 Output:
wikipedia- "expected median value".
what a waste!
don't think too much(it costed me 1 wa )
Easy one :-)
Just google "Expected Median Value" and compare it with the mean.
" Expected Median Value" someone please explain?
read up "average median value" and write the code :P
what do we mean by Expected Median Value??