#P1422. 快速幂(一)
快速幂(一)
Description
计算a的b次方%c
Input
每组数据有三个整数a,b,c;
Output
输出结果
Samples
6 2 8
4
Limitation
1s, 1024KiB for each test case.
计算a的b次方%c
每组数据有三个整数a,b,c;
1<a,b,c<2的30次方输出结果
6 2 8
4
1s, 1024KiB for each test case.
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.