Need help to solve a problem.

Revision en1, by Mo_Huzaifa, 2023-01-05 19:50:02

I was trying a sparse table problem in spoj called Miraculous. The link is: https://www.spoj.com/problems/TNVFC1M/

I was thinking to solve the problem using sparse table . But did not find an idea. So, can anyone help me to solve it or share the main idea of the problem?? Thanks in advance.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Mo_Huzaifa 2023-01-05 19:50:02 327 Initial revision (published)