Блог пользователя UnfilledDreams

Автор UnfilledDreams, история, 6 лет назад, По-английски

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

Полный текст и комментарии »

  • Проголосовать: нравится
  • +13
  • Проголосовать: не нравится

Автор UnfilledDreams, история, 7 лет назад, По-английски

Guys i'm new in competitive programming can anybody suggest me the best learning sites for data structures and algorithms

Полный текст и комментарии »

  • Проголосовать: нравится
  • +2
  • Проголосовать: не нравится