太神了,被数学题虐了orzhttp://m.blog.csdn.net/blog/skywalkert/43970331这道题关键是抓住m较小的特点,构造递推解决 1 const mo=1000000007; 2 3 var c:array[0..1010,0..1010] of longint;....
分类:
其他好文 时间:
2015-05-09 19:02:31
阅读次数:
121
平衡树系列终于完结,撒花裸的树套树,扔代码跑 1 const mo=20306789; 2 var w,b,s,key,fa:array[0..4000010] of longint; 3 son:array[0..4000010,1..2] of longint; 4 a,...
分类:
其他好文 时间:
2015-05-09 18:57:58
阅读次数:
96
http://www.cocoachina.com/ios/20150505/11752.html1. MantleMantle 让我们能简化 Cocoa 和 Cocoa Touch 应用的 model 层。简单点说,程序中经常要进行网络请求,请求到得一般是 json 字符串,我们一般会建一个 Mo...
分类:
移动开发 时间:
2015-05-08 17:47:49
阅读次数:
313
提取需要国际化的字符串到messages.pot 文件 pybabel extract -F babel.cfg -o messages.pot . 初使化翻译目录 pybabel init -i messages.pot -d myapp/translations -l en 修改po文件后,编译生成mo文件 pybabe...
分类:
其他好文 时间:
2015-05-06 21:19:03
阅读次数:
130
Quad TilingTime Limit:1000MSMemory Limit:65536KTotal Submissions:3495Accepted:1539DescriptionTired of theTri Tilinggame finally, Michael turns to a mo...
分类:
其他好文 时间:
2015-05-02 01:00:00
阅读次数:
172
MVC开始是存在于桌面程序中的,M是指业务模型,V是指用户界面,C则是控制器 使用MVC的目的是将M和V的实现代码分离,从而使同一个程序可以使用不同的表现形式。比如一批统计数据可以分别用柱状图、饼图来表示。C存在的目的则是确保M和V的同步,一旦M改变,V应该同步更新。MVC 是一种使用 MVC(Mo...
分类:
编程语言 时间:
2015-04-27 23:37:34
阅读次数:
1662
Number Sequence
Time Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^
题目描述
A number sequence is defined as follows:
f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mo...
分类:
其他好文 时间:
2015-04-27 21:51:32
阅读次数:
125
Bitwise AND of Numbers Range问题:Given a range [m, n] where 0 n || m>= 1; n >>= 1; moveFactor <<= 1; } return m * mo...
分类:
其他好文 时间:
2015-04-27 21:40:05
阅读次数:
353
在新的时代里,相信网页技术会伴随HTML 5的来临进入大洗牌的局面,HTML 5旨在解决Web中的交互,媒体,本地操作等问题,一些浏览器已经尝试支持HTML 5的一些功能,而开发者们有望最终从那些Web插件中得到解脱。不过,需要指出的是,尽管一些重量级Web技术厂家,象Apple,Google,Mo...
分类:
Web程序 时间:
2015-04-25 19:36:18
阅读次数:
126
1、圆角效果1 .rec{2 border-radius:30px; 3 -moz-border-radius:30px;4 -webkit-border-radius:30px;5 }2、半透明效果1 .control{2 opacity:0.5;3 -mo...
分类:
其他好文 时间:
2015-04-25 15:06:21
阅读次数:
139