I am getting wrong answer in Third Task every time , No idea Why ?

Can Anybody please tell , What is wrong with this : http://www.codechef.com/viewsolution/5390669

I have tried using long double here but still no help : http://www.codechef.com/viewsolution/5439428

Try this case :
1
1000000000 1000000000000
Answer :

818989403.5467659235

1 Like