2019年5月14日

摘要: 单个的快速乘取模和快速幂取模时间复杂度都为O(logN)ll mul(ll a,ll b) { ll ans=0; while(b) { if(b&1)ans=(ans+a)%mod; a=(a+a)%mod; b>>=1; } return ans; } ll poww(ll a,ll b) { l... 阅读全文
posted @ 2019-05-14 21:55 che027 阅读(129) 评论(0) 推荐(0)

导航