ACM数论
pqdong
智圆行方,厚德载物。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ACM数论求最小公倍数(最大公约数)模板
ACM数论求最小公倍数(最大公约数)模板 最大公约数:采用辗转相除法求最大公约数 最小公倍数:先将两数相乘然后除他们的最大公约数即为最小公倍数 #include<iostream> typedef long long ll; using namespace std; ll f(ll a,ll b){ ll num=a*b; ll c=a%b; ...原创 2018-03-22 16:08:03 · 755 阅读 · 0 评论 -
矩阵快速幂--Fibonacci POJ3070
矩阵快速幂–Fibonacci POJ3070 题目连接 Fibonacci Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 17587 Accepted: 12257 Description In the Fibonacci integer sequence, F0 = 0, F1 = 1,...原创 2018-03-22 16:47:30 · 212 阅读 · 0 评论 -
2404 Super Prime(欧拉筛素数)
2404 Super Prime(欧拉筛素数) Problem Description We all know, prime is a kind of special number which has no other factors except of 1 and itself. 2,3,5,7,11,13,17,19,23,29 are the top 20 primes. Now...原创 2018-04-14 15:22:43 · 324 阅读 · 0 评论 -
HDU 5015 233 Matrix(矩阵快速幂模板)
Problem Description In our daily life we often use 233 to express our feelings. Actually, we may say 2333, 23333, or 233333 … in the same meaning. And here is the question: Suppose we have a matrix c...原创 2018-04-17 14:11:42 · 306 阅读 · 0 评论 -
2164 Bincomial Coeffcients(组合数求模)
2164 Bincomial Coeffcients(组合数求模) Problem Description Input Output Sample Input 3 1 1 10 2 954 723 Sample Output 1 45 3557658 解题思路: 1.em……..差点把队友坑死,第一...原创 2018-04-14 10:44:03 · 252 阅读 · 0 评论
分享