
模运算
文章平均质量分 76
偶尔诈尸的老年人
Boys, be ambitious!
展开
-
[复习]快速幂加强(快速幂+快速乘) 病毒
题目描述 2015年1月1日,国际卫生组织公布了一种新型病毒CAI,其复制能力极强,会使人的记忆能力严重衰退。在每 1 秒内,一个病毒会分身出 N 个病毒(本体不计),它们和本体拥有着同样的能力,如果 N=4,在第一秒初有 1 个病毒本体,第一秒末分裂出 4 个,那么第一秒末有 5 个,它们在第二秒末会再分裂 5*4 =20个,那么加上最开始的,第二秒末就有 25 个。为了抑制这种可怕的病毒,清华原创 2017-10-17 19:56:32 · 263 阅读 · 0 评论 -
[练习][HDU5187]快速幂加强(快速幂+快速乘) zhx's contest
题目背景 HDU5187题目描述 As one of the most powerful brushes, zhx is required to give his juniors nn problems. zhx thinks the ithi^{th} problem’s difficulty is ii. He wants to arrange these problems in a原创 2017-10-17 20:31:15 · 315 阅读 · 0 评论