Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

Fast way to do this

Revision en1, by Dumbledore, 2016-01-19 20:49:56

I have a problem were I need to answer two kinds of queries. The first query is to change the value of number at index i of the array to x. The second one is to find the number of elements lesser than x in (index) range [0, r]. Could you help me on this?
Thank you in advance.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Dumbledore 2016-01-19 20:49:56 298 Initial revision (published)