这是先前做的几道最小生成树的题目,基本都是裸题。题意:求最大生成树由于数据比较水,用prime和krusical都可以。我是用krusical做的#include#include#include#include#includeusingnamespacestd;intn,m,f[1010];structnode{intx,y,s;}e[20010];boolcmp(n
系统 2019-08-12 09:27:32 3345
转自:http://www.cnblogs.com/TianFang/archive/2013/01/03/2842913.html这两天看了下如何获取天气预报,写篇文章总结下:Weather.com有如下三个Json格式的查询接口,以北京为例:http://www.weather.com.cn/data/sk/101010100.htmlhttp://www.weather.com.cn/data/cityinfo/101010100.htmlhttp:
系统 2019-08-12 01:53:02 3345
http://iphonedevelopertips.com/open-source/ios-open-source-popover-api-for-iphone-wepopover.htmlWEPopoverisanAPIthatmirrorsUIPopoverfortheiPad.Thisclassisintentionallydesignedtohavethesameinteraction,lookandfeelasthepopovereffecto
系统 2019-08-12 09:29:53 3344
ZINTERSTORE—Redis命令参考ZINTERSTOREdestinationnumkeyskey[key...][WEIGHTSweight[weight...]][AGGREGATESUM|MIN|MAX]计算给定的一个或多个有序集的交集,其中给定key的数量必须以numkeys参数指定,并将该交集(结果集)储存到destination。默认情况下,结果集中某个成员的score值是所有给定集下该成员score值之和.关于WEIGHTS和AGGR
系统 2019-08-12 01:54:47 3344
TheApacheTomcat5.5Servlet/JSPContainerClassLoaderHOW-TOprint-friendlyversionQuickStartThefollowingrulescoverabout95%ofthedecisionsthatapplicationdevelopersanddeployersmustmakeaboutwheretoplaceclassandresourcefilestomakethemavailab
系统 2019-08-29 22:20:11 3343
postgresql默认情况下,远程访问不能成功,如果需要允许远程访问,需要修改配置文件,在安装目录的data文件夹下.1.pg_hba.conf在该配置文件的hostallall127.0.0.1/32md5行下添加以下配置,或者直接将这一行修改为以下配置hostallall0.0.0.0/0md5如果不希望允许所有IP远程访问,则可以将上述配置项中的0.0.0.0设定为特定的IP值.如设置ip段:192.168.1.1/24能访问。2.postgres
系统 2019-08-12 01:51:54 3343
http://www.damipan.com/file/1QIdXr5.htmlhttp://www.damipan.com/file/1QJLIey.htmlhttp://www.damipan.com/file/1RbLrHx.html分别是视频+代码+PDF电子书,打包放到了大米盘.他的Blog是:http://www.blogjava.net/wavesun/最近一直比较忙,很想抽时间把以前放在beansoft.java-cn.org的下载资料也找
系统 2019-08-29 22:55:20 3342
ServerSideJavaScriptwithASPcode/**//***ClassNavigator*@authorKimSoft*@versionbuild2006-07-0917:46*@copyright2006KimSoftAllRightsReserved.*/functionNavigator(boardId)...{this._boardId=boardId;this._db=$singleton(function()...{retur
系统 2019-08-29 22:50:07 3342
记得很久很久之前写过一篇《七周七语言——地图着色》。用core.logic求解下。依赖包:[org.clojure/core.logic"0.8.10"](use'clojure.core.logic)(nth(run1[q](fresh[tnmsalgafl](everyg#(membero%[:red:blue:green])[tnmsalgafl])(!=mstn)(!=msal)(!=altn)(!=alga)(!=alfl)(!=gafl)(!=
系统 2019-08-12 09:30:05 3342
原文:使用XML向SQLServer2005批量写入数据——一次有关XML时间格式的折腾经历常常遇到需要向SQLServer插入批量数据,然后在存储过程中对这些数据进行进一步处理的情况。存储过程并没有数组、列表之类的参数类型,使用XML类型可妥善解决这个问题。不过,SQLServer2005对标准xml的支持不足,很多地方需要特别处理。举一个例子说明一下。这个场景是往存储过程里传递一个xml序列化了的List。1.Model的代码如下,这是一
系统 2019-08-12 01:55:38 3342