题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5013题意:思路:这里有错,是Hi(x)=sigama(Hji)(j属于x)const int N=18;int m,n;double p[N],H[N][N];double f[N][1>1]+(i&1...
分类:
其他好文 时间:
2014-09-16 23:31:11
阅读次数:
302
最大子矩阵,(City Game)SEERC 2004,LA 3029
白书上的例题,看了两节课,终于理解了。DP的思想。
扫描的时候维护 up朝上能有多少空格,left 最多朝左走到多少,right 朝右走到多少。
所以只需要扫描一遍即可得出答案 = up*(right-left+1)
我定义left数组的时候跟 iostream 冲突了。
#inclu...
分类:
其他好文 时间:
2014-09-16 12:45:10
阅读次数:
150
1628: [Usaco2007 Demo]City skylineTime Limit: 5 SecMemory Limit: 64 MBSubmit: 256Solved: 210[Submit][Status]DescriptionThe best part of the day for Fa...
分类:
其他好文 时间:
2014-09-15 21:05:59
阅读次数:
237
http://poj.org/problem?id=1860DescriptionSeveral currency exchange points are working in our city. Let us suppose that each point specializes in two p...
分类:
其他好文 时间:
2014-09-13 20:08:45
阅读次数:
410
Jquery解析json字符串、json数组
解析json字符串、json数组
{"ret": 0, "msg": "", "is_lost":0, "nickname": "小米", "gender": "男", "province": "广东", "city": "广州", "yea...
分类:
Web程序 时间:
2014-09-13 18:48:45
阅读次数:
253
DescriptionBeijing was once surrounded by four rings of city walls: the Forbidden City Wall, the Imperial City Wall, the Inner City Wall, and finally ...
分类:
其他好文 时间:
2014-09-12 20:30:24
阅读次数:
184
在写项目的时候遇到一个问题,sql 语句进行 like in 参数化,按照正常的方式是无法实现的我们一般的思维是:Like 参数:string strSql = "select * from Person.Address where City like '%@add%'";SqlParameter[...
分类:
数据库 时间:
2014-09-11 19:06:52
阅读次数:
353
Fire Station
Time Limit: 5000MS
Memory Limit: 65536K
Total Submissions: 3783
Accepted: 1337
Description
A city is served by a number of fire stations. Some resident...
分类:
其他好文 时间:
2014-09-10 12:31:20
阅读次数:
244
Find them, Catch themTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 31840Accepted: 9807DescriptionThe police office in Tadu City decides to ...
分类:
其他好文 时间:
2014-09-09 18:11:19
阅读次数:
170
PAT 1087 All Roads Lead to Rome题目:Indeed there are many different tourist routes from our city to Rome. You are supposed to find your clients the rout...
分类:
其他好文 时间:
2014-09-07 10:59:14
阅读次数:
198