<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[lemon1090的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/lemon1090</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; lemon1090]]></copyright><item><title><![CDATA[poj 3461 Oulipo]]></title><link>https://blog.csdn.net/lemon1090/article/details/89526642</link><guid>https://blog.csdn.net/lemon1090/article/details/89526642</guid><author>lemon1090</author><pubDate>Thu, 25 Apr 2019 21:27:34 +0800</pubDate><description><![CDATA[Description
The French author Georges Perec (1936–1982) once wrote a book, La disparition, without the letter ‘e’. He was a member of the Oulipo group. A quote from the book:
Tout avait Pair normal, m...]]></description><category></category></item><item><title><![CDATA[hdu 3068 最长回文]]></title><link>https://blog.csdn.net/lemon1090/article/details/89517647</link><guid>https://blog.csdn.net/lemon1090/article/details/89517647</guid><author>lemon1090</author><pubDate>Thu, 25 Apr 2019 15:49:23 +0800</pubDate><description><![CDATA[Problem Description
给出一个只由小写英文字符a,b,c…y,z组成的字符串S,求S中最长回文串的长度.
回文就是正反读都是一样的字符串,如aba, abba等
Input
输入有多组case,不超过120组,每组输入为一行小写英文字符a,b,c…y,z组成的字符串S
两组case之间由空行隔开(该空行不用处理)
字符串长度len &lt;= 110000
Output
每一行一...]]></description><category></category></item><item><title><![CDATA[hdu1711 Number Sequence]]></title><link>https://blog.csdn.net/lemon1090/article/details/89510774</link><guid>https://blog.csdn.net/lemon1090/article/details/89510774</guid><author>lemon1090</author><pubDate>Thu, 25 Apr 2019 10:31:53 +0800</pubDate><description><![CDATA[Problem Description
Given two sequences of numbers : a[1], a[2], … , a[N], and b[1], b[2], … , b[M] (1 &lt;= M &lt;= 10000, 1 &lt;= N &lt;= 1000000). Your task is to find a number K which make a[K] = ...]]></description><category></category></item><item><title><![CDATA[hdu 1241 Oil Deposits]]></title><link>https://blog.csdn.net/lemon1090/article/details/89460072</link><guid>https://blog.csdn.net/lemon1090/article/details/89460072</guid><author>lemon1090</author><pubDate>Mon, 22 Apr 2019 20:26:56 +0800</pubDate><description><![CDATA[Problem Description
The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a ...]]></description><category></category></item><item><title><![CDATA[hdu 1176 免费馅饼]]></title><link>https://blog.csdn.net/lemon1090/article/details/89440880</link><guid>https://blog.csdn.net/lemon1090/article/details/89440880</guid><author>lemon1090</author><pubDate>Sun, 21 Apr 2019 22:09:05 +0800</pubDate><description><![CDATA[Problem Description
都说天上不会掉馅饼，但有一天gameboy正走在回家的小径上，忽然天上掉下大把大把的馅饼。说来gameboy的人品实在是太好了，这馅饼别处都不掉，就掉落在他身旁的10米范围内。馅饼如果掉在了地上当然就不能吃了，所以gameboy马上卸下身上的背包去接。但由于小径两侧都不能站人，所以他只能在小径上接。由于gameboy平时老呆在房间里玩游戏，虽然在游戏中是个身...]]></description><category></category></item><item><title><![CDATA[hdu 2041 超级楼梯]]></title><link>https://blog.csdn.net/lemon1090/article/details/89435780</link><guid>https://blog.csdn.net/lemon1090/article/details/89435780</guid><author>lemon1090</author><pubDate>Sun, 21 Apr 2019 17:20:35 +0800</pubDate><description><![CDATA[Problem Description
有一楼梯共M级，刚开始时你在第一级，若每次只能跨上一级或二级，要走上第M级，共有多少种走法？
Input
输入数据首先包含一个整数N，表示测试实例的个数，然后是N行数据，每行包含一个整数M（1&lt;=M&lt;=40）,表示楼梯的级数。
Output
对于每个测试实例，请输出不同走法的数量
Sample Input
2
2
3
Sample Output
...]]></description><category></category></item><item><title><![CDATA[hdu1087 Super Jumping! Jumping! Jumping!]]></title><link>https://blog.csdn.net/lemon1090/article/details/89433057</link><guid>https://blog.csdn.net/lemon1090/article/details/89433057</guid><author>lemon1090</author><pubDate>Sun, 21 Apr 2019 14:55:45 +0800</pubDate><description><![CDATA[Problem Description
Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know little about this game, so I introduce it to you...]]></description><category></category></item><item><title><![CDATA[hdu1159 Common Subsequence]]></title><link>https://blog.csdn.net/lemon1090/article/details/89423844</link><guid>https://blog.csdn.net/lemon1090/article/details/89423844</guid><author>lemon1090</author><pubDate>Sat, 20 Apr 2019 21:22:43 +0800</pubDate><description><![CDATA[Problem Description
A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = &lt;x1, x2, …, xm&gt; another sequence Z = &lt;z1, z2, …, ...]]></description><category></category></item><item><title><![CDATA[hdu1069 Monkey and Banana]]></title><link>https://blog.csdn.net/lemon1090/article/details/89423224</link><guid>https://blog.csdn.net/lemon1090/article/details/89423224</guid><author>lemon1090</author><pubDate>Sat, 20 Apr 2019 20:46:47 +0800</pubDate><description><![CDATA[Problem Description
A group of researchers are designing an experiment to test the IQ of a monkey. They will hang a banana at the roof of a building, and at the mean time, provide the monkey with some...]]></description><category></category></item><item><title><![CDATA[T1289：拦截导弹]]></title><link>https://blog.csdn.net/lemon1090/article/details/89422105</link><guid>https://blog.csdn.net/lemon1090/article/details/89422105</guid><author>lemon1090</author><pubDate>Sat, 20 Apr 2019 19:29:17 +0800</pubDate><description><![CDATA[【题目描述】
某国为了防御敌国的导弹袭击，发展出一种导弹拦截系统。但是这种导弹拦截系统有一个缺陷：虽然它的第一发炮弹能够到达任意的高度，但是以后每一发炮弹都不能高于前一发的高度。某天，雷达捕捉到敌国的导弹来袭。由于该系统还在试用阶段，所以只有一套系统，因此有可能不能拦截所有的导弹。
输入导弹依次飞来的高度(雷达给出的高度数据是不大于30000的正整数)，计算这套系统最多能拦截多少导弹。
【输入】
...]]></description><category></category></item><item><title><![CDATA[T1259：【例9.3】求最长不下降序列]]></title><link>https://blog.csdn.net/lemon1090/article/details/89421847</link><guid>https://blog.csdn.net/lemon1090/article/details/89421847</guid><author>lemon1090</author><pubDate>Sat, 20 Apr 2019 19:06:51 +0800</pubDate><description><![CDATA[【题目描述】
设有由n(1≤n≤200)n(1≤n≤200)个不相同的整数组成的数列，记为:b(1)、b(2)、……、b(n)b(1)、b(2)、……、b(n)且b(i)≠b(j)(i≠j)b(i)≠b(j)(i≠j)，若存在i1&lt;i2&lt;i3&lt;…&lt;iei1&lt;i2&lt;i3&lt;…&lt;ie 且有b(i1)&lt;b(i2)&lt;…&lt;b(ie)b(i1)&...]]></description><category></category></item><item><title><![CDATA[T1291：数字组合和T1273：【例9.17】货币系统]]></title><link>https://blog.csdn.net/lemon1090/article/details/89418171</link><guid>https://blog.csdn.net/lemon1090/article/details/89418171</guid><author>lemon1090</author><pubDate>Sat, 20 Apr 2019 15:28:55 +0800</pubDate><description><![CDATA[这两道题迷了我好久，终于看出来不同了（原谅我很菜，ε=(´ο｀*)))）
T1291：数字组合
题目中说的       n=5,5个数分别为1,2,3,4,5，t=5；那么可能的组合有5=1+4和5=2+3和5=5三种组合方式。   代表组合成最后的数字不同，即每种数字必须使用一次，也就是0-1背包问题的方案数，套用模板即可。
#include&lt;stdio.h&gt;
#include&lt...]]></description><category></category></item><item><title><![CDATA[1273：【例9.17】货币系统]]></title><link>https://blog.csdn.net/lemon1090/article/details/89415388</link><guid>https://blog.csdn.net/lemon1090/article/details/89415388</guid><author>lemon1090</author><pubDate>Sat, 20 Apr 2019 11:57:55 +0800</pubDate><description><![CDATA[【题目描述】
给你一个n种面值的货币系统，求组成面值为m的货币有多少种方案。
【输入】
第一行为n和m。
【输出】
一行，方案数。
【输入样例】
3 10
1
2
5
【输出样例】
10

