We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ec7a069 + 6aca0fc commit 27fdbb7Copy full SHA for 27fdbb7
atcoder/math.py
@@ -2,6 +2,9 @@
2
3
import atcoder._math
4
5
+def pow_mod(x: int, n: int, m: int) -> int:
6
+ return pow(x, n, m)
7
+
8
9
def inv_mod(x: int, m: int) -> int:
10
assert 1 <= m
docs/math.rst
@@ -8,7 +8,4 @@ Math
atcoder.math.inv_mod
atcoder.math.crt
atcoder.math.floor_sum
11
-
12
-Note
13
-----
14
-``atcoder.math.pow_mod`` is not implemented. Use ``pow(x, n, m)`` instead of it.
+ atcoder.math.pow_mod
0 commit comments