TLE with sparse table in Problem D of Round#736-Div2

Revision en1, by Namritaansh02, 2021-08-03 10:14:03

This is the problem. I am using sparse table and implementing it exactly as given in the editorial but I am getting, TLE on test 3. I have been stuck for 2 days now on this:-(

Can anyone point out the mistake? Thanks.

This is my submission : 124743771

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Namritaansh02 2021-08-03 10:14:03 372 Initial revision (published)