
快速幂取模
键盘上的舞者
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
HDU4506:小明系列故事——师兄帮帮忙
Problem Description 小明自从告别了ACM/ICPC之后,就开始潜心研究数学问题了,一则可以为接下来的考研做准备,再者可以借此机会帮助一些同学,尤其是漂亮的师妹。这不,班里唯一的女生又拿一道数学题来请教小明,小明当然很高兴的就接受了。不过等他仔细读题以后,发现自己也不会做,这下小明囧了:如果回复说自己不懂,岂不是很没面子? 所以,他现在私下求你帮忙解决这道题目,题目是原创 2013-03-22 17:40:53 · 1996 阅读 · 0 评论 -
POJ3641:Pseudoprime numbers
DescriptionFermat's theorem states that for any prime number p and for any integera > 1,ap = a (mod p). That is, if we raisea to thepth power and divide by p, the remainder isa. Some (but not原创 2013-03-16 13:31:13 · 2088 阅读 · 0 评论 -
HDU2817:A sequence of numbers(快速幂取模)
Problem DescriptionXinlv wrote some sequences on the paper a long time ago, they might be arithmetic or geometric sequences. The numbers are not very clear now, and only the first three numbers of e原创 2013-11-10 15:24:18 · 2368 阅读 · 0 评论