自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

zhang20072844的专栏

一些当前好走的路,会越走越窄,而一些看上去很难走很辛苦的路,越走却越宽广 。

  • 博客(53)
  • 资源 (36)
  • 收藏
  • 关注

转载 glftpd 搭建 BitUnionFTP 详解及相关维护

<br />一、前言<br /><br />    Linux 上有好不少软件能够搭建 FTP,例如 vsftpd、glftpd、proftpd 等。<br /><br />    我用过 vsftpd ,其他的不熟悉。看到 cr327 都是用 glftpd 建站,经过我的使用以及体会,发现 glftpd 在 FTP 管理上的确适合 BitUnionFTP,简短介绍一下选择 glftpd 做 BitUnionFtp 的原因。<br /><br />    vsftpd 是和 Linux 系统上用

2010-08-21 03:48:00 1192

原创 poj3517

/* * poj3517.cpp * * Created on: 2010-8-18 * Author: friendy *//* * 对于约瑟夫问题,今天看到了一篇好帖子,是用数学方法处理的,感觉还不错的无论是用链表实现还是用数组实现都有一个共同点:要模拟整个游戏过程,不仅程序写起来比较烦,而且时间复杂度高达O(nm),当n,m非常大(例如上百万,上千万)的时候,几乎是没有办法在短时间内出结

2010-08-18 21:07:00 1214

原创 poj1847

/* * poj1847.cpp * * Created on: 2010-8-18 * Author: friendy *///就是最短路,题目理解清楚就好做了/* * poj1847.cpp * * Created on: 2010-8-18 * Author: friendy */#includeusing namespace std;in

2010-08-18 20:36:00 1100

原创 poj3670

/* * poj3670.cpp * * Created on: 2010-8-18 * Author: friendy *//*先回顾经典的O(n^2)的动态规划算法: 设 A[i]表示序列中的第i个数,F[i]表示从1到i这一段中以i结尾的最长上升子序列的长度,初始时设F[i] = 0(i = 1, 2, ..., len(A))。则有动态规划方程:F[i] = max{1, F[j]

2010-08-18 20:20:00 1238

原创 poj3625

注意要用double型读入否则精度有问题/* * poj3625.cpp * * Created on: 2010-8-18 * Author: friendy *//* * poj3625.cpp * * Created on: 2010-8-18 * Author: friendy */#include#include#include#i

2010-08-18 16:37:00 1191 1

原创 2785poj

/* * poj2785.cpp * * Created on: 2010-8-14 * Author: friendy */#include#include#include#includeusing namespace std;int a[16000001],b[16000001];int num[4001][4],cnt,tt

2010-08-14 18:24:00 1327

原创 poj3048

/* * poj3048.cpp * * Created on: 2010-8-14 * Author: friendy *///巨暴力无语的一道水题#include#include#includeusing namespace std;int p[4000], pNum = 0;bool f[20001];void Prime() { int i, j; for (i = 2; i = 0; i--) { if (t >

2010-08-14 01:48:00 951

原创 poj2894

/* * poj2894.cpp * * Created on: 2010-8-14 * Author: friendy */#include#include#includeusing namespace std;int num[1001];int main(){ int t,i,n,a,b,j; char ch; scanf("%d",&t); while(t--){ memset(num,0,sizeof(num));

2010-08-14 01:16:00 712

原创 poj1386

/* * poj1386.cpp * * Created on: 2010-8-13 * Author: friendy *///并查集加欧拉路#include#include#includeusing namespace std;char s[1001];int f[27], rank[27];int flag[26], mark[26];int n;//并查集判连通void Init() { memset(flag, 0

2010-08-14 00:39:00 1022

原创 poj2625

/* * poj2629.cpp * * Created on: 2010-8-13 * Author: friendy */#include#include#includeusing namespace std;char s1[1001],s2[1001];int a[27],b[27];int main(){ int len,i; while(gets(s1)!=NULL){ memset(a,0,sizeof(a))

2010-08-13 23:14:00 767

原创 poj1101

