Skip to content

Commit

Permalink
Merge pull request #70 from Natsume-Neko/powmod-wrapper
Browse files Browse the repository at this point in the history
Add `pow_mod` as a wrapper of `pow`
  • Loading branch information
not522 authored Nov 24, 2024
2 parents ec7a069 + 6aca0fc commit 27fdbb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions atcoder/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

import atcoder._math

def pow_mod(x: int, n: int, m: int) -> int:
return pow(x, n, m)


def inv_mod(x: int, m: int) -> int:
assert 1 <= m
Expand Down
5 changes: 1 addition & 4 deletions docs/math.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,4 @@ Math
atcoder.math.inv_mod
atcoder.math.crt
atcoder.math.floor_sum

Note
----
``atcoder.math.pow_mod`` is not implemented. Use ``pow(x, n, m)`` instead of it.
atcoder.math.pow_mod

0 comments on commit 27fdbb7

Please sign in to comment.