题目链接 先用后缀数组给串排好序。dc3 O(n) 二分答案+贪心check 答案的长度len=(n+k-1)/k 如果起点为i长为len串大于当前枚举的答案,i的长度取len-1 从起点判断k个串的长度是否大于等于n check的时候最多枚举len个起点,每个位置需要枚举n/le...
分类:
其他好文 时间:
2015-02-16 01:38:01
阅读次数:
132
描述一张CT扫描的灰度图像可以用一个N*N(0 2 using namespace std; 3 4 int main() { 5 int N; 6 int size = 0, circle = 0; 7 int i, j; 8 cin >> N; 9 ...
分类:
其他好文 时间:
2015-02-15 20:37:16
阅读次数:
218
列表与方块width , hight (top, bottom ,left , right) 只有在决对坐标下才起作用下面的使用与 ol ullist-style:none // 取消序号list-style:circle //序号改成圆圈list-styl...
分类:
Web程序 时间:
2015-02-15 19:25:02
阅读次数:
164
Problem Description
The Ferries Wheel is a circle,rounded by many cable cars,and the cars are numbered 1,2,3…K?1,K in order.Every cable car has a unique value and A[i?1]/******************************...
分类:
其他好文 时间:
2015-02-14 22:39:10
阅读次数:
188
A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacent circles should be a prime.
Note: the number of first circle should always be 1.
Input
n (0 < n < 2...
分类:
其他好文 时间:
2015-02-12 22:56:33
阅读次数:
437
The Circle MethodBy Andrew GranvilleA method of analysis that plays a prominent rolein Analytic Number Theoryis the so-called circle method, which goe...
分类:
其他好文 时间:
2015-02-12 19:49:20
阅读次数:
192
Who Gets the Most Candies?Time Limit:5000MSMemory Limit:131072KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionNchildren are sitting in a circle ...
分类:
其他好文 时间:
2015-02-06 21:39:57
阅读次数:
223
自己编写的九方格抽奖插件参考网址http://demo.qpdiy.com/all/plugins/Lottery/lottery--horse3/h/index.html关键代码: 1 var num = 0; //当前点亮的灯 2 var circle = 0; //至少转跑马灯的圈数 3 .....
分类:
其他好文 时间:
2015-02-02 12:03:38
阅读次数:
166
图像
图像在网页制作中也是常要用到的元素,在Bootstrap框架中对于图像的样式风格提供以下几种风格:
1、img-responsive:响应式图片,主要针对于响应式设计
2、img-rounded:圆角图片
3、img-circle:圆形图片
4、img-thumbnail:缩略图片
使用方法:
使用方法非常简单,只需要在标签上添加对应的类名,如下代码:
...
分类:
其他好文 时间:
2015-01-31 19:25:52
阅读次数:
287
一:SVG 文件可通过以下标签嵌入 HTML 文档:、 或者 。
推荐使用标签,
标签被所有主流的浏览器支持,并允许使用脚本。
二:来看一个例子
SVG嵌入html
我们继续使用第一讲初识SVG矢量图中,创建的circle.svg.使用embed标签嵌套到html中。
打开html文件,仍然可以看到svg矢量图:...
分类:
Web程序 时间:
2015-01-30 22:55:50
阅读次数:
356