On Codeforces Round #805 Div3 Problem C Train and Queries

Revision en1, by ayush_n, 2022-07-11 17:01:12

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.com/contest/1702/submission/163540539

Getting TLE on above

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

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ayush_n 2022-07-11 17:01:12 558 Initial revision (published)