Please read the new rule regarding the restriction on the use of AI tools. ×

Saber.HMN's blog

By Saber.HMN, history, 5 years ago, In English

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).

Full text and comments »

  • Vote: I like it
  • -4
  • Vote: I do not like it