文章
76
粉丝
0
获赞
396
访问
16.8k
#include<iostream>
using namespace std;
typedef long long LL;
int qmi(int x, int n, int p) {
int res = 1 % p;
while (n) {
if (n & 1) res = (LL) res * x % p;
x = (LL) x * x % p;
n >>= 1;
}
return res;
}
int main() {
int a, b;
cin >> a >> b;
cout << qmi(a, b, 233333);
return 0;
}
登录后发布评论
暂无评论,来抢沙发