I was solving a problem but I couldn't solve that problem.<br>↵
Given an array ofN**N** elements, we have to answer Q**Q** queries in each query two number i and X**i** and **X** will be given we have to find how many multiples of X**X** will be there in the array after the **ith** (including i) index. The range of N, Q**N**, **Q** is **10^5** and same for the array elements.<br>↵
Please help me out with the logic.<br>↵
Thanks in advance.<br>↵
Given an array of
Please help me out with the logic.<br>↵
Thanks in advance.<br>↵