Regarding TLE in running code

Sir I am not getting why TLE is coming when I am running this code on the test cases. Please help.

Hello @punetha.anmol001 please share your code by saving it on Ide.codingblocks.com

@punetha.anmol001 use long long int.

Still it is showing TLE

https://ide.codingblocks.com/s/434485 This is passing 4out of 5 test cases when I am using int only.

@punetha.anmol001 check this:

Ya got it correctly, can you explain why changing int to int32_t in main function solved it?

@punetha.anmol001 no see you have to take data type as long long int and I have define int as long long int.
But int in int main can’t be of long long type that’s why we have to handle that by writing int32_t

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.