Please read the new rule regarding the restriction on the use of AI tools. ×

12939 — Keep Fit! Solution Idea ??

Revision en1, by faiyaz26, 2015-09-03 10:16:01

Can anyone help me with this problem ?

12939 — Keep Fit!

I have followed the idea of this problem to solve the problem.

But the complexity becomes Q * NlogN , which gives TLE.

Any optimized idea ?

Tags data structures, uva

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English faiyaz26 2015-09-03 10:16:01 411 Initial revision (published)