Calculate the power num a^(b^c) mod 1e9+7
前些日子发生了些事情。。拖累了我刷题的脚步。。。不能这么容易就因为外物动摇 。。。今天起继续 每天都会发布代码
先贴题 这个需要学习
Calculate the power num a^(b^c) mod 1e9+7
Multiple test cases,each case has three integers a,b and c . a,b,c is less than 1e9;
Output the answer in each line
2 3 2
512
原文:http://www.cnblogs.com/VOID-133/p/3601798.html