快速幂运算
文章平均质量分 79
ah_yeah
龟速前进中。。。
展开
-
HDU - 5363 Key Set
Key SetTime Limit:1000MS Memory Limit:131072KB 64bit IO Format:%I64d & %I64uDescriptionsoda has a set with integers . A set is called key set if the sum of integers in原创 2016-07-23 15:55:42 · 277 阅读 · 0 评论 -
POJ - 3641 Pseudoprime numbers
Pseudoprime numbersTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluDescriptionFermat's theorem (费马理论)states that for any prime number p and for any intege原创 2016-07-23 17:30:53 · 200 阅读 · 0 评论 -
POJ - 1995 Raising Modulo Numbers
Raising Modulo NumbersTime Limit:1000MS Memory Limit:30000KB 64bit IO Format:%lld & %lluDescriptionPeople are different. Some secretly read magazines full of interesting原创 2016-07-23 20:22:37 · 235 阅读 · 0 评论 -
HDOJ -- 1061 Rightmost Digi
Rightmost DigitTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uDescriptionGiven a positive integer N, you should output the most right digit of N^N.原创 2016-07-23 14:45:06 · 281 阅读 · 0 评论