src/cplib/math/sqrt_heuristic_for_floor_sum

  Source   Edit

Procs

proc sqrt_heuristic_for_floor_sum(A, B, N, M: int): seq[
    tuple[x: int, y: int, dx: int, dy: int, n: int]] {....raises: [], tags: [].}
Ak + B mod M (0 <= k < N) をO(√N)個の等差数列に分解する   Source   Edit