快速幂 2021-05-14 5 笔记 ```cpp #include using namespace std; int b,p; long long ksm(int a,int b) { long long s=1; while(b>0) { if(b%2==1) { s*=a; } b=b/2; a*=a; } return s; } int main() { cin>>b>>p; cout< 本文链接: https://shrinken.pw/crash-2021-05-14_39-fml.html