Hi Anshuman Singh I am getting partailly correct ans alongwith below error :-
Wrong Answer. Your program’s output doesn’t match the expected output. You can try testing your code with custom input and try putting debug statements in your code.
Your code may have an overflow issues. Make sure you are typecasting variables before arithmetic operations correctly.
Can you pls explain it further ie was there really a wrong ans or it is just TLE? Thanks.