A^B mod C
Time Limit:1s | Memory limit:32M |
Accepted Submit:68 | Total Submit:376 |
Problem DescriptionInput
Output
Sample Input3 2 4 2 10 1000 Sample Output1 24 Original: FZU 2009 Summer Training IV--Number Theory |
解题:
强大的题目。需要考虑数据过大问题,数据处理过程中又可能有溢出。针对模取幂运算,收集转载一些很不错的文章。写在下一篇。(以下代码能过FZU 1650 ,但1650的代码不一定能通过1752这题。)