/* * poj1101.cpp * * Created on: 2010-8-13 * Author: friendy */////这道题目好我的时间很长,但是发现了我的一个很大的错误。//guang搜写的不行,主要是不知道为什么不让我用stl了//#include#include#include#includeusing namespace std;int pos[4][2]={{-1, 0}, {0, 1}, {1, 0}, {0,

2010-08-13 21:50:00 1854

原创 poj2536

/* * poj2536.cpp * * Created on: 2010-8-13 * Author: friendy *///注意到以下三点,直接匈牙利。#include#include#includeusing namespace std;double x[110][2], y[110][2];int n, m;double s, v;int maps[110][110], links[110], used[110];int

2010-08-13 17:15:00 1078

原创 poj2456

久违的二分,快一年没有做过二分题目了……果然手生阿……想想可以二分哪个范围,对题木有帮助/* * poj2456.cpp * * Created on: 2010-8-12 * Author: friendy */#include#include#include#includeusing namespace std;int n,n

2010-08-12 12:49:00 1790 4

原创 poj2828

/* * poj2828.cpp * * Created on: 2010-8-11 * Author: friendy */#include#include#includeusing namespace std;//又是一道线段树的题目,感觉很经典,刚开始就想着用链表,后来看到会超时,也就没写//根本没想到会用到线段树。这个思想很奇特,从后面加进来,每个点维持前面还有多少个空位置//最后插入的位置都是正确的位置,而如果和这个位置相同的的那么就

2010-08-11 23:04:00 1994

原创 poj2446

/* * poj2446.cpp * * Created on: 2010-8-11 * Author: friendy */#include#include#includeusing namespace std;//int pos[4][2]

2010-08-11 17:10:00 1654 2

原创 poj1580

/* * poj1580.cpp * * Created on: 2010-8-11 * Author: friendy */#include#include#includeusing namespace std;//暴力题int len1, len2;char s1[1000], s2[1000];int dp[1000][1000];int Gcd(int a, int b) { if (b == 0) return

2010-08-11 15:38:00 1034

原创 poj2244

/* * poj2244.cpp * * Created on: 2010-8-11 * Author: friendy */#include#include#includeusing namespace std;//模拟题int n;int num[151];int main() { int i, j; while (scanf("%d", &n), n) { for (i = 2;; i++) { memset

2010-08-11 15:32:00 774

原创 poj2153

<br />/*<br /> * poj2153.cpp<br /> *<br /> *  Created on: 2010-8-11<br /> *      Author: friendy<br /> */<br /><br />#include<iostream><br />#include<cstdio><br />#include<cstring><br />#include<map><br />#include<string><br />using n

2010-08-11 10:47:00 974

原创 poj2083

/* * poj2083.cpp * * Created on: 2010-8-10 * Author: friendy *///好神奇的递归阿……号精减#include#include#include#include#includeusing namespace std;char map[1000][1000];void graph(int x, int y, int n) { int l; if (n == 1)

2010-08-10 15:28:00 1395

原创 poj1226

/* * poj1226.cpp * * Created on: 2010-8-10 * Author: friendy *///又是暴力阿……想用后缀树或者后缀树组写,但是不会阿……赶紧学习……#include#include#include//#includeusing namespace std;char s[105][105],minstr[105];int n;void strev(char *str){//此函数要自己写 i

2010-08-10 14:58:00 1128

原创 poj3300

/* * poj3300.cpp * * Created on: 2010-8-9 * Author: friendy */#include#include#includeusing namespace std;double radio[100];int fron[10],rear[11];int main(){ int n,m,i,j; while(1){ scanf("%d",&n); if(n==0)

2010-08-09 19:44:00 728

原创 poj3660

/* * poj3660.cpp * * Created on: 2010-8-9 * Author: friendy */#include#include#includeusing namespace std;//这道题目一个传递闭包解决//注意能决定名次的是出度和入度和=n-1的//因为它只要参加n-1场比赛就行了,初度是胜的入度是输的int n,m,map[101][101];int a[101];int main(){

2010-08-09 17:41:00 936

原创 poj1575

/* * poj1575.cpp * * Created on: 2010-8-9 * Author: friendy */#include#include#includeusing namespace std;char s[25];//模拟题int jj(char c){ if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){ return 1; } return 0;}int ok(

2010-08-09 16:58:00 573

