![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
快速幂
文章平均质量分 53
Puya
人生不设限 没有不可能
展开
-
HDU 1061 Rightmost Digit
Rightmost Digit Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 45680 Accepted Submission(s): 17200 Problem Description Given a原创 2016-05-05 17:25:26 · 327 阅读 · 0 评论 -
【模板】快速幂
1. a^b%c的快速幂 int quickpow(int a, int b, int c) { int res, t; res = 1 % c; t = a % c; while (b) { if (b & 1) { res = res * t % c; }原创 2016-05-05 17:52:02 · 412 阅读 · 1 评论 -
HDU 3497 Mistwald【矩阵乘法】
Mistwald Time Limit: 2 Seconds Memory Limit: 65536 KB In chapter 4 of the game Trails in the Sky SC, Estelle Bright and her friends are crossing Mistwald to meet their final enemy, Lucciola原创 2017-02-10 23:53:14 · 408 阅读 · 0 评论 -
ZUFE 2469 无人能解得数学题【矩阵快速幂】
原创 2017-05-22 17:33:54 · 382 阅读 · 0 评论