Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Binary Indexed Tree Problem from SPOJ (TEMPLEQ — Temple Queues)

Правка en1, от Tobby_And_Friends, 2016-10-21 22:50:15

I do understand the query, i.e, query of type 1 A means adding 1 to the value at A, query of type 2 X means how many queue has pilgrims of length >= X and query of type 3 Y means to subtract 1 from each of the queues having >= Y pilgrims. I'm just not sure how to process my original arrays so that I can easily update using BIT. Any hint will be really appreciated.

Теги binary indexed tree, spoj

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Tobby_And_Friends 2016-10-21 22:51:19 57 Tiny change: 'reciated. ' -> 'reciated. \n\nProblem Link: http://www.spoj.com/problems/TEMPLEQ/ '
en1 Английский Tobby_And_Friends 2016-10-21 22:50:15 431 Initial revision (published)