思路:只要连接到k个房间其中一个就可以,所以可以把k个房间并起来。然后就是克鲁斯卡尔。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include10 #incl...
分类:
其他好文 时间:
2015-02-17 07:03:58
阅读次数:
147
有时,table表格中列过多、内容多时,常常会根据每列的业务含义,挑出一些列,设置他们的宽度变窄。
但是总是有例外。比如有一条数据在那一列刚好内容特别多,那么页面显示中其内容将显示不全。
解决办法:标签内增加style="word-wrap:break-word;"样式。
表格固定宽度时,内容自动换行
white-space:norma...
分类:
其他好文 时间:
2015-02-16 14:20:00
阅读次数:
210
引入百度地图的方法,直接贴代码,运行一下代码就行了:
百度地图API自定义地图
html,body{margin:0;padding:0;}
.iw_poi_title {color:#CC5522;font-size:14px;font-weight:bold;overflow:hidden;padding-right:13px;white-...
分类:
其他好文 时间:
2015-02-14 12:25:01
阅读次数:
193
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢
Sort Colors
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white ...
分类:
其他好文 时间:
2015-02-11 18:41:01
阅读次数:
116
white-space:nowrap 在一行.slideLastlyNews img{margin-left:9px;margin-right:5px;margin-top:6px;width:5px;height:5px;width:5px;height:5px;display:inline;}....
分类:
Web程序 时间:
2015-02-10 18:21:17
阅读次数:
121
在我们日常开发中,操作和转换数组是一件很常见的操作,下面我们来看一个实例:代码如下:var desColors = [], srcColors = [ {r: 255, g: 255, b: 255 }, // White {r: 128, g: 128, b: 128 }, // Gray {r:...
分类:
编程语言 时间:
2015-02-10 15:16:04
阅读次数:
221
Given an array with n objects colored red, white or blue,sort them so that objects of the same color are adjacent, with the colors inthe order red, white and blue.
Here, we will use the integers 0, 1...
分类:
其他好文 时间:
2015-02-10 09:17:21
阅读次数:
133
refer: http://sqlblog.com/blogs/paul_white/archive/2012/04/28/query-optimizer-deep-dive-part-1.aspx SQL是一种结构化查询语言规范,它从逻辑是哪个描述了用户需要的结果,而SQL服务器将这个逻辑需求描述...
分类:
数据库 时间:
2015-02-10 01:49:38
阅读次数:
402
题意超级简单,给你一个n*n的图,点代表白色,井号代表黑色,问你白色的矩形一共多少个,一个点也算一个喔~
一开始是假设dp[i][j]代表 点(i,j)的左上角一共多少个矩形,那么dp[n][n]就是答案了,可是这样直接去找,发现没有直接的状态转移关系可以找,只能重新看一下,然后我去找如何算出矩形个数的
比如是一个连续点的 ,矩形个数是1个,两个连续的点的,矩形个数为3个,三个连续的点的,矩形...
分类:
其他好文 时间:
2015-02-09 21:43:32
阅读次数:
225
Given an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, wh...
分类:
其他好文 时间:
2015-02-09 15:45:22
阅读次数:
126