Can you help me out , what I was missing in it https://www.codechef.com/viewsolution/17413818
Ohk,the thing is that u cannot convert it to decimal and then reconvert to fraction,the reason is quite simple the denominator will be around 10^(10000000),and u cant get that much precision.
2 Likes
thank u