Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/E869120/math-algorithm-book
/ Code_5_07_2.py
File
Code_5_07_2.py
codes/python/Code_5_07_2.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
# 繰り返し二乗法(p は a**1, a**2, a**4, a**8, ... といった値をとる)
2
def
modpow(a, b, m):
3
p = a
4
answer = 1
Callers
nothing calls this directly
Calls
1
ncr
Function · 0.70
Tested by
no test coverage detected