ayush_n's blog

By ayush_n, history, 2 years ago, In English

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

https://codeforces.net/contest/1702/submission/163540539

Getting TLE on above

and https://codeforces.net/contest/1702/submission/163680546 Getting Accepted Thanks in advance !!!!!!

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?