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

Segment Tree lazy propagation

Правка en4, от Saber.HMN, 2019-07-08 20:29:18

Given an array of size N.There can be multiple queries of the following types. 1 . Update(l, r, x) : Increment the a[i] (l <= i <= r) with value x. 2 . query(l, r): Find index of the maximum value in the array in a range l to r (both are included).

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский Saber.HMN 2019-07-08 20:29:18 291
en3 Английский Saber.HMN 2019-07-08 17:38:17 7
en2 Английский Saber.HMN 2019-07-08 17:36:33 8
en1 Английский Saber.HMN 2019-07-08 17:35:40 296 Initial revision (published)