FZU Problem 1759 Super A^B mod C(幂次循环节+快速乘法)
Problem DescriptionGiven A,B,C, You should quickly calculate the result of A^B mod C. (1<=A,C<=1000000000,1<=B<=10^1000000). InputThere are multiply testcases. Each testcase, there is one line contains
原创
2016-10-03 01:50:00 ·
635 阅读 ·
0 评论