首页 > 其他
SIP协议应答消息状态码详解
SIP应答消息状态码与功能 类型 状态码 状态说明 临时应答(1XX) 100 Trying 正在处理中 180 Ringing 振铃 181 call being forwarder 呼叫正在前向 182 queue 排队 181* session progress 会话进行 会话成功(2XX) 200 OK 会话成功 重定向(3XX) 300 multiple 多重...
分类:其他   时间:2015-04-09 22:02:50    收藏:0  评论:0  赞:0  阅读:419
Centos 子域名绑定子目录过程记录
加载重写模块LoadModule rewrite_module modules/mod_rewrite.so添加配置RewriteEngine on RewriteMap lowercase int:tolower RewriteMap vhost txt:/opt/lampp/etc/vhost.map RewriteCond ${lowercase:%{SERVER_NAME}} ^(.+...
分类:其他   时间:2015-04-09 22:02:39    收藏:0  评论:0  赞:0  阅读:228
【云分析】之五《如何选择适合你的“云”》
当一个企业用户,在面对云计算所带来的美好前景时,如果考虑采用“云”,那么你应该如何选择呢?本文尝试在选择云方面给你一些建议和帮助。...
分类:其他   时间:2015-04-09 22:02:19    收藏:0  评论:0  赞:0  阅读:283
POJ1273 Drainage Ditches【最大流】【SAP】
题目大意: 农民John的田里有M个池塘和N条水沟用来排水,池塘编号为1~M,1号池塘是所有水沟的源点, M号池塘是水沟的汇点。给你N条水沟所连接的池塘和所能流过的水量,求整个水沟从源点到汇点 最多能流多少水。 思路: 很明显的求网络流最大流问题。用链式前向星(邻接表)来存储网络,这样就不用考虑重边问题了。这 里的重边其实就是平行边。用SAP算法+GAP优化来求最大流就可以了。SAP+GAP模板参考我的另 一篇博文:http://blog.csdn.net/lianai911/article/detail...
分类:其他   时间:2015-04-09 22:01:22    收藏:0  评论:0  赞:0  阅读:327
【矩阵快速幂】POJ 3070 Fibonacci (大数 Fibonacci)(大二版)
题目链接:click here~~ 题目大意: In the Fibonacci integer sequence, F0 = 0, F1 = 1, and Fn = Fn ? 1 + Fn ? 2 for n ≥ 2. For example, the first ten terms of the Fibonacci sequence are: 0, 1, 1, 2, 3,...
分类:其他   时间:2015-04-09 22:01:09    收藏:0  评论:0  赞:0  阅读:139
设计模式 笔记 抽象工厂模式 Abstract Factory
//---------------------------15/04/09---------------------------- //Abstract Factory 抽象工厂----对象创建型模式 /*     1:意图:提供一个创建一系列相关或相互依赖对象的接口,而无需制定他们具体的类。     2:别名:Kit     3:动机...
分类:其他   时间:2015-04-09 22:00:49    收藏:0  评论:0  赞:0  阅读:156
[LeetCode]Binary Tree Right Side View
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. For example: Given the following binary tre...
分类:其他   时间:2015-04-09 22:00:38    收藏:0  评论:0  赞:0  阅读:145
word2vec中 distence.c 文件源码分析
#include #include #include //#include #include const long long max_size = 2000; // max length of strings const long long N = 5;...
分类:其他   时间:2015-04-09 22:00:19    收藏:0  评论:0  赞:0  阅读:153
将矩阵中值为0的元素所在的行和列设置为0, in-place O(1)space O(mn) time
将矩阵中值为0的元素所在的行和列设置为0, in-place O(1)space O(mn) time 使用O(m+n)space 的方案比较容易想到...
分类:其他   时间:2015-04-09 22:00:09    收藏:0  评论:0  赞:0  阅读:145
poj3468(线段树-区间修改)
模板题: #include #include #define ll long long const int N = 100000 + 10; ll sum[N << 2]; ll addv[N << 2]; int num[N]; int n,q; void pushUp(int u) { sum[u] = sum[u * 2] + sum[u * 2 + 1]; } void b...
分类:其他   时间:2015-04-09 21:59:58    收藏:0  评论:0  赞:0  阅读:304
CentOS7修改主机名小结
CentOS7修改主机名小结 CentOS7下修改主机名 第一种:hostname 主机名 这种方式,只能修改临时的主机名,当重启机器后,主机名称又变回来了。 第二种:hostnamectl set-hostname 使用这种方式修改,可以永久性的修改主机名称!...
分类:其他   时间:2015-04-09 21:59:48    收藏:0  评论:0  赞:0  阅读:244
LightOJ1314---Names for Babies
1314 - Names for Babies PDF (English) Statistics Forum Time Limit: 4 second(s) Memory Limit: 32 MBLong time ago, there was a strange kingdom. Peoples of different religions, different cult...
分类:其他   时间:2015-04-09 21:59:29    收藏:0  评论:0  赞:0  阅读:239
【NOI2007】【BZOJ1492】货币兑换Cash
BZOJ题面是图片来的. 文字版题面 1797 货币兑换2007年NOI全国竞赛 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 大师 Master题目描述 Description小 Y 最近在一家金券交易所工作。该金券交易所只发行交易两种金券:A 纪 念券(以下简称 A 券)和 B 纪念券(以下简称 B 券)。每个持有金券的顾客都有 一个自己的帐户。金券的数目可以...
分类:其他   时间:2015-04-09 21:58:49    收藏:0  评论:0  赞:0  阅读:303
最长公共子序列
问题描述 我们称序列Z = 是序列X = 的子序列当且仅当存在严格上升的序列,使得对j = 1, 2, … ,k, 有xij = zj。比如Z = 是X = 的子序列。 现在给出两个序列X 和Y,你的任务是找到X 和Y 的...
分类:其他   时间:2015-04-09 21:58:39    收藏:0  评论:0  赞:0  阅读:147
HDU 1686 Oulipo
KMP 水题。...
分类:其他   时间:2015-04-09 21:58:19    收藏:0  评论:0  赞:0  阅读:302
使用github中遇到的问题
Github是一件利器,使用过程中总会遇见一些问题,慢慢总结中...........
分类:其他   时间:2015-04-09 21:58:08    收藏:0  评论:0  赞:0  阅读:255
统计一个字符串中某个字符第一次出现的位置和最后一次出现的位置
#include #include #include //统计某个字符第一次出现的位置 char* strchr(char *p,char a) { int i; assert(p!=NULL); for(i=0;i<strlen(p);i++) { if(p[i]==a) return p+i; } return 0; } //统计某个...
分类:其他   时间:2015-04-09 21:57:58    收藏:0  评论:0  赞:0  阅读:339
UIAlertView和UIActionSheet
UIAlertView和UIActionSheet是iOS自带的弹出式对话框。当这俩个控件出现时,用户无法与其他控件进行交互。 两个区别在于: UIAlertView是显示在屏幕中央的,而UIActionSheet是显示在底部的按钮列表。 UIAlertView的用法非常简单: 1.创建UIAlertView,指定该对话框的标题、消息内容、以及该对话框包含的按钮信息。如果要监听按钮点击警告框...
分类:其他   时间:2015-04-09 21:56:51    收藏:0  评论:0  赞:0  阅读:276
hihocoder1089(Floyd最短路)
题目连接:点击打开链接 解题思路: 全源最短路 完整代码: #include #include #include #include #include using namespace std; int n , m; const int maxn = 1111; const int INF = 1000000000; int d[maxn][maxn]; void init...
分类:其他   时间:2015-04-09 21:56:39    收藏:0  评论:0  赞:0  阅读:194
[LeetCode]Symmetric Tree
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree is symmetric: 1 / \ 2 2 / \ / \ 3 4 4 3...
分类:其他   时间:2015-04-09 21:56:28    收藏:0  评论:0  赞:0  阅读:261
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!