上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 58 下一页
摘要: Problem Description 度熊面前有一个全是由1构成的字符串,被称为全1序列。你可以合并任意相邻的两个1,从而形成一个新的序列。对于给定的一个全1序列,请计算根据以上方法,可以构成多少种不同的序列。 Problem Description 度熊面前有一个全是由1构成的字符串,被称为全1 阅读全文
posted @ 2016-05-15 09:14 樱花落舞 阅读(382) 评论(0) 推荐(0)
摘要: 链接:http://bestcoder.hdu.edu.cn/contests/contest_showproblem.php?cid=690&pid=1001 我用线段树过的~可能要注意a,b的关系 1 #include<stdio.h> 2 //#include<bits/stdc++.h> 3 阅读全文
posted @ 2016-05-15 09:10 樱花落舞 阅读(278) 评论(0) 推荐(0)
摘要: Description On the planet Mars a year lasts exactly n days (there are no leap years on Mars). But Martians have the same weeks as earthlings — 5 work 阅读全文
posted @ 2016-05-11 09:50 樱花落舞 阅读(206) 评论(0) 推荐(0)
摘要: Description We all know that Bin-Laden is a notorious terrorist, and he has disappeared for a long time. But recently, it is reported that he hides in 阅读全文
posted @ 2016-05-02 22:06 樱花落舞 阅读(190) 评论(0) 推荐(0)
摘要: 普通生成函数 cin>>n for(int i=0;i<=n;i++) { a[i]=1; b[i]=0; } for(int i=2;i<=n;i++) { for(int j=0;j<=n;j++) { for(int k=0;k+j<=n;k+=i) { b[k+j]+=a[j]; } } f 阅读全文
posted @ 2016-05-02 21:51 樱花落舞 阅读(253) 评论(0) 推荐(0)
摘要: Description People in Silverland use square coins. Not only they have square shapes but also their values are square numbers. Coins with values of all 阅读全文
posted @ 2016-05-02 21:46 樱花落舞 阅读(213) 评论(0) 推荐(0)
摘要: 这次的题目是HDU1089-1096(如果你做对了请翻到最后面) 1089随便写就可以了 1090也一样 1091注意结束条件 1092还是注意结束条件 1093什么也没改,就是加了一个t组数据 1094 1095换两行,这个倒是对了 1096注意,最后一组数据是换一行的,我们可以用一个计数t表示现 阅读全文
posted @ 2016-05-02 17:16 樱花落舞 阅读(236) 评论(0) 推荐(0)
摘要: 《数据结构》严蔚敏 头文件SQlist.h 函数实现 阅读全文
posted @ 2016-04-27 20:42 樱花落舞 阅读(329) 评论(0) 推荐(0)
摘要: 《数据结构》严蔚敏 头文件Stacksq.h 函数实现 阅读全文
posted @ 2016-04-27 09:44 樱花落舞 阅读(416) 评论(0) 推荐(0)
摘要: 第一题~这个就不用说了吧~拿计算器自己算一算,你就知道啦~ 第二题~要知道连续的数字公约数只有两个~要么就是它本身(a==b),要么就是1 第三题~n*n-n+2 要推导过程可以看一下《组合数学》 第四题,如果嫌那种跨月的计算麻烦的话,我们统一换成从1年1月1号计算,然后计算天数之差,大于等于7的统 阅读全文
posted @ 2016-04-25 19:37 樱花落舞 阅读(363) 评论(0) 推荐(0)
上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 58 下一页