等比數列求和 (快速冪 + 逆元)

     求一個等比數例之和, 並讓他對一個數取模。ide      用到等比數列求和公式, 快速冪, 逆元。ui      不會證實, 下面給出代碼。rest #include <stdio.h> #include <string.h> #include <math.h> typedef long long ll; ll multi(ll a,ll b,ll m) // 二分乘法 {
相關文章
相關標籤/搜索