原创 poj2478

/* * poj2478.cpp * * Created on: 2010-8-9 * Author: friendy *///欧拉函数#include#include#include#define M 1000001using namespace std;/*bool f[1000001];int p[40000];int N[1000001];int pNum=0;void prime(){ int i,j; for

2010-08-09 16:22:00 707

原创 poj1978

/* * poj1978.cpp * * Created on: 2010-8-9 * Author: friendy */#include#include#includeusing namespace std;//模拟题。int num[55];int n,r;void change(int p,int c){ int i,tmp[55]; for(i=1;i

2010-08-09 15:48:00 641

原创 poj1651

/* * poj1651.cpp * * Created on: 2010-8-9 * Author: friendy *///找了一本算法书,看了矩阵连乘//和这道题木一样#include#include#includeusing namespace std;int n, num[120], dp[120][120];int main() { int i, j, k,r; scanf("%d", &n); for (i =

2010-08-09 14:55:00 985

原创 poj1745

//巧妙地dp佩服……#includeusing namespace std;bool dp[10001][101];//每次存放余数 余数的情况一共有101种int a[10001];//dp方程//dp【i-1】【j】到dp[i][]是如何变化的,这个题目好好的利用了100这个数,去看起余数,这样的就刚好是记录路径的dp了//把中见过程都保存下来了。余数为j的时候有两种情况,可以加上活减去当前的数,然后如果为附属直接转化为正数//原来也做了不少这样的题目。老是不太懂,

2010-08-09 13:36:00 1319

原创 poj1154

/* * poj1154.cpp * * Created on: 2010-8-9 * Author: friendy *///有点水#include#include#includeusing namespace std;//一个对递归不太明白的我,今天竟然写出了2A的程序。char str[50][50];int used[27];int cnt,mmax;int m,n;void dfs(int x,int y){ if

2010-08-09 11:13:00 829

原创 poj3427

/* * poj3427.cpp * * Created on: 2010-8-8 * Author: friendy *///暴力的题目不解释,注意等0年的时候也就是不等一定要加上#include#include#includeusing namespace std;int num[30001];int main(){ int i,j,n,m,sum=0,k,min=99999999; while(scanf("%d%d",&n,

2010-08-08 21:25:00 739

原创 poj2704

//dp非递归//dp方程对于每一个i和j,d[i][j]+=(d[i-a[k][j]][j],d[i][j-a[i][k]])/*#include #include#includeusing namespace std;__int64 n,d[40][40],a[40][40];char s[40][40];int main(){ while(cin>>n&&n!=-1) { int i,j,k;

2010-08-08 17:38:00 572

原创 poj2572

/* * poj2572.cpp * * Created on: 2010-8-8 * Author: friendy */#include#include#includeusing namespace std;//太水了,做了这么久,bs/*int reverse(int p){ int num=0,sum=0; int a[10]={0}; while(p){ a[num++]=p%10; p/=10; }

2010-08-08 11:18:00 523

原创 poj2572

/* * poj2572.cpp * * Created on: 2010-8-8 * Author: friendy */#include#include#includeusing namespace std;//太水了,做了这么久,bs/*int reverse(int p){ int num=0,sum=0; int a[10]={0}; while(p){ a[num++]=p%10; p/=10; }

2010-08-08 11:18:00 665

原创 poj1161

/* * poj1161.cpp * * Created on: 2010-8-8 * Author: friendy * 代码写的好cuo,还是在用abc当数组名,以后坚决改掉。 *///本题目重在建图//如何建图,map【i】【j】表示从i区域到j区域要走的墙//这一点很重要,就是如何判断两个区域是相邻的,因为给你的每个区域是 顺时针给出的各个点//所以找到一个相同到点后,直接比较旁边相邻的点是否相同,也就是说两个区域相邻一定要有一条公共边//

2010-08-08 10:08:00 924

原创 poj2155

/* * poj2155.cpp * * Created on: 2010-8-7 * Author: friendy *///每次只去改变给的位置和另外矩形顶点的位置//举一个一维的例子,每次改变区间的端点,如果要求到点在这个之间,等到最后求1-x的和到时候,就会算一次,如果不在,有两种情况,无论是那个,两个//改变的值相加对2取模是0所以和原来一样没有影响,这样就把求最后一个点改成了求和,更新的时候也是更新和。很好……很强大……&#include#in

