Very good problem to learn knapsack (complete knapsack in this case).My brutal-force solution in Python got AC too, which surprised me a bit. Here is ...
分类:
其他好文 时间:
2015-03-19 06:18:36
阅读次数:
135
三月初,抱着试试看的心态投了阿里内推的算法工程师。too young too naive.实际应该投的是研发工程师,当时没看清。问的问题大致涉及: 1.C/C++基础知识深入:指针与引用,const用法,static用法。 2.操作系统:进程与线程,进程间通信,内存管理的堆栈用法。 3.计算机...
分类:
其他好文 时间:
2015-03-19 00:43:26
阅读次数:
498
在上传时nginx返回了413错误,查看log文件,显示的错误信息是:”413RequestEntityTooLarge”,需要做以下设置:打开nginx主配置文件nginx.conf,找到http{}段,增加client_max_body_size的相关设置,这个值默认是1m,可以增加到3m以增加提高文件大小限制;client_max_body_size3m..
分类:
其他好文 时间:
2015-03-18 18:17:36
阅读次数:
101
之前用python爬取网页的时候,一直用的是regex或者自带的库sgmllib里的SGMLParser。但是遇到复杂一点的情况时,SGMLParser往往就不那么给力了!(哈,难道说我 too native了?毕竟beautifulSoup是继承sgmlparser的么~)所以,我寻寻觅觅寻寻觅觅...
分类:
编程语言 时间:
2015-03-18 06:22:14
阅读次数:
257
Exception in thread "main" redis.clients.jedis.exceptions.JedisClusterMaxRedirectionsException: Too many Cluster redirections? at redis.clients.jedis....
分类:
其他好文 时间:
2015-03-17 17:32:27
阅读次数:
1027
题目:You can Solve a Geometry Problem tooTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 145 Accepted Submission(s): 100 Problem DescriptionMany geom...
分类:
其他好文 时间:
2015-03-17 12:25:44
阅读次数:
111
A boy named Gena really wants to get to the “Russian Code Cup” finals, or at least get a t-shirt. But the offered problems are too complex, so he made an arrangement with his n friends that they will s...
分类:
编程语言 时间:
2015-03-16 14:36:02
阅读次数:
141
A boy named Gena really wants to get to the "Russian Code Cup" finals, or at least get a t-shirt. But the offered problems are too complex, so he made an arrangement with his n friends
that they wil...
分类:
其他好文 时间:
2015-03-15 23:05:06
阅读次数:
277
原文网址:http://wyong.blog.51cto.com/1115465/1546632原创作品,允许转载,转载时请务必以超链接形式标明文章原始出处、作者信息和本声明。否则将追究法律责任。http://wyong.blog.51cto.com/1115465/1546632 本人SDK更新后...
分类:
其他好文 时间:
2015-03-15 22:55:53
阅读次数:
200
错误原因: 太多的连接数,登录用户过多,配置的mysql连接数过小,或者某些连接没有关闭,导致连接数过大。问题的解决: 修改mysql的my.ini配置文件,网上的说法:mysql安装目录下的my.ini中设定的并发连接数太少或者系统繁忙导致连接数被占满。 而项目实际上部署在linux系统上,需要找...
分类:
其他好文 时间:
2015-03-15 15:07:44
阅读次数:
135