c++
斗code年华
我是斗code年华,愿与你共度斗code年华
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
c++ 实现1~n的排列
#include#includeusing namespace std;void print_permutation(int n,int *A,int cur){if(cur==n){ for(int i=0;i printf("%d",A[i]); printf("\n"); } else for(int i=1;i原创 2016-11-03 20:48:19 · 1275 阅读 · 0 评论 -
数论算法总结01
欧拉函数及欧拉公式欧拉函数:ph(n)的意思是所有小于n且与n互质的数的个数。比如说ph(12)=4。[1,5,7,11与12互质]欧拉公式a^ph(m)=1(mod m)Fibonacci相关问题1. 整除问题第一种hdu 1021为例,hdu 1021 FibonacciAgainProblem DescriptionThere are another原创 2016-11-03 20:52:34 · 334 阅读 · 0 评论
分享