51Nod 1013 3的冪的和 快速冪 | 乘法逆元 | 遞歸求和公式

    1.乘法逆元 直接使用等比數列求和公式,注意使用乘法逆元 ---嚴謹,失細節毀所有 #include "bits/stdc++.h" using namespace std; #define rep(i, s, n) for(int i=s;i<n;i++) #define MOD 1000000007 #define LL long long const int N=10010; LL
相關文章
相關標籤/搜索