Hi,

Can anyone help me with this problem?

You are given an array with *n* integers *a*_{1}, *a*_{2}, ..., *a*_{n} , a integer *K* and *m* queries.

There are two types of query:

give you two integers

*l*and*r*and ask you to print how many number of integers*a*_{l},*a*_{l + 1}, ...,*a*_{r}which equal to*K*.give you three integers

*l*,*r*and*v*and ask you to add the value of*a*_{l},*a*_{l + 1}, ...,*a*_{r}by*v*.

You should print the answer of the first queries.

Thanks, Sorry for my bad English!