这道题既可以用母函数（不知道为什么母函数一直过不了）也可以用dp的背包来做，但有点坑的是题目中并未给你数的范围，此时你应该设置大点的数组，并且为long long型的（wa了好几次，竟不知道原因…）

AC代码...]]></description><category></category></item><item><title><![CDATA[P1064 金明的预算方案]]></title><link>https://blog.csdn.net/lemon1090/article/details/89414734</link><guid>https://blog.csdn.net/lemon1090/article/details/89414734</guid><author>lemon1090</author><pubDate>Sat, 20 Apr 2019 11:20:09 +0800</pubDate><description><![CDATA[P1064 金明的预算方案
题目描述
金明今天很开心，家里购置的新房就要领钥匙了，新房里有一间金明自己专用的很宽敞的房间。更让他高兴的是，妈妈昨天对他说：“你的房间需要购买哪些物品，怎么布置，你说了算，只要不超过NN元钱就行”。今天一早，金明就开始做预算了，他把想买的物品分为两类：主件与附件，附件是从属于某个主件的，下表就是一些主件与附件的例子：
主件 附件
电脑 打印机，扫描仪
书柜 图书
书桌...]]></description><category></category></item><item><title><![CDATA[poj 2191 The Fewest Coins]]></title><link>https://blog.csdn.net/lemon1090/article/details/89407111</link><guid>https://blog.csdn.net/lemon1090/article/details/89407111</guid><author>lemon1090</author><pubDate>Fri, 19 Apr 2019 19:57:30 +0800</pubDate><description><![CDATA[Description
Farmer John has gone to town to buy some farm supplies. Being a very efficient man, he always pays for his goods in such a way that the smallest number of coins changes hands, i.e., the nu...]]></description><category></category></item><item><title><![CDATA[hdu 1114 Piggy-Bank]]></title><link>https://blog.csdn.net/lemon1090/article/details/89394929</link><guid>https://blog.csdn.net/lemon1090/article/details/89394929</guid><author>lemon1090</author><pubDate>Fri, 19 Apr 2019 10:36:23 +0800</pubDate><description><![CDATA[Problem Description
Before ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action comes from Irreversibly Bound Money (IBM). The i...]]></description><category></category></item><item><title><![CDATA[洛谷 P1049 装箱问题]]></title><link>https://blog.csdn.net/lemon1090/article/details/89393115</link><guid>https://blog.csdn.net/lemon1090/article/details/89393115</guid><author>lemon1090</author><pubDate>Fri, 19 Apr 2019 09:22:16 +0800</pubDate><description><![CDATA[题目描述
有一个箱子容量为VV（正整数，0 \le V \le 200000≤V≤20000），同时有nn个物品（0&lt;n \le 300&lt;n≤30，每个物品有一个体积（正整数）。
要求nn个物品中，任取若干个装入箱内，使箱子的剩余空间为最小。
输入输出格式
输入格式：
11个整数，表示箱子容量
11个整数，表示有nn个物品
接下来nn行，分别表示这nn个物品的各自体积
输出格式：
11...]]></description><category></category></item><item><title><![CDATA[hdu1061 Rightmost Digit]]></title><link>https://blog.csdn.net/lemon1090/article/details/89386913</link><guid>https://blog.csdn.net/lemon1090/article/details/89386913</guid><author>lemon1090</author><pubDate>Thu, 18 Apr 2019 20:08:35 +0800</pubDate><description><![CDATA[Problem Description
Given a positive integer N, you should output the most right digit of N^N.
Input
The input contains several test cases. The first line of the input is a single integer T which is t...]]></description><category></category></item><item><title><![CDATA[hdu 1284 钱币兑换问题]]></title><link>https://blog.csdn.net/lemon1090/article/details/89386259</link><guid>https://blog.csdn.net/lemon1090/article/details/89386259</guid><author>lemon1090</author><pubDate>Thu, 18 Apr 2019 19:38:19 +0800</pubDate><description><![CDATA[Problem Description
在一个国家仅有1分，2分，3分硬币，将钱N兑换成硬币有很多种兑法。请你编程序计算出共有多少种兑法。
Input
每行只有一个正整数N，N小于32768。
Output
对应每个输入，输出兑换方法数。
Sample Input
2934
12553
Sample Output
718831
13137761

典型母函数应用，第一次做的时候没有打表，TLE了。...]]></description><category></category></item><item><title><![CDATA[hdu 3177 Crixalis's Equipment]]></title><link>https://blog.csdn.net/lemon1090/article/details/89386173</link><guid>https://blog.csdn.net/lemon1090/article/details/89386173</guid><author>lemon1090</author><pubDate>Thu, 18 Apr 2019 19:34:19 +0800</pubDate><description><![CDATA[Problem Description
Crixalis - Sand King used to be a giant scorpion(蝎子) in the deserts of Kalimdor. Though he’s a guardian of Lich King now, he keeps the living habit of a scorpion like living underg...]]></description><category></category></item></channel></rss>