1.题目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 and blue.Here, we will use the integers ...
分类:
其他好文 时间:
2015-03-14 23:19:13
阅读次数:
238
1)分页模板页面product_pag.html<divstyle="margin-right:4px;float:right;"><spanstyle="color:blue;margin-right:6px;">总页数<strongclass="colorred">{{pageObj.totalPage}}</strong></span><spanstyle="color:blue;margin-right:6px;"&..
分类:
其他好文 时间:
2015-03-13 19:03:20
阅读次数:
404
在C#winform应用程序中,可以用GDI绘制出线条或图形。1、在主窗体上绘制线条或图形 using (Graphics g = this.CreateGraphics()) { g.DrawLine(Pens.Blue, new Point(10, 10), new Point(...
TextEdit显示一个可编辑的,有格式的文本框。它也可以显示明文和富文本。例如:TextEdit { width: 240 text: "Hello World!" font.family: "Helvetica" font.pointSize: 20 color: "blue" focus: t...
分类:
其他好文 时间:
2015-03-12 13:11:01
阅读次数:
406
标题:Reverse Words in a String通过率: 14.8% 难度: 中等Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return ".....
分类:
其他好文 时间:
2015-03-11 21:18:28
阅读次数:
129
1225. Flags
Time limit: 1.0 second
Memory limit: 64 MB
On the Day of the Flag of Russia a shop-owner decided to decorate the show-window of his shop with textile stripes of white, blue an...
分类:
其他好文 时间:
2015-03-07 15:46:37
阅读次数:
139
Sort Colors问题: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...
分类:
其他好文 时间:
2015-03-07 10:11:41
阅读次数:
189
题目大意给出一个有向图,每天每人只能做一次飞机。现在给出起点,终点,和需要走的人数,还有每条航线的限制人数,问最少多少天最慢的人到达终点。思路很明显是网络流的模型,至于如何去验证,其实连二分都不用,枚举最少天数,然后每次加一层边进行验证就行了。CODE#define _CRT_SECURE_NO_WARNINGS#include
#include
#include...
分类:
Web程序 时间:
2015-03-07 08:34:23
阅读次数:
215
如上图,不同来源的两个样式,第一个样式设置了font-weight,第二个没有,浏览器会把它叠加在一起,即浏览器会把各个零散的整合成一个整体。第一个样式color:red,第二个样式color:blue,浏览器会让后者覆盖前者,最终结果还是color:blue。 覆盖的默认规则是后者覆盖前者,但是....
分类:
其他好文 时间:
2015-03-06 20:25:30
阅读次数:
192
题解:
枚举需要几天,然后每天新加一层点跑最大流看maxflow是否够数。
代码:
#include
#include
#include
#include
#include
#define P 55
#define N 5010
#define M 1001000
#define inf 0x3f3f3f3f
/*
2 <= N <= 50
1 <= M <= 2450
1 <...
分类:
Web程序 时间:
2015-03-06 15:59:46
阅读次数:
160