Problems > Multiples in a Range > Editorial

Multiples in a Range — Solution & Editorial

Back to the Problem

Prefix-count trick on divisibility.

Complexity: O(1)