Given a b and p, output (a^b) % p (2<=a<=100, 0<=b<=1000000000, 3<=p<=10000)
快速幂取模,布布扣,bubuko.com
快速幂取模
原文:http://www.cnblogs.com/sysu-zhengwsh/p/3674196.html