Help me to make my segment tree faster

Правка en1, от 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.

Теги #segment tree, #timelimit

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский zarif_2002 2020-05-24 11:43:55 410 Initial revision (published)