(a+b+c)%m=(a%m+b%m+c%m)%m. As a result you can calculate each recursive function in O(log p):. int expmod(int n, int p, ...
確定! 回上一頁