2656: [Zjoi2012]数列(sequence) Description 小白和小蓝在一起上数学课,下课后老师留了一道作业,求下面这个数列的通项公式: 小白作为一个数学爱好者,很快就计算出了这个数列的通项公式。于是,小白告诉小蓝自己已经做出来了,但为了防止小蓝抄作业,小白并不想把公式公布出来 ...
分类:
其他好文 时间:
2017-03-07 16:51:01
阅读次数:
214
In this lesson, we'll look at how we can use Ramda's invoker and constructNfunctions to take methods of an object and turn them into reusable utility ...
分类:
其他好文 时间:
2017-03-07 16:44:04
阅读次数:
136
做UI过程中,经常会有对应父物体上面挂载相关脚本,脚本里面定义对应的UILabel、UISprite等,可开发过程中经常会遇到对应的Object拖动到了错误的位置,所以写了如下小工具,便于将物体快速,准确,无误的赋值到对应位置,注:字段名字必须和物体名字一致。 代码如下: 菜单栏中找到 CTool/ ...
分类:
编程语言 时间:
2017-03-07 15:13:03
阅读次数:
544
[263] Ugly Number [Easy] 一个数的质因子只有2,3,5就叫丑数,写个函数判断丑数。 1 //Author: Wanying 2 //注意 0 和 1 的corner case, 你居然还没一次AC== 3 //想好了再写,不然等着挂吧==!!!!! 4 class Solut ...
分类:
其他好文 时间:
2017-03-07 13:23:06
阅读次数:
189
总结: 1.判断当前元素是某个元素 2.可以用this.value代替val() 3.绑定事件,在keyup和focus中,用trigglerHandler绑定blur事件 ...
分类:
其他好文 时间:
2017-03-07 13:12:32
阅读次数:
156
0x00.说明 在Kali linux上开启恶意SMB服务 (Windows上自身445端口已被占用) 在另一台Win10上查看共享文件,触发mrxsmb20.sys文件漏洞致使计算机蓝屏 0x01.POC示例 Win10.py odict.py 0x02.参考链接 Exploit-db:https ...
1 2 3 4 63 64 65 People 66 67 Andy 68 jimy 69 lucy 70 lily 71 72 73 74 ... ...
分类:
Web程序 时间:
2017-03-07 10:46:09
阅读次数:
252
Given a binary array, find the maximum number of consecutive 1s in this array if you can flip at most one 0. Example 1: Note: The input array will onl ...
分类:
其他好文 时间:
2017-03-07 08:46:32
阅读次数:
260
if(nums.empty()) return 0 ; int len = nums.size(); int a = 1 ; for(int i=1;i<len;i++) { if(nums[i]!=nums[a-1]) { nums[a++] = nums[i]; } } return a; ...
分类:
编程语言 时间:
2017-03-07 08:14:31
阅读次数:
161