Skip to content

Commit

Permalink
Add pow_mod as a wrapper of pow
Browse files Browse the repository at this point in the history
  • Loading branch information
Natsume-Neko committed Nov 22, 2024
1 parent 4083ef7 commit 6339a47
Showing 1 changed file with 3 additions and 0 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

0 comments on commit 6339a47

Please sign in to comment.