![](https://img-blog.csdnimg.cn/20190918140012416.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
快速幂
快速幂
Mongo_girl
哈哈哈哈哈哈哈哈
展开
-
HDU-1061-Rightmost Digit【快速幂】
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1061 Rightmost Digit Problem Description Given a positive integer N, you should output the most right digit of N^N. Input原创 2017-09-23 21:21:52 · 209 阅读 · 0 评论 -
hdu-2157-How many ways??【矩阵快速幂】
题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=2157 How many ways?? Time Limit : 2000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other) Total Submission(s) : 43原创 2017-10-01 20:23:09 · 210 阅读 · 0 评论 -
hdu-2197-本原串
题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=2197 本原串 Problem Description 由0和1组成的串中,不能表示为由几个相同的较小的串连接成的串,称为本原串,有多少个长为n(n 答案mod2008. 例如,100100不是本原串,因为他是由两个100组成,而1101是本原串原创 2017-10-02 21:37:30 · 190 阅读 · 0 评论 -
hdu-2604-Queuing
题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=2604 Queuing Problem Description Queues and Priority Queues are data structures which are known to most computer scientists. The Que原创 2017-10-02 21:55:20 · 316 阅读 · 0 评论 -
zufeoj_【例7.5】 取余运算(mod)
题目链接:http://acm.ocrosoft.com/problem.php?cid=1172&pid=24题目描述输入b,p,k的值,求bp mod k的值。其中b,p,k*k为长整型数。输入输入b,p,k的值。输出求bp mod k的值。样例输入2 10 9样例输出2^10 mod 9=7#include<bits/stdc++.h> using namespace s...原创 2018-06-23 20:16:25 · 687 阅读 · 0 评论