2017年4月10日

摘要: #include <stdio.h>#include <string.h>#include <algorithm>using namespace std; struct Node{ int l,w;};Node a[10005];int l[10005],len;bool cmp(const Nod 阅读全文
posted @ 2017-04-10 22:59 jiang2017 阅读(90) 评论(0) 推荐(0)
摘要: #include #include #include using namespace std; int a[1005],b[1005]; bool v1[1005],v2[1005]; int n; int main(){ int i,j,k; while(scanf("%d",&n)&&n){ int judge(); for(i=0;i... 阅读全文
posted @ 2017-04-10 21:32 jiang2017 阅读(118) 评论(0) 推荐(0)

2017年3月13日

摘要: 一、递归 构造一个函数fun(int n,int m); n表示输入的N,m表示组成N中的任意一个小项不超过m; 4 = 4; 4 = 3 + 1; 4 = 2 + 2; 4 = 2 + 1 + 1; 4 = 1 + 1 + 1 + 1; 分情况 1 m>n 例:fun(4,6)=fun(4,4); 阅读全文
posted @ 2017-03-13 22:32 jiang2017 阅读(82) 评论(0) 推荐(0)

导航