分块,记录每个块内包括左端点的最大连续白段的长度,整个块内的最大连续白段的长度,和包括右端点的最大连续白段的长度。Because 是区间染色,所以要打标记。至于怎样在O(sqrt(n))的时间内找到最左的白色段呢?非常恶心…… 要考虑跨块的白段和块内的白段,并且顺序不能反。(代码中高亮的部分)这题完...
分类:
其他好文 时间:
2014-10-21 19:03:25
阅读次数:
254
I like to joke that I am who I am today because I did everything wrong in my 20's. I've always been fearless, and it often got me in trouble. I wasn't afraid to start
a business, borrow a bunch of m...
分类:
其他好文 时间:
2014-10-20 23:27:46
阅读次数:
577
安装xcode-select工具:xcode-select --install安装完成后应该就没问题了。参考:http://apple.stackexchange.com/questions/141072/cannot-install-macvim-7-4-on-os-x-maverick-10-9...
分类:
系统相关 时间:
2014-10-18 15:14:57
阅读次数:
224
事实上这个错误非常easy,就是当我们在国际化的时候,写key,写着写着就忘了加 ";" 所以查看一下自己的Localization文件就能够了
分类:
移动开发 时间:
2014-10-16 23:51:53
阅读次数:
264
I use Xcode6 GM. I encountered the same problem. What I did was to go to Build Options. Then I changed the value of the "Compiler for C/C++/Objective-...
分类:
其他好文 时间:
2014-10-16 17:29:52
阅读次数:
164
环境:centos6.5,mysql5.6.19问题:在用telnetl0.0.1.1203306数据库时,报错kHost‘l0.0.1.120‘isblockedbecauseofmanyconnectionerrors;unblockwith‘mysqladminflush-hosts‘Connectionclosedbyforeignhost.原因:是同一IP的connectionerrors超出默认的最大值了。解决方法1:重..
分类:
数据库 时间:
2014-10-16 05:16:32
阅读次数:
358
点击这里查看文章有空试试~~~唉。。。Ubuntu (Linux) on Atom Z3700 SeriesASUS Transformer Book T100 is particularly interesting platform, because some guys at XDA develo...
分类:
系统相关 时间:
2014-10-14 17:07:49
阅读次数:
304
What are you trying to say?(你到底想说什么?)Don't be silly.(别胡闹了。)How strong are your glasses?(你近视多少度?)Just because.(没有别的原因。)It isn't the way I hoped it woul...
分类:
其他好文 时间:
2014-10-13 18:22:01
阅读次数:
239
It is quite a basic problem. However I spent half an hour solving it and made two mistakes. Guess it's because I haven't written some fundamental data structures like linked list for a while and kind...
分类:
其他好文 时间:
2014-10-12 09:08:27
阅读次数:
176
Struts中报错the request was rejected because its size (***) exceeds the configured maximum (2097152)最新解决方案是在struts.xml中设置http://bioubiou.iteye.com/blog/1...
分类:
Web程序 时间:
2014-10-10 21:03:54
阅读次数:
166