// <!DOCTYPE?html>
<html>
<head>
<title>this?is?a?page</title>
<style?type="text/css">
????body{padding:0;
?????????margin:0;
????????}
????.left{width:200px;
????...
                            
                            
                                分类:
Web程序   时间:
2015-08-28 23:29:07   
                                阅读次数:
459
                             
                    
                        
                            
                            
                                前略! ? ????????????当你还在void main的时候 、 当你还在 public class 的时候 、当你还在<h1>或者<div>的时候;你知道有个家伙叫做Python (蟒蛇)么? ? ????????????当你在用C的...
                            
                            
                                分类:
编程语言   时间:
2015-08-28 23:28:29   
                                阅读次数:
374
                             
                    
                        
                            
                            
                                为什么学习Gradle 1.???????? 配置清晰,简单易懂 2.???????? 比Maven的配置文件更加简洁 3.???????? 强大的Groovy脚本的支持 4.???????? 有上面3个理由就够了 ? ? 学习Gradle的...
                            
                            
                                分类:
其他好文   时间:
2015-08-28 23:28:20   
                                阅读次数:
510
                             
                    
                        
                            
                            
                                #include?"stdafx.h"
#include<iostream>
using?namespace?std;
void?count(char?*c)
{
?if(c==NULL)
??return;
?int?zimu=0;
?int?shuzi=0;
?int?kongge=0;
?int?qita=0;
?while(*c)
?{
??i...
                            
                            
                                分类:
其他好文   时间:
2015-08-28 23:30:41   
                                阅读次数:
386
                             
                    
                        
                            
                            
                                单机版安装 单机安装十分简单: 1)将neo4j的community版本下载完毕后,进行解压,运行的命令是:tar –zvxf neo4j-community-2.0.1.tar.gz 2)修改conf/neo4j-server.properties配置文件,将org.neo4j.server.we...
                            
                            
                                分类:
系统相关   时间:
2015-08-28 23:28:03   
                                阅读次数:
2144
                             
                    
                        
                            
                            
                                /** * Tries to claim the user‘s drag motion, and requests disallowing any * ancestors from stealing events in the drag. *? * 试图告诉父view不要拦截子控件的drag */ private void attemptClaimDrag() {...
                            
                            
                                分类:
其他好文   时间:
2015-08-28 23:28:52   
                                阅读次数:
955
                             
                    
                        
                            
                            
                                Word Search 和 Word Search Ⅱ
Word Search
Given a 2D board and a word, find if the word exists in the grid.
The word can be constructed from letters of sequentially adjacent cell, whe...
                            
                            
                                分类:
其他好文   时间:
2015-08-28 23:28:09   
                                阅读次数:
482
                             
                    
                        
                            
                            
                                1.获取指定目录下所有文件,包括子文件夹下文件,使用到递归
2.获取一个文件相对于另一个文件的相对路径
curl主要是curl_setopt中curlopt_*的理解和活用...
                            
                            
                                分类:
Web程序   时间:
2015-08-28 23:26:11   
                                阅读次数:
372
                             
                    
                        
                            
                            
                                #import 
int main(int argc, const char * argv[]) {
    @autoreleasepool {
        //获取代表当前日期,时间的NSDate
        NSDate* date1 = [NSDate date];
        NSLog(@"%@", date1);
        
        //获...
                            
                            
                                分类:
其他好文   时间:
2015-08-28 23:28:08   
                                阅读次数:
456
                             
                    
                        
                            
                            
                                好久不用linux又全忘了。。
一、下载jdk
由于我用的虚拟机无法连网,,校园网。。坑
所以使用windows下载下来jdk以后拖到桌面
二、移动jdk
mv jdk-filename targetdir
三、解压
tar -zxvf jdk-filename
四、环境变量配置
打开配置文件
vim /etc/profile...
                            
                            
                                分类:
系统相关   时间:
2015-08-28 23:28:27   
                                阅读次数:
441
                             
                    
                        
                            
                            
                                思路:先对集合排序,时间复杂度nlogn,再把M从最大值开始遍历,A和B分别取小于M的最小值和最大值,测试A+B是否等于M,如果小则A右移,如果大则B左移。总的时间负责度为n*n
int find(int S[], int n){
	sort(S, S + n);
	for(int i = n - 1; i >=2; --i){
		int left = 0, right = i - 1...
                            
                            
                                分类:
其他好文   时间:
2015-08-28 23:27:39   
                                阅读次数:
392
                             
                    
                        
                            
                            
                                SDUT 3033  (坑)
#include
#include
#include
#include
#define LL long long
using namespace std;
struct node
{
    LL  s,p,w;
}q[10];
int main()
{
    LL n,v,i,j,k;
    while(~scanf("%ll...
                            
                            
                                分类:
其他好文   时间:
2015-08-28 23:27:58   
                                阅读次数:
389
                             
                    
                        
                            
                            
                                Control
Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2295    Accepted Submission(s): 961
Problem Description
  You, the head of...
                            
                            
                                分类:
其他好文   时间:
2015-08-28 23:25:36   
                                阅读次数:
340
                             
                    
                        
                            
                            
                                最近这三天,都在解决如下的问题:我MyEclipse中的JavaEE工程,运行之后就提示Access denied for user 'root'@'localhost' (using password: YES),当我用一个Java文件连接MySQL数据库时,没有任何问题。于是我在网上找了一些解决方案:
(1)让root给当前用户授予增删改查的权限:grant select,insert,up...
                            
                            
                                分类:
数据库   时间:
2015-08-28 23:26:43   
                                阅读次数:
1227
                             
                    
                        
                            
                            
                                做这道题的时候,想到会不会是dp,然后发现dp值
#pragma comment(linker,"/STACK:102400000,102400000")
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#defi...
                            
                            
                                分类:
其他好文   时间:
2015-08-28 23:26:12   
                                阅读次数:
445
                             
                    
                        
                            
                            
                                题目链接:http://codeforces.com/gym/100609/attachments
题目大意:有n张牌,每张牌有红色和蓝色两面,两面分别写了一些数字,同种颜色的任意两个数字若排在前面的数字比排在后面的数字大就叫做一对逆序数。求怎样排序得到的逆序数对最少。
解题思路:其中一种颜色的数字是顺序且这种颜色数字相同时对应的另一种颜色的数字是顺序时得到的逆序数对数最少。难点在于求逆序数对...
                            
                            
                                分类:
编程语言   时间:
2015-08-28 23:25:02   
                                阅读次数:
259
                             
                    
                        
                            
                            
                                UTF-8
if(preg_match('/^[\x{4e00}-\x{9fa5}]+$/u',$str)){
	echo '匹配';
}else{
	echo '没有匹配';
}
GB2312,GBK
if(preg_match("/^[".chr(0xa1)."-".chr(0xff)."A-Za-z0-9_]+$/",$str)){
	echo '匹配';
}else{
	echo...
                            
                            
                                分类:
Web程序   时间:
2015-08-28 23:26:36   
                                阅读次数:
346