Computer Science, asked by jananihir, 9 months ago

Input format
The first line of input contains N, the number of types of coins Mouni has
Then the next N lines contain an integer each: the ith line contains Aſil, the value of
Mouni's ith type of coin.
Then the next line contains a number D, the number of days Mouni goes shopping.
Then each of the next D lines contains numbers L and R, denoting that they are selling
items in price range L, R) on that particular day.
Output format
There will be D lines, each containing the number of distinct items that can be bought at
that particular day.
Code constraints
1 <N< 17
1 <A[i] < 51
1<D < 101
1<LR< 1018
O Type here to search​

Answers

Answered by Akshatjaiswal256
3

Answer:

plzz mark me as brainliest and once you done that I will give you answer in chat section

Similar questions