05 2016 档案

摘要:Problem Description There is a collector who own many valuable jewels. He has a problem about how to store them. There are M special boxes. Each box h 阅读全文
posted @ 2016-05-30 21:35 樱花落舞 阅读(279) 评论(0) 推荐(0) 编辑
摘要:Description Diao Ze likes math very much, especially problems about equation. Now there is a problem for Diao Ze, but he is too lazy to solve it and h 阅读全文
posted @ 2016-05-15 17:36 樱花落舞 阅读(399) 评论(0) 推荐(0) 编辑
摘要:Problem Description 度熊所居住的 D 国,是一个完全尊重人权的国度。以至于这个国家的所有人命名自己的名字都非常奇怪。一个人的名字由若干个字符组成,同样的,这些字符的全排列的结果中的每一个字符串,也都是这个人的名字。例如,如果一个人名字是 ACM,那么 AMC, CAM, MAC, 阅读全文
posted @ 2016-05-15 17:08 樱花落舞 阅读(310) 评论(0) 推荐(0) 编辑
摘要:Problem Description 度熊手上有一本神奇的字典,你可以在它里面做如下三个操作: 1、insert : 往神奇字典中插入一个单词 2、delete: 在神奇字典中删除所有前缀等于给定字符串的单词 3、search: 查询是否在神奇字典中有一个字符串的前缀等于给定的字符串 Proble 阅读全文
posted @ 2016-05-15 17:00 樱花落舞 阅读(372) 评论(0) 推荐(0) 编辑
摘要:Problem Description 度熊面前有一个全是由1构成的字符串,被称为全1序列。你可以合并任意相邻的两个1,从而形成一个新的序列。对于给定的一个全1序列,请计算根据以上方法,可以构成多少种不同的序列。 Problem Description 度熊面前有一个全是由1构成的字符串,被称为全1 阅读全文
posted @ 2016-05-15 09:14 樱花落舞 阅读(361) 评论(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 樱花落舞 阅读(272) 评论(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 樱花落舞 阅读(198) 评论(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 樱花落舞 阅读(181) 评论(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 樱花落舞 阅读(242) 评论(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 樱花落舞 阅读(205) 评论(0) 推荐(0) 编辑
摘要:这次的题目是HDU1089-1096(如果你做对了请翻到最后面) 1089随便写就可以了 1090也一样 1091注意结束条件 1092还是注意结束条件 1093什么也没改,就是加了一个t组数据 1094 1095换两行,这个倒是对了 1096注意,最后一组数据是换一行的,我们可以用一个计数t表示现 阅读全文
posted @ 2016-05-02 17:16 樱花落舞 阅读(231) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示