![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
离散数学
文章平均质量分 89
Liusyu6688
这个作者很懒,什么都没留下…
展开
-
全排列
全排列的代码 #include<iostream> #include<string> #include<algorithm> using namespace std; int cmp(int a,int b) { return a>b; } bool isdecrese(const string&a) { for(原创 2018-06-06 22:56:33 · 130 阅读 · 0 评论 -
利用动态规划来求出连续項的最大和
#include <iostream> using namespace std; int max(int a,int b) { return a>b?a:b; } int main(int argc, const char * argv[]) { int num; cin>>num; int arr[num]; for(int ...原创 2018-06-09 15:03:07 · 119 阅读 · 0 评论 -
8.1递推关系的运用
8.1.1 兔子和斐波拉契数列 思路:用fnfnf_n表示n个月后的兔子对数。当n≥≥\ge3的时候,原创 2018-06-08 10:50:54 · 1337 阅读 · 0 评论