Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from 172.0.0.0/8 10.0.0.0/8 //多一个则加8 比如172.24.0.0/16 ...
分类:
其他好文 时间:
2014-07-16 22:57:10
阅读次数:
241
big-endian vs little-endian
分类:
其他好文 时间:
2014-07-16 22:55:10
阅读次数:
227
Null value was assigned to a property of primitive type setter of com.zsba.AdornCompanyInfo.provinceOrderMemberInteger order和int order;的区别:Integer是对象....
分类:
其他好文 时间:
2014-07-16 22:50:06
阅读次数:
192
Write a program to sort a stack in ascending order (with biggest items on top). You may use at most one additional stack to hold items, but you may no...
分类:
其他好文 时间:
2014-07-16 20:35:03
阅读次数:
288
Big NumberTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 25183Accepted Submission(s): 11426Proble...
分类:
其他好文 时间:
2014-07-16 20:08:33
阅读次数:
137
在一个项目中,需要查询表tr_product中的user_id字段,如果user_id相同,则把其对应的money字段相加,数据库截图如下:
实现代码:
$Model = D('Model');
$res =$Model->query("SELECT user_id,sum(money) from tr_order GROUP BY user_id");
结果:
array (siz...
分类:
Web程序 时间:
2014-07-11 00:08:04
阅读次数:
293
映射配置文件 好947
映射配置查询语句 好947
<!--
keyProperty:实体类中的id属性名,当返回主键的时候就是返回给keyProperty
order:生成主键和执行insert语句的顺序,在mysql是AFTER,在oracle中使用BEFORE
resultType:主键返回的数据类...
分类:
其他好文 时间:
2014-07-10 20:19:19
阅读次数:
174
我都不好意思在标题上写这是最短路
这题挺有意思,关键在于把题目所求的量转换为最短路问题。
题意:
给一个无向图,每个结点有权值p[i],每条边有权值w[i]
求使这颗树所有顶点与根节点1联通的最小花费,
最小花费=∑w[i]×∑p[i]
第一个∑是所有边,第二个∑是该边下所有结点的权值和
思路:
通过推导可以发现,对于每个结点,它被算入的花费为 p[i]*d[i],...
分类:
其他好文 时间:
2014-07-10 20:18:43
阅读次数:
177
题目链接:
点我点我
题目:
An Awful Problem
Time Limit: 1 Second Memory Limit: 32768 KB
In order to encourage Hiqivenfin to study math, his mother gave him a sweet candy when the day of the mo...
分类:
其他好文 时间:
2014-07-10 19:29:30
阅读次数:
315
重复、先学会用它、不断向自己问问题(写博客)、自己做产品!
1.对于较艰深的技术,如内核和算法,重复看,硬着头皮看,找到该技术top3的书反复研读,会有所悟的。
2.linus torwards大神如是说:想精通Linux,先学会用它!搭个系统使用它,再写小程序练习验证。
3.问问题,big view and small detail,反复缩放,直到问到的问题足够具体,你就理解了。写...
分类:
其他好文 时间:
2014-07-10 17:21:50
阅读次数:
225