2023年5月6日

快速幂

摘要: 第一次写的代码:#include <iostream> using namespace std; int main(){ int a,b,p; cin>>a>>b>>p; int res=1%p; while(b){ if(b&1) res=res*1ll*a%p; a=a*a*1ll%p; //这 阅读全文

posted @ 2023-05-06 00:06 不是小朋友L 阅读(31) 评论(0) 推荐(0)

导航