Giving TLE for compile and test case

My code which is bi directional dp only gives all correct but, when i click compile and test it gives tle.

it must be because of the fact that input size is too large please include the following code snippet in the beginning of your code

ios_base::sync_with_stdio(false);
cin.tie(NULL);

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.