本题要考虑字符串本身就存在tandem,如测试用例aaaaaaaaabbb3输出结果应该是8而不是6,因为字符串本身的tanderm时最长的故要考虑字符串本身的最大的tanderm和添加k个字符后最大的tanderm#include #include #include #include #inclu...
分类:
其他好文 时间:
2014-06-23 06:00:10
阅读次数:
328
{{count.name }}{{count.age}} ...
分类:
Web程序 时间:
2014-06-19 07:29:29
阅读次数:
289
先解释下,background:transparent,默认在IE上会被解析成 background: none transparent scroll repeat 0% 0%
transparent表示透明无颜色
none 表示没有设置背景图片
repeat 表示图片重复
scroll 表示背景图片随浏览器下拉而滚动
0%水平位置在x0
0%垂直位置在y0...
分类:
其他好文 时间:
2014-06-16 22:29:27
阅读次数:
298
一直很少做PC页面,兼容问题更是接触的少之又少,今天做了一个小导航,发现IE6下只有第一个显示这里是正常的效果IE6下,背景都消失不见了。解决办法,去掉元素设置背景时的CSS里的no-repeat就解决了,具体原因,有时间了细细研究下
分类:
其他好文 时间:
2014-06-16 08:39:41
阅读次数:
228
概述如果你写过AngularJS的应用,那么你一定已经使用过指令,不管你有没有意识到。你肯定已经用过简单的指令,比如 ng-mode, ng-repeat,
ng-show等。这些指令都赋予DOM元素特定的行为。例如,ng-repeat 重复特定的元素,ng-show 有条件地显示一个元素。如果你想...
分类:
Web程序 时间:
2014-06-12 21:26:51
阅读次数:
435
1,普通函数定义及使用 func
myFunction(message:String="message",repeat:Int = 1){//可以设置函数默认参数值(very nice)
println("text is \(message) time is :\(repeat)") }...
分类:
其他好文 时间:
2014-06-10 19:32:10
阅读次数:
202
1. 图片背景的设置。1.1 background:url(images/banner_01.jpg)
center top no-repeat; 这样设置的话,收缩窗口后,图片会慢慢被遮挡。1.2
img标签,设置width:100%的方式,收缩图片后,图片会慢慢收缩变形。2.窗口缩小后,出现滚....
分类:
其他好文 时间:
2014-06-10 16:14:20
阅读次数:
201
freemarker自定义标签
1、自定义标签说明
宏变量存储模板片段可以被用作自定义指令macro
2、示例说明
freemarker自定义标签
repeat("张三丰",3)
3、示例结果
freemarker自定义标签...
分类:
其他好文 时间:
2014-06-09 23:09:25
阅读次数:
247
背景图 自定义显示body {background:url("bglogo.gif") repeat
fixed!important;}#tycont_01 {width:171px;
height:28px;background:url(../images/fl_bg_50.jpg) repea....
分类:
其他好文 时间:
2014-06-06 19:08:03
阅读次数:
255
Swift 使用来声明泛型函数或泛型类型:1 func repeat(item: ItemType,
times: Int) -> ItemType[] {2 var result = ItemType[]()3 for i in 0..times {4
result...
分类:
其他好文 时间:
2014-06-06 07:52:02
阅读次数:
299