a^b
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
求 a 的 b 次方对 p取模的值。
输入格式
三个整数 a,b,p,在同一行用空格隔开。
输出格式
输出一个整数,表示 的值。
数据范围
3 2 7
2
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
求 a 的 b 次方对 p取模的值。
三个整数 a,b,p,在同一行用空格隔开。
输出一个整数,表示 ab mod p的值。
0≤a,b≤109
1≤p≤109
3 2 7
2
By signing up a 战码少年-战码青少年编程(专业信息学奥赛编程训练) universal account, you can submit code and join discussions in all online judging services provided by us.