I learned segment tree yesterday and tried to solve these following problems
399D - Красим стену
61E - Противник слаб
459D - Задача Пашмака и Пармиды
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.