Help me to make my segment tree faster

Revision en1, by zarif_2002, 2020-05-24 11:43:55

I learned segment tree yesterday and tried to solve these following problems
399D - Painting The Wall
61E - Enemy is weak
459D - Pashmak and Parmida's problem
My solutions just barely pass the time limit.
81038127
81106193
81148972(needed faster I/O)
How can I strengthen this segment tree so that my solution fits into time limit completely.

Tags #segment tree, #timelimit

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English zarif_2002 2020-05-24 11:43:55 410 Initial revision (published)