YoyOyoYOy000y000's blog

By YoyOyoYOy000y000, history, 6 years ago, In English

1st we have a array of n element.

There are two types of query.

  1. 1<=r<=l<=n and D. 1<=D<=10^9 we have to add D between r to l.

  2. 1<=r<=l<=n and X. 1<=D<=10^9 .how many numbers are divisible D in r to l?

How to build segment tree for this ques.

  • Vote: I like it
  • +17
  • Vote: I do not like it

»
6 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by YoyOyoYOy000y000 (previous revision, new revision, compare).