Replace pi problem

why is the code getting TLE?

hello @kumarsaksham601 please wait i will go through your code and let you know the mistake.

hey @kumarsaksham601 i have corrected your logic and now it is giving the correct result .


please see this code and let me know if you dont understand anything in the code.
Happy Learning !!