题目描述:
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adj...
分类:
其他好文 时间:
2015-05-14 16:34:46
阅读次数:
115
Description
Richard just finished building his new house. Now the only thing the house misses is a cute little wooden fence. He had no idea how to make a wooden fence, so he decided to order one. S...
分类:
其他好文 时间:
2015-05-13 23:17:20
阅读次数:
299
PL SQL游标将hregright表中不存在hrno的记录,用house表中的hrno填充(house唯一的时候)declare cursor house_cur is select h.regno,h.hrno from house h where h.hrno...
分类:
数据库 时间:
2015-05-13 14:30:51
阅读次数:
156
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping yo...
分类:
其他好文 时间:
2015-05-13 08:45:52
阅读次数:
116
题意:有一个整数序列,从中挑出一些数字,使得总和是最大,前提是,相邻的两个数字中只能挑其一。比如1 2 3 就只能挑2或者1和3。思路:很直观的题,dp思想。降低规模,从小规模开始考虑。如果只有两个数字,那么结果很明显就能知道是其中之大者。假如已经知道了第 i 个之前的决策,那么第i+2个之前的决策...
分类:
其他好文 时间:
2015-05-12 18:24:59
阅读次数:
115
用最多需要的香蕉数减去目标串出现的概率就行啦。。。。
如何求出现的概率?
每个字符出现的概率乘起来……再乘以目标串能摆的位置个数……
Problem
Your publishing house has decided to use monkeys randomly typing at keyboards to write great works of litera...
分类:
其他好文 时间:
2015-05-11 00:09:29
阅读次数:
280
Color the fence
时间限制:1000 ms | 内存限制:65535 KB
难度:2
描述
Tom has fallen in love with Mary. Now Tom wants to show his love and write a number on the fence opposite to
Mary’s house. Tom t...
分类:
其他好文 时间:
2015-05-08 22:13:29
阅读次数:
185
Problem DescriptionFred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the land, he le...
分类:
其他好文 时间:
2015-05-08 14:24:43
阅读次数:
112
??
When you work with an architect to design a house, you start with three things: a list of wants (such as
“I want a house with three bedrooms”
and “I want to pay no more than
x”),
a ...
分类:
其他好文 时间:
2015-05-08 08:09:42
阅读次数:
193
题目:You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping...
分类:
其他好文 时间:
2015-05-07 14:11:44
阅读次数:
89