TLE IN SPOJ PATULJCI

Revision en1, by JacobianDet, 2018-05-19 14:07:29

I tried this problem using segment tree but it's getting TLE. Can anybody explain how to remove TLE from this code?

Solution : https://pastebin.com/8iuk4mQp

Problem : http://www.spoj.com/problems/PATULJCI/

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English JacobianDet 2018-05-19 14:07:29 231 Initial revision (published)