Hello Codeforces!!! Yesterday on solving the problem C Train & Queries In my Contest Submission It is Giving me TLE on test case 5 after upsolving the particular problem and doing a small change It got Accepted Plzzz see both of the code in my solve function and give reason why this is happening
Getting TLE on above
and https://codeforces.com/contest/1702/submission/163680546 Getting Accepted Thanks in advance !!!!!!