Exponentiation by modulo#5336

Exponentiation by modulo

1 second
128 megabytes
Hard

Given integers and . Calculate the value a^b \bmod p, where p = 1000000007.

Examples

Example 1

Loading
Loading