题意:这种所有边都是垂直或水平的多边形,可以用一个字符串来表示,一个270°的内角记作O,一个90°的内角记作R。如果多边形内存在一个点,能看到该多边形所有的点,则这个多边形对应的序列是合法的。这里长度不作限制,只要长度适当能满足要求即可。现给出序列长度,问有多少种序列符合要求。分析:书上分析地很清...
分类:
其他好文 时间:
2015-03-06 23:33:21
阅读次数:
246
kali root用户是英文界面的怎么改成中文界面_linux吧_百度贴吧dpkg-reconfigure locales 选择字符编码:en_US.UTF-8、zh_CN.GBK、zh_CN.UTF-8选择字符:zh_CN.UTF-8(记得用空格)修改 /etc/default/locale LA...
分类:
系统相关 时间:
2015-03-06 18:44:31
阅读次数:
598
什么是Lambda?
C++ 11加入了一个非常重要的特性——Lambda表达式。营里(戴维营)的兄弟都对Objective-C很熟悉,许多人多block情有独钟,将各种回调函数、代理通通都用它来实现。甚至有人选择用FBKVOController、BlocksKit等开源框架将KVO、控件事件处理都改为通过block解决。原因就是简单、方便、直观,函数的定义和使用出现在同一个地方。这里的La...
分类:
编程语言 时间:
2015-03-06 15:54:12
阅读次数:
191
测试url:http://190.196.67.252:9200/_search?prettyhttp://191.234.18.14:9200///_search?prettyPOST提交{“size”:1,”script_fields”: {“iswin”: {“script”:”java.la...
分类:
其他好文 时间:
2015-03-06 09:38:46
阅读次数:
195
HT For Web?的HTML5拓扑图组件graphView背景设置有多种途径可选择: divBackground:通过css设置graphView对应的div背景 Painter:通过graphView.addBottomPainter(function(g, ? ? ?rect){…})来绘制背景 La...
分类:
Web程序 时间:
2015-03-06 06:29:17
阅读次数:
197
3026 - Period
Time limit: 3.000 seconds
For each prefix of a given string S with N characters (each character has an ASCII code between 97 and 126, inclusive), we want to know whether the prefi...
分类:
编程语言 时间:
2015-03-05 22:23:08
阅读次数:
173
3942 - Remember the Word
Time limit: 3.000 seconds
Neal is very curious about combinatorial problems, and now here comes a problem about words. Knowing that Ray has a photographic memory an...
分类:
其他好文 时间:
2015-03-03 18:34:40
阅读次数:
151