上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 57 下一页
摘要: 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 樱花落舞 阅读(194) 评论(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 樱花落舞 阅读(177) 评论(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 樱花落舞 阅读(239) 评论(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 樱花落舞 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 这次的题目是HDU1089-1096(如果你做对了请翻到最后面) 1089随便写就可以了 1090也一样 1091注意结束条件 1092还是注意结束条件 1093什么也没改,就是加了一个t组数据 1094 1095换两行,这个倒是对了 1096注意,最后一组数据是换一行的,我们可以用一个计数t表示现 阅读全文
posted @ 2016-05-02 17:16 樱花落舞 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 《数据结构》严蔚敏 头文件SQlist.h 函数实现 阅读全文
posted @ 2016-04-27 20:42 樱花落舞 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 《数据结构》严蔚敏 头文件Stacksq.h 函数实现 阅读全文
posted @ 2016-04-27 09:44 樱花落舞 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 第一题~这个就不用说了吧~拿计算器自己算一算,你就知道啦~ 第二题~要知道连续的数字公约数只有两个~要么就是它本身(a==b),要么就是1 第三题~n*n-n+2 要推导过程可以看一下《组合数学》 第四题,如果嫌那种跨月的计算麻烦的话,我们统一换成从1年1月1号计算,然后计算天数之差,大于等于7的统 阅读全文
posted @ 2016-04-25 19:37 樱花落舞 阅读(353) 评论(0) 推荐(0) 编辑
摘要: Description Greatest common divisor GCD(a, b) of two positive integers a and b is equal to the biggest integer d such that both integers a and b are d 阅读全文
posted @ 2016-04-17 22:21 樱花落舞 阅读(203) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; #define DIGIT 4 //四位隔开,即万进制 #define DEPTH 10000 //万进制 #define MAX 100 //题目最大位数/4,要不大直接设为最大位数也行 typedef int bignum_t[MAX+1]... 阅读全文
posted @ 2016-04-17 11:11 樱花落舞 阅读(256) 评论(0) 推荐(0) 编辑
上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 57 下一页