solution code: http://www.codechef.com/viewsolution/7482546
problem : SEAGM2, JULy15
in the solve function,
ld ans=win/r;
if(win==0) ans=0; //solution fails for 10 points but passes for 90 points, after removing this line
printf("%0.6Lf\n",ans);
Why is equating ans to 0 required if numerator is 0, shouldn’t ans be 0 too?