位運算、快速冪

 位運算:   快速冪:  例1. a^b%p 題目鏈接:https://www.acwing.com/problem/content/91/       #include<iostream> using namespace std; int main(){ int a, b, p; cin>> a >> b >> p; int res = 1 % p; //若b=0時
相關文章
相關標籤/搜索