??
解决办法:加入相关类的 jar 包到你的 classpath (右键点击某个jar包--build path--config build path...---liberary---Add external jar library),此处加入 servelet-api.jar(此包在eclipse/plugins目录中可以找得到,其他类似的错误也用相同的方法解决) 到 classpath ,...
                            
                            
                                分类:
编程语言   时间:
2014-05-15 07:08:36   
                                阅读次数:
313
                             
                    
                        
                            
                            
                                Robot Motion
Problem Description
A robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down in a grid. The...
                            
                            
                                分类:
其他好文   时间:
2014-05-15 05:48:40   
                                阅读次数:
346
                             
                    
                        
                            
                            
                                2Sum & 3Sum & 4Sum & KSum...
                            
                            
                                分类:
其他好文   时间:
2014-05-15 05:33:56   
                                阅读次数:
270
                             
                    
                        
                            
                            
                                LeetCode-001 Two Sum 
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2...
                            
                            
                                分类:
其他好文   时间:
2014-05-15 04:34:50   
                                阅读次数:
293
                             
                    
                        
                            
                            
                                #include int main(int argc, char *argv[]){ int 
c = -1, n = -1; while (true) { scanf("%d%d",&c,&n); int 
arr[n],sum[n],b[n]; if (c + n == 0) { ...
                            
                            
                                分类:
其他好文   时间:
2014-05-14 23:11:50   
                                阅读次数:
391
                             
                    
                        
                            
                            
                                为Python添加默认模块搜索路径
方法一:函数添加
1) import sys
2) 查看sys.path
3) 添加sys.path.append("c:\\")
方法二:修改环境变量
windows用户可以修改系统环境变量PYTHONPATH
方法三:增加.pth文件,推荐!
在site-packages添加一个路径文件,如mypkpath.pth,必须以...
                            
                            
                                分类:
编程语言   时间:
2014-05-14 21:21:27   
                                阅读次数:
419
                             
                    
                        
                            
                            
                                划分树。只是考虑求当前区间大于第k值的值得和,和小于第k值的和。显然可以在查询的时候直接搞出来。sum[d][i]表示第d层子区间l,r种l-i的和。写错了一个下标,检查了半辈子。。。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define MP make_...
                            
                            
                                分类:
其他好文   时间:
2014-05-14 19:31:39   
                                阅读次数:
311
                             
                    
                        
                            
                            
                                1.把php_oci8.dll复制到system32目录下,经试验,无效。2.添加php安装路径到环境变量path中,使用phpinfo()查看,重启电脑后才会变成新的path设置,但可惜,经过一番折腾,依旧无效。3.oarcle客户端精简版问题,我换成使用与服务器端安装时使用的同一张盘安装的客户端,经查,..
                            
                            
                                分类:
Web程序   时间:
2014-05-14 17:29:35   
                                阅读次数:
381
                             
                    
                        
                            
                            
                                {
"cmd":["g++","${file}","-o","${file_path}/${file_base_name}"],
"file_regex":"^(..[^:]*):([0-9]+):?([0-9]+)?:?(.*)$",
"working_dir":"${file_path}",
"selector":"source.c,source.c++",
"encoding":"cp936",
"variants":
[
{
"name":"Run",
"shell":true,
"cmd":["st..
                            
                            
                                分类:
编程语言   时间:
2014-05-14 17:25:25   
                                阅读次数:
300
                             
                    
                        
                            
                            
                                [root@OpenSIPSopensips-1.11.1-tls]#makemenuconfigcdmenuconfig;make;cd..make[1]:Enteringdirectory`/usr/local/opensips-1.11.1-tls/menuconfig‘gcc-g-Wall-DMENUCONFIG_CFG_PATH=\"menuconfig/configs/\"-DMENUCONFIG_GEN_PATH=\"etc/\"-DMENUCONFIG_HAVE_SOURCES=1-c-ocf..
                            
                            
                                分类:
其他好文   时间:
2014-05-14 16:07:32   
                                阅读次数:
341