2010-08-08 00:44:00 853

原创 poj1230

/* * poj1230.cpp * * Created on: 2010-8-6 * Author: friendy *////贪心,计算出每一列所能遇到的wall的数目,对于每一列,若wall数目小于k则判断下一列,否则//对这列进行如下操作:找出起点不大于当前列而终点不小于当前列的墙,取其中终点减去当前列最大//的那面墙,将其删去,(这里是贪心,即去掉对后面影响最大的墙),同时还要更新每一列的墙数//num[i]的值。//墙边也算,只要有交集就可

2010-08-06 13:04:00 755

原创 poj3067

/* * poj3067.cpp * * Created on: 2010-8-5 * Author: friendy *///一边排序,一边求逆序数//树状数组#include#include#include#includeusing namespace std;int c[1001];//树状数组,保存的是每个点后面有多少个点int n,m,tmp;//结构东西为了排序struct Node{ int w,e; bool

2010-08-06 02:47:00 898

原创 poj2501

/* * poj2501.cpp * * Created on: 2010-8-5 * Author: friendy */#include#include#includeusing namespace std;//这道题目主要考虑在开始没速度到时候要输出距离0//另外距离要用double类型int main() { int i, sp, time, timeNow, len; double dis = 0; char s[

2010-08-05 22:58:00 824

原创 poj1861

<br />天啊,谁能告诉我,为什么我交拉好几遍不过,过两天交就过了……想……<br />//最小生成树克鲁斯卡尔算法<br />#include<iostream><br />#include<algorithm><br />using namespace std;<br /><br />struct Node<br />{<br />    int x,y,p;<br />    bool operator<(const Node &other)const<br />  

2010-08-03 18:32:00 657

原创 poj3268

<br />/*<br /> * poj3268.cpp<br /> *<br /> *  Created on: 2010-8-3<br /> *      Author: friendy<br /> */<br />#include<iostream><br />#include<cstdio><br />#include<cstring><br />#include<algorithm><br />#define inf 99999999<br />usin

2010-08-03 18:20:00 772

原创 poj1171

<br />//============================================================================<br />// Name        : poj1171.cpp<br />// Author      : friendy<br />// Version     :<br />// Copyright   : Your copyright notice<br />// Description : Hello Wor

2010-08-03 12:11:00 678

GPS测试(通过GPSID)

这是一个通过GPSID驱动对GPS进行测试的MFC程序。能够获得当前的经纬度。 环境是mobile 6.

2011-09-25

GPS测试(通过GPSID)

用MFC开发的,在windows mobile环境下的编程,GPS测试。通过gpsid读取当前的位置,给出经纬度.

2011-09-24

MFC_cedit_控件使用方法.doc

MFC中cedit控件的使用方法,具体详细地介绍了其中的各种方法,如何使用

2011-08-05

Taskbar.pdf

主要将如何修改任务栏中的小标志,删除,以及对鼠标动作的处理

2011-08-05

Programming_Windows_with_MFC_(2nd_Edtion).pdf

这是另外一本比较经典的书,和Programming-Windows一样很出名。

2011-08-05

Programming Windows.pdf

这是比较经典的windows程序设计的书,看很多人都推荐,就传上来了。不错,虽然是英文的。

2011-08-05

蓝牙学习必备资料RNP1_BlueLab_Note

蓝牙学习的必备资料,这是在实验室做实验的笔记总结,很好很强大,欢迎下载。

2011-07-22

Csr_bluetooth_driver技术文档

主要介绍两个方面的内容,一个是电源管理,一个是bcsp。实际上就是两个dll文件,通过这两个文件来介绍开发mobile下蓝牙驱动的相关技术。

2011-07-22

蓝牙HCI驱动开发中的BCSP和bccmd协议

在开发蓝牙HCI层驱动的时候,代码中会有BCCMD协议层和BCSP层,这两层对驱动开发相当重要,这个文档主要介绍了BCSP和bccmd的一些知识,对驱动开发相当有用。

2011-07-22

