我是个逗比。。。真心不是搞算法的料
不太中规中矩的分组背包,分组至少选一件商品。dp[i][j] 可以由当前dp[i-1][j-c] 和 dp[ i ][j-c]更新得到。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#pragma comment(link...
分类:
其他好文 时间:
2014-05-10 09:10:20
阅读次数:
301
不管是浏览器的开发者还是普通web应用的开发者,他们都在做一个共同的努力:让Web浏览有更快的速度感觉。有很多已知的技术都可以让你的网站速度变得更快:使用CSS
sprites,使用图片优化工具,使用.htaccess设置页面头信息和缓存时间,JavaScript压缩,使用CDN等。我曾经介绍过本站...
分类:
其他好文 时间:
2014-05-09 18:01:01
阅读次数:
244
http://wenku.baidu.com/link?url=AuuxwYzcTmbX2ong2ZVjfuUfLPalAc8499-cudGtys_BwP1tPGzFH36Bxoqvn_UXATAJDuDmtOFdGkzP6FVIvzNfHLCBHk0VFFa4A4as3mK正解
分类:
系统相关 时间:
2014-05-07 18:40:32
阅读次数:
435
应用场景:图片等资源需要设置权限,如:只有认证过的用户才能访问自己的图片。
解决办法:使用Nginx的防盗链模块http_secure_link可以实现,该模块默认情况下不包含,故在安装时要加上--with-http_secure_link_module
该模块根据两个参数控制权限访问,一个是过期时间(即该链接在这个时间之前可访问,过期后无法访问),该参数主要出于安全考虑。
另一个是通过md...
分类:
其他好文 时间:
2014-05-07 15:53:18
阅读次数:
268
大型网站SEO的特点&优势&挑战 特点
页面数量巨大
SEO流量高,长尾流量占比大
数以百计的Web应用
跨团队、多团队协作
优势
页面内容丰富,数量多(UGC)
域名初始权重高
无需刻意进行link building,用户会主动帮忙进行链接建设和推广
网站安全及性能优化由专业团队负责
挑战
用户内容如何更好地匹配用户搜索Quer...
分类:
Web程序 时间:
2014-05-07 12:26:37
阅读次数:
445
Chef had an interesting dream last night. He dreamed of a new revolutionary chicken recipe. When he woke up today he tried very hard to reconstruct the ingredient list. But, he could only remember cer...
分类:
其他好文 时间:
2014-05-07 11:23:54
阅读次数:
330
Description Yesterday your dear cousin Coach
Pang gave you a new 100MB hard disk drive (HDD) as a gift because you will get
married next year. But yo....
分类:
其他好文 时间:
2014-05-07 10:04:47
阅读次数:
382
这个代码其实自己花了很长的时间去理解,渐渐的有所明白了一点。#include #include
typedef enum { Link , Thread } PointTag; //Link表示指针,Thread表示线索typedef struct
treenode ...
分类:
其他好文 时间:
2014-05-07 09:07:36
阅读次数:
262
点击details进入后在link点击binary details,进入之后点击右上角reject this binary,然后就可以重新上传了。...
分类:
移动开发 时间:
2014-05-07 03:43:15
阅读次数:
392
背景
项目要求网站首页放Views生成的区块,并且要求有更多链接。
Views生成的区块默认的更多链接只能选在列表上方和下方
下图是默认在上方的样式图:
为了美观,我将更多链接上移了若干个像素:
.more-link {
position: absolute;
top: 10px;
left: 390px;
}
效果图:
问题
然而,当我在这个区块外面再套一...
分类:
Web程序 时间:
2014-05-06 15:35:27
阅读次数:
454