[algogeeks] Re: SPOJ problem

2011-03-31 Thread КоЦіК
On Apr 1, 6:45 am, saurabh singh saurab...@gmail.com wrote: Sorry for ignorance but i didnt got what *1d* means in the formula It is from Java code means 1 should be seen as double 1.0. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To

[algogeeks] Re: SPOJ problem

2011-03-29 Thread КоЦіК
Formula: Math.E*a-0.5*Math.log(2*Math.PI*a)-1d/a gives right result almost always besides (a:n:formula value): 3 : 7 : 6 195 : 526 : 527 534 : 1447 : 1448 580 : 1572 : 1573 1168 : 3170 : 3171 1870 : 5078 : 5079 2175 : 5907 : 5908 2590 : 7035 : 7036 2927 : 7951 : 7952 3225 : 8761 : 8762 3892 :