http://acm.hdu.edu.cn/showproblem.php?pid=3667最小费用最大流本题流量和费用不是线性关系,fee=a*flow*flow,所以常规套模板spfa无法得到最小费用观察到每条边流量上限只有5,则可以把一条流量为f的边拆成f条流量为1的边,每条边费用是a*(2*...
分类:
其他好文 时间:
2014-05-08 05:17:36
阅读次数:
329
题目链接:
http://acm.hdu.edu.cn/showproblem.php?pid=2841
Visible Trees
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1337 Accepted S...
分类:
其他好文 时间:
2014-05-08 04:45:47
阅读次数:
375
分享一个zabbix数据库的优化脚本,适合2.0版本。对history,hostory_uint按日分区,trends,trends_uint按月分区;关闭Houserkeeper:vimzabbix_server.confDisableHousekeeper=1对history,hostory_uint每日建立第二天的分区并删除45天前的分区对trends,trends_uint每月20号建立..
分类:
数据库 时间:
2014-05-08 03:26:48
阅读次数:
499
1、接收语音识别结果if($msgType=="voice"){
//收到语音消息
//MediaId语音消息媒体id,可以调用多媒体文件下载接口拉取数据。
//Format语音格式,如amr,speex等
$format=$postObj->Format;
$mediaId=$postObj->MediaId;
//开通语音识别功能,用户每次发送语音给公众号..
分类:
微信 时间:
2014-05-08 03:21:39
阅读次数:
601
1、创建菜单//创建菜单
publicfunctioncreateMenu(){
$url="https://api.weixin.qq.com/cgi-bin/menu/create?access_token=";
$url.=$this->getacctoken();
//目前自定义菜单最多包括3个一级菜单,每个一级菜单最多包含5个二级菜单。一级菜单最多4个汉字,
//二级菜单最多7..
分类:
微信 时间:
2014-05-08 03:20:39
阅读次数:
550
玩了一段时间zabbix,对他的数据库有点研究,在这里分享下添加一个监控的过程,希望能帮到路过的朋友。添加一个监控项目(不包括添加模板)涉及到几个表,分别是:ids,hosts,applications,groups,hosts_groups,interface,items,items_applications,如果还需要添加触发器的话还..
分类:
数据库 时间:
2014-05-08 02:32:26
阅读次数:
1060
Nginx学习指南之安装与配置一、简介Nginx[enginex]是IgorSysoev编写的一个HTTP和反向代理服务器,另外它可以作为邮件代理服务器。Nginx已经在众多流量很大的俄罗斯网站上使用了很长时间,这些网站包括Yandex,Mail.Ru、VKontakte,以及Rambler,在国内使用Nginx作为WebServer,..
分类:
其他好文 时间:
2014-05-08 02:25:13
阅读次数:
714
题目:链接:http://acm.hdu.edu.cn/showproblem.php?pid=2176
题意:...
分类:
其他好文 时间:
2014-05-08 02:13:00
阅读次数:
285
题目:链接:http://acm.hdu.edu.cn/showproblem.php?pid=1907
题意:...
分类:
其他好文 时间:
2014-05-08 01:56:27
阅读次数:
231
转载请注明出处:http://acm.hdu.edu.cn/showproblem.php?pid=1217
Problem Description
Arbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one u...
分类:
其他好文 时间:
2014-05-08 01:48:12
阅读次数:
469