#n6b. a^b
a^b
Find the value of the modulus of to the power of of .
input format
Three integers , , , separated by spaces on the same line.
output format
Output an integer representing the value of a ^ b mod p
.
data range
Data Assurance
3 2 7
2
大概意思:
求 的 次方对 取模的值。