#B. a^b

    Type: Default 1000ms 256MiB

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.

Find the value of the modulus of pp to the power of bb of aa .

input format

Three integers aa , bb , pp , separated by spaces on the same line.

output format

Output an integer representing the value of a ^ b mod p.

data range

0a,b,p1090≤a,b,p≤10^9 Data Assurance p0p≠0

3 2 7
2

大概意思:

aabb 次方对 pp 取模的值。

nb2.土拨鼠考试

Not Attended
Status
Done
Rule
Ledo
Problem
3
Start at
2024-1-5 1:30
End at
1970-1-1 8:00
Duration
-473441.5 hour(s)
Host
Partic.
0