本来想写道水题....结果调了这么久!就是一个 define 里面少加了个括号 !二分图最大点权独立集...黑白染色一下 , 然后建图 :S -> black_node , white_node -> T , 流量都为点权 . 然后 black_node -> white_node ( 两点有公共边...
分类:
其他好文 时间:
2015-07-16 00:29:22
阅读次数:
653
Well, an interesting problem. If you draw some examples on a white board and try to figure out the regularities, you may have noticed that the key to ...
分类:
其他好文 时间:
2015-07-14 22:31:07
阅读次数:
149
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-07-14 20:17:48
阅读次数:
115
What does it mean for an algorithm to be fairIn 2014 the White House commissioned a 90-day study that culminated in areport(pdf) on the state of “big ...
分类:
其他好文 时间:
2015-07-14 20:14:30
阅读次数:
146
//table table td{white-space:nowrap;overflow:hidden; text-overflow:ellipsis;}table {table-layout:fixed;} //div.textflow{ display:block;overflow:hidden...
分类:
其他好文 时间:
2015-07-14 19:37:50
阅读次数:
103
coredump时的信息:
(gdb) maintenance info program-spaces
*** Error in `gdb': free(): invalid pointer: 0x0000000003c6bcf0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7d1fd)[0x7fc875c0d1fd]
gdb(fi...
分类:
数据库 时间:
2015-07-14 17:54:45
阅读次数:
262
1、引言
在JavaScript中,当定义一个大的字符串,特别是有换行情况时,为了看起来整齐、易读,一般使用续行符,例如:
var script = "var chart = anychart.pieChart([ ['Chocolate paste', 5], ['White honey', 2], ...
分类:
编程语言 时间:
2015-07-14 11:26:17
阅读次数:
171
大家应该都知道用text-overflow:ellipsis属性来实现单行文本的溢出显示省略号(…)。当然部分浏览器还需要加宽度width属性。overflow: hidden;text-overflow: ellipsis;white-space: nowrap;但是这个属性并不支持多行文本溢出显...
分类:
其他好文 时间:
2015-07-13 15:25:02
阅读次数:
118
@charset "utf-8";/*! * @名称:base.css * @功能:1、重设浏览器默认样式 * 2、设置通用原子类 *//* 防止用户自定义背景颜色对网页的影响,添加让用户可以自定义字体 */html { background:white; color:bla...
分类:
Web程序 时间:
2015-07-13 15:21:01
阅读次数:
129
75 Sort Colors链接:https://leetcode.com/tag/two-pointers/
问题描述:
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 th...
分类:
其他好文 时间:
2015-07-13 12:14:35
阅读次数:
119