给定三个非负整数 $a, b, p$,请你求 $a^b \bmod p$。
由于 $b$ 可能非常大,你需要使用快速幂算法。
一行三个整数 $a, b, p$,空格分隔。
一行一个整数,表示 $a^b \bmod p$ 的值。
2 10 1000
24