pojcodefor(3000-3799)

poj从题号3000到3799道题目的源码,可能会有一些没有,但是近180道题目。每道题目至少有一道AC的代码,除了AC的还有很多效率不是很高的以及wa的代码,信息量很大,很好用。

2011-04-21

pojcodefor(2000-2999)

poj从题号2000到2999道题目的源码,可能会有一些没有,但是近170道题目。每道题目至少有一道AC的代码,除了AC的还有很多效率不是很高的以及wa的代码,信息量很大,很好用。

2011-04-21

pojcodefor(1200-1999)

poj从题号1200到1999道题目的源码,共近140道题目。每道题目至少有一道AC的代码,除了AC的还有很多效率不是很高的以及wa的代码,信息量很大,很好用。

2011-04-21

pojcodefor(1100-1199)

poj从题号1100到1199道题目的源码,可能会有几道没有,但是近80道题目。每道题目至少有一道AC的代码,除了AC的还有很多效率不是很高的以及wa的代码,信息量很大,很好用。

2011-04-21

pojcodefor(1000-1099)

poj从题号1000到1099道题目的源码,可能会有几道没有,但是近100道题目。每道题目至少有一道AC的代码,除了AC的还有很多效率不是很高的以及wa的代码,信息量很大,很好用。

2011-04-21

操作系统实验报告-大作业模拟文件系统

操作下系统的实验报告,第6个实验选的是那个设计一个大作业 模拟文件系统 实验

2010-05-26

操作系统实验报告-文件复制

操作下系统的实验报告,第5个实验选的是那个设计一个文件复制

2010-05-26

操作系统实验报告-消费者生产者

操作下系统的实验报告,第4个实验选的是那个设计一个消费者 生产者

2010-05-26

操作系统实验报告-进程控制

操作下系统的实验报告,第3个实验选的是那个进程控制,学会进程控制

2010-05-26

操作系统实验报告-编译linux内核

操作下系统的实验报告,第2个实验选的是那个编译linux内核

2010-05-26

操作系统实验报告-先来先服务的调度算法

操作下系统的实验报告,第一个实验选的是那个设计一个先来先服务的调度算法

2010-05-26

组合数学…………………………

里面是组合数学的的一些代码,讲解,好好多好需哦很好的东西啊,欢迎下载。

2009-05-28

NKU2007综合测试题解题报告

南开大学的比赛题目及标程测试用例及代码。欢迎大家积极下载

2009-05-28

计算几何题目及专题测试

里面有计算几何的题目及测试用例及题目讲解,很好的算法学习,欢迎下载。

2009-05-28

记录状态的动态规划dp

里面有记录状态的动态规划,状态dp,,欢迎大家啊下载

2009-05-28

常用STL的实例代码

里面有c++常用的STL,各种模板举例,欢迎大家下载。

2009-05-28

刘汝佳ACM讲义刘汝佳

这是老师的课件,希望您看了会对那您有所帮助谢谢使用。 ACM 刘汝佳 讲义 编程 算法 课件

2009-02-16

各种acm讲解 有二分函数等等

里面是关于动态规划 贪心算法 计算几何基础 搜索 二分图及其应用母函数及其应用 讲解加例题解析,谢谢使用

2009-02-16

(lecture_04)动态规划(1).rar

这是老师的课件,希望您看了会对那您有所帮助谢谢使用。

2009-02-16

(lecture_03)递推求解new.rar

这是老师的课件,希望您看了会对那您有所帮助谢谢使用。

2009-02-16

(lecture_02)老少皆宜数学题new.rar

这是老师的课件,希望您看了会对那您有所帮助谢谢使用。

2009-02-16

(lecture_01)初识ACM_newnew6.rar

这是老师的课件,希望您看了会对那您有所帮助谢谢使用。

2009-02-16

博弈 课件 lecture 12

这是老师的课件件,希望对大家有所帮助,谢谢使用!

2009-02-16

usaco题解+程序

里面有usaco前几节的程序和代码,欢迎使用,希望对你有所帮主。

2009-02-16

ACMd的各种各样的模板总结

在这个ACM各种各样的模板包里有acm常用的模板以及优化。欢迎下载。

2008-12-12

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除