- 博客(59)
- 收藏
- 关注
原创 phpstudy配置
一、 httpd-conf 配置, 配置域名的路径。二、可以配置虚拟主机。 点击站点域名管理, 在里面添加新的虚拟主机,就可以同时发布几个项目。
2017-08-09 16:11:30
532
原创 redis安装配置
一、下载 http://pecl.php.net/package/redis 下载redis文件 (DLL文件为Windows环境下的redis文件)。 下载时注意redis对应的PHP版本数据,并且还分为线程安全和非线程安全版本(和php一致),不一致会报错。二、配置从下载的文件中找出php_redis.dll文件,然后把文件加入到php文件下的ext(扩展文件)中。然后
2017-08-09 15:36:28
340
原创 phpstrom2017.2.1 安装、注册
一、 官网下载安装phpstrom2017.2.1 二、安装好后运行软件,然后输入license server链接进行注册 license server 为http://idea.ibdyr.com
2017-08-09 13:46:06
435
转载 vim的使用
vim的学习曲线相当的大(参看各种文本编辑器的学习曲线),所以,如果你一开始看到的是一大堆VIM的命令分类,你一定会对这个编辑器失去兴趣的。下面的文章翻译自《Learn Vim Progressively》,我觉得这是给新手最好的VIM的升级教程了,没有列举所有的命令,只是列举了那些最有用的命令。非常不错。——————————正文开始——————————你想以最快的速度学习人类史上最好
2016-08-26 17:24:07
541
转载 vim编辑的缩进
编程时代码缩进是相当必要的,使用Vim处理代码缩进并不困难,只要了解一些参数就可灵活运用。[1]常用设置缩进设置最常用的是: :filetype indent on它将开启针对文件具体类型的缩进。 下面的选项需要在命令模式下用set设置的选项的含义。使用方法如: set ci # 开启cindentset noet # 关闭expandtab
2016-08-25 11:55:39
1413
转载 python快速入门
python经典入门讲解: http://blog.csdn.net/hitlion2008/article/details/9285785
2016-08-24 17:15:32
2922
原创 LinkNode
#include struct node{ int data; node *next; node() { next = NULL; }};node *head;void addLink(){ node *now = head; while(now->next) { now = now
2016-08-17 12:08:25
3823
原创 二分 + 快排
#include void binarySearch(int a[],int x,int l,int r){ int flag = 0; while(l<=r) { int mid = (l+r)/2; if(x<a[mid]) { r=mid-1; } else
2016-08-17 11:43:51
317
原创 网络编程-Tcp通信
网络编程-Tcp通信//结束标记是个坑//package com.it.www;import java.io.*;import java.net.ServerSocket;import java.net.Socket;class SendClient { // 主函数抛出异常 public static void main(String[] args) thro
2016-08-14 11:29:08
338
原创 网络编程-udp通信
网络编程-udp通信package com.it.www;import java.io.BufferedReader;import java.io.InputStreamReader;import java.net.DatagramPacket;import java.net.DatagramSocket;import java.net.InetAddress;clas
2016-08-14 11:25:38
294
原创 Exception in thread "main" java.lang.NoClassDefFoundError: Server (wrong name: com/it/www/Server)
Exception in thread "main" java.lang.NoClassDefFoundError: Server (wrong name: com/it/www/Server)在cmd中运行java代码出现如此的错误:java代码中出现了包名, 不能识别。
2016-08-14 10:53:48
908
翻译 The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
由于JSTL1.0和JSTL1.1的声明语句不一样。
2015-12-29 14:16:31
1380
原创 煞笔题
第八届河南省acm10409: D.引水工程Time Limit: 2 Sec Memory Limit: 128 MBSubmit: 22 Solved: 12[Submit][Status][Web Board]Description南水北调工程是优化水资源配置、促进区域协调发展的基础性工程,是新中国成立以来投资额最大、涉及面最广的战略性工程,事关中华民族长
2015-05-24 00:30:30
453
原创 hdu 3908
#include #include #include #include #define LL __int64using namespace std;int gcd(int a,int b){ if(b==0) { if(a==1) return 1; return 0; } return gc
2015-04-23 22:53:18
466
原创 给四个点,证明能形成一个正方形 hdu 5206
#include #include #include #include #include #define LL __int64using namespace std;struct node{ LL x; LL y; LL z;}s[4];LL a[4];LL used[4];int flag;double cal(int a,int b)
2015-04-23 18:15:02
690
原创 dfs hdu 1045 Fire Net
建造城堡,城堡不能在同一行或同一列,如果在同一行或同一列必须被城墙’X‘隔开,问最多可以建造的城堡数。#include #include #include using namespace std;char str[10][10];int n, cut, ans;int ok( int x, int y ){ for( int i=x-1;i>=0;i-- ) {
2015-03-17 17:29:03
455
原创 spfa hdu2544 蓝桥
蓝桥 带负权值的最短路#include #include #include #include using namespace std;int n, m, t;struct node{ int v, dis, next;}s[200001];int used[200001];int dis[200001];int head[200001];void add(
2015-03-08 16:32:32
373
原创 ac自动机 hdu 2222
#include #include #include #include using namespace std;struct node{ node *fail; node *next[26]; int Count; node() { fail=NULL; Count=0; for( int i=
2014-12-01 21:56:26
458
原创 最长上升子序列 nlogn算法 hdu 1025 Constructing Roads In JGShining's Kingdom
#include #include #include using namespace std;struct node{ int x; int y;}s[500005];int rm[500005];bool cmp( node a, node b ){ return a.x<b.x;}int Find( int x, int n ){
2014-12-01 20:54:17
507
原创 kmp Writings on the Wall Virtual Judge5876
#include #include #include char str[2][50005];int next[50005];void getnext( char *str ){ int i, j; int len=strlen( str ); i=0, j=-1; next[0]=-1; while( i<len ) {
2014-11-25 14:13:57
491
原创 暴力dfs 3699 A hard Aoshu Problem
#include #include #include #include using namespace std;int ans;int n, t, cnt;int B[10];int temp[10];int used[10];int A[6][40000][6];int len1, len2, len3;char str1[10], str2[10], str3[10
2014-10-14 13:43:15
479
原创 分治 求点对最短距离 hdu 1007 Quoit Design
#include #include #include #include using namespace std;struct node{ double x; double y;} s[100001];int A[100001];bool cmp( node a, node b ){ return a.x<b.x;}bool cmpy( int
2014-10-12 16:44:11
590
原创 vector 3682 To Be an Dream Architect
#include #include #include #include #include using namespace std;vectorV;int n, m;int cal( char a, int num1, char b, int num2, int index ){ if( a=='Y' && b=='Z' ) return index*n*n+
2014-10-10 18:09:50
463
原创 map容器运用 codeforces
D. CGCDSSQtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputGiven a sequence of integers a1, ..., an and q q
2014-10-08 14:37:28
438
原创 树形dp ( vector dfs 01背包 ) hdu 1011 Starship Troopers
#include #include #include #include using namespace std;int n, m;int dp[101][101];int used[101];int need[101];int get[101];vectorv[101];void dfs( int x ){ int i, j, k; used[x]=1;
2014-10-04 22:30:34
523
原创 vector dfs 4739 Zhuge Liang's Mines
#include #include #include #include using namespace std;struct Node{ int x, y;}s[10001];struct node{ int a, b, c, d; node( int aa, int bb, int cc, int dd ) { a=aa;b=
2014-10-04 19:42:37
459
原创 dfs hdu 1010 Tempter of the Bone
#include #include #include #include using namespace std;char str[11][11];int used[11][11];int n, m, t;int flag;int mx[4]={1,-1,0,0};int my[4]={0,0,-1,1};int ok( int x, int y ){ if(
2014-10-01 15:46:48
452
原创 map hdu 4022 Bombing
#include #include #include #include #include #include using namespace std;typedef map > def;int n, m;void pop( def &a, def &b, int k ){ printf( "%d\n", a[k].size() ); for( multise
2014-09-30 22:36:27
454
原创 01背包 装满 hdu 1079 The Balance
#include #include #include #define N 20005using namespace std;int i, j, x, kk, n, m;int t;int Dp[N];int a[N];int ans[N];int main(){ while( scanf( "%d", &n )!=-1 ) { int su
2014-09-30 14:19:06
550
原创 hdu 1022 Train Problem I
#include #include #include #include using namespace std;int main(){ int i, j, k, t, Cas; int n, m; char a[110],b[101],c[101]; int d[300]; while( scanf( "%d%s%s", &n, a, b
2014-09-24 22:35:03
413
原创 归并排序 逆序数
#include #include #include using namespace std;int a[11000];int b[11000];int sum;void Union( int low, int high ){ int mid=( low+high )/2; int k=0; int i=mid; int j=high;
2014-09-19 17:03:41
446
原创 递归
逆波兰数#include #include #include #include using namespace std;char str[1100];double Ans(){ scanf( "%s", str ); if( str[0]=='*' ) return Ans()*Ans(); else if( str[0]=='+
2014-09-14 20:40:58
422
原创 最大流 代码
#include"stdio.h"#include"string.h"#include"queue"using namespace std;#define N 205const int inf=0x7fffffff;int g[N][N];int pre[N],mark[N];int ek(int n){ int i,u,d,ans=0; while(1)
2014-09-14 12:00:39
605
原创 匈牙利算法 poj 2466 Chessboard
#include#include#include#include#include#define inf 999999999using namespace std;struct node{ int x; int y;};char str[220][220];int map[220][220];int link[1220];int used[1220];int n,
2014-09-14 11:59:13
655
原创 1358 Period hdu kmp的next数组运用
PeriodTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3085 Accepted Submission(s): 1544Problem DescriptionFor each prefix of
2014-08-28 16:37:23
495
原创 hdu 2087 剪花布条 KMP
#include #include #include #include using namespace std;char substr[100002];char str[100002];int next[100002];void getnext(){ int len=strlen( substr ); int i=0, j=-1; next[0]=-
2014-08-27 15:38:35
509
原创 2503 Babelfish 二分 字典树 map容器
DescriptionYou have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you have a dictionary to help you understand them.
2014-08-26 16:57:43
610
原创 poj 2386 lake Counting
DescriptionDue to recent rains, water has pooled in various places in Farmer John's field, which is represented by a rectangle of N x M (1 <= N <= 100; 1 <= M <= 100) squares. Each square contains
2014-08-25 17:06:20
486
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人