Time limit error in code

Sir, how can I improve my code ,its giving me TLE.

hello @learninggood

pls save ur code at cb ide and share its link .

check now->

what is the reason of using int32_t main instead of int main.

i have defined macro for int ,becuase of that int will be replaced with long long, thats why i am writing int32_t with main.
if i will write int main() then int will get replaced to long long main() which will give compile error.

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.