是我算法不对,还是笔记本CPU太差?我优化了两次,还是花了三四个小时来得到结果。在输出上加1就是最终结果。The
sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.Find the sum of all the primes
below two mil...
分类:
其他好文 时间:
2014-05-09 16:20:08
阅读次数:
295
近来在centos 6.0
x64版本下安装vsftpd,中间出现一些问题,解决过程总结如下:安装vsftpd:yum install vsftpd安装后配置为虚拟用户登陆,然后用:ftp
localhost登陆测试总是出现错误提示:530 Login incorrect.Login failed....
分类:
其他好文 时间:
2014-05-09 15:30:35
阅读次数:
369
Given an array S of n integers, are there
elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the
array which gives the sum of ...
分类:
其他好文 时间:
2014-05-09 10:27:29
阅读次数:
449
http://blog.csdn.net/twlkyao/article/details/24534505
分类:
其他好文 时间:
2014-05-09 10:07:36
阅读次数:
1929
之前在ubuntu上安装pandas,用的easy_install。这次在window上同样方法装遇到"unable
to find
vcvarsall.bat",看一些网上帖子好像说这个要装minGW解决,不喜欢装那么东西。就直接下exe装pandas,但也遇到问题,在注册表里找不到python2...
在配置安卓开发环境时,我将sdk、eclipse等工具包解压在了/opt目录下,在安装adt、导入sdk时,频频出现问题,Failed to create
directory /opt/adt-bundle-linux-x86_64-20140321/sdk/temp原因是程序在/opt目录下权限不...
分类:
系统相关 时间:
2014-05-09 09:03:05
阅读次数:
399
完成了一个脚本,find.sh如果希望可以再linux系统中任何位置都可以执行该脚本,可以执行下面操作1. chmod 775 find.sh
给该脚本增加可执行权限2. export PATH=$PATH:存放该脚本的路径
分类:
系统相关 时间:
2014-05-09 08:16:43
阅读次数:
498
<p><%=course=Course.find_by_id(params[:id])%></p>
分类:
数据库 时间:
2014-05-09 06:43:34
阅读次数:
320
下载jQuery EasyUI出现网络问题
1、具体错误如下
错误 137 (net::ERR_NAME_RESOLUTION_FAILED):未知错误
2、错误原因
由于DNS配置出现问题,导致该网页打不开
3、解决办法
下载一个电脑管家,对DNS进行优选...
分类:
Web程序 时间:
2014-05-09 06:09:48
阅读次数:
343
一.Service
借助MSDN上Win7 Service的Demo和《用VC++建立Service服务应用程序》,在Win8上经历各种磨难,终于跑起来自己改装的服务程序了。
原来API基本没变,我所困惑的是Win7上直接运行都没有问题,在Win8上不可以。
报错:
OpenSCManager failed w/err 0x00000005
原来是Win8上权限的问题,也许我自己的Win...
分类:
移动开发 时间:
2014-05-09 01:26:59
阅读次数:
465