1639. Chocolate 2
Time limit: 1.0 second
Memory limit: 64 MB
Little Boy is mad at Karlsson, who ate all the sweets in the flat and even went to the neighbours to eat their sweets too. Now...
分类:
其他好文 时间:
2015-03-06 15:55:20
阅读次数:
124
使用MJRefresh上拉加载,下拉刷新时,导入包后,编译出现:Too many arguments to function call ,expected 0,have3
网上解决解决办法:
Build Setting--> Apple LLVM 6.0 - Preprocessing--> Enable Strict Checking of objc_msgSend Calls 将YES ...
分类:
其他好文 时间:
2015-03-02 13:13:59
阅读次数:
129
hdu 5178求|a[i] - a[j]| 的对数,一开始认为数据不大就直接ans++了,后来结果出来才知道,啊啊啊,too young too simple。总之一个教训思路:先排序,然后用二分查找寻找a[i] + k 在数组中的位置,然后 ans相加#include #include #inc...
分类:
其他好文 时间:
2015-03-01 13:10:43
阅读次数:
136
题目链接:http://poj.org/problem?id=1986Farmer John's cows refused to run in his marathon since he chose a path much too long for their leisurely lifestyle...
分类:
其他好文 时间:
2015-03-01 00:13:26
阅读次数:
239
reference from:https://www.voxxed.com/blog/2015/02/too-fast-too-megamorphic-what-influences-method-call-performance-in-java/Whats this all about then?...
分类:
编程语言 时间:
2015-02-28 08:51:34
阅读次数:
170
ORMLite的官方文档上,有这么一段话:
Although improvements and DAO caching has been made, creating a couple of DAOs when your application starts can still take too long and generate far too much garbage collection ...
分类:
其他好文 时间:
2015-02-27 20:17:09
阅读次数:
279
Lucene是一个高性能的java全文检索工具包,它使用的是倒排文件索引结构。该结构及相应的生成算法如下: 0)设有两篇文章1和2 文章1的内容为:Tom lives in Guangzhou,I live in Guangzhou too. 文章2的内容为:He once lived i...
分类:
Web程序 时间:
2015-02-27 13:13:00
阅读次数:
207
今天花费了一天的时间来解决这个bug。这种在程序运行期间出现的问题比较棘手,如果再没有规律的话就更难解决。还好这个bug是由规律的,也就是说在程序执行半个小时左右后就会因为此异常而导致程序退出;那么在网上找了下原因,无非是说一下几点:1、把业务放在子线程中去完成,然后通过handler来更新界面2、...
分类:
移动开发 时间:
2015-02-26 21:30:29
阅读次数:
194
一:找到apache ab模块。ab -c 1000 -n 50000 http://127.0.0.1/index.html查看信息;超过1024个线程 出现错误,说打开文件太多了。cket: Too many open files (24)查看支持多少个线程:ulimit -n 一般默认是1.....
分类:
其他好文 时间:
2015-02-26 11:20:10
阅读次数:
106