Why am I getting a TLE ?

Revision en1, by Shreyansh_1347, 2023-05-31 21:18:23

I exactly implemented the tutorial for the problem G. Hits Different. The solution they gave looks like they have the same time complexity as mine. But still, I get a TLE on test case 2. My Submission

Tags dp, math, implementations, *1600

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Shreyansh_1347 2023-05-31 21:18:23 377 Initial revision (published)