原题地址n!含有多少个因子10,则结尾有多少个010=2*5,而2的个数肯定比5多,所以n!含有多少个因子5,则结尾有多少个0如何计算n!有多少个因子5呢?比如n=13,则:n! = 13 * 12 * 11 * 10 * 9 * 8 * 7 * 6 * 5 * 4 * 3 * 2 * 1 ...
分类:
其他好文 时间:
2015-01-26 13:19:33
阅读次数:
182
netty的引用计数文档看http://netty.io/wiki/reference-counted-objects.html为什么会引用引用计数呢,Java中不是有gc线程帮我们回收对象吗?我个人理解如下1:netty为了实现zero copy使用了Direct Buffer,该buffer从N...
分类:
Web程序 时间:
2015-01-25 23:47:56
阅读次数:
246
//人物方向和判断点击事件加点击特效usingUnityEngine;usingSystem.Collections;publicclassplayerDir:MonoBehaviour{publicGameObjecteffect_click_prefab;privateboolisMoving=false;//鼠标是否被按下publicVector3targetPosition=Vector3.zero;//目标位置privatePlayerMovep..
分类:
移动开发 时间:
2015-01-25 06:33:45
阅读次数:
485
题目链接:点击打开链接
Description
Give a positive number, count the sum of the distinct subsequence of it, moreover, any subsequence should not contain leading zeroes except it is zero.
...
分类:
其他好文 时间:
2015-01-24 20:08:06
阅读次数:
240
网络抽象层单元类型 (NALU):NALU头由一个字节组成,它的语法如下: +---------------+ |0|1|2|3|4|5|6|7| +-+-+-+-+-+-+-+-+ |F|NRI| Type | +---------------+F: 1个比特. forbidden_zero_bi...
分类:
其他好文 时间:
2015-01-24 10:05:53
阅读次数:
183
cmp(compare)指令进行比较两个操作数的大小例:cmp oprd1,oprd2为第一个操作减去第二个操作数,但不影响第两个操作数的值它影响flag的CF,ZF,OF,AF,PF我们怎么判断大小呢?若执行指令后ZF=1 这个简单,则说明两个数相等,因为zero为1说明结果为0当无符号时:若 C...
分类:
其他好文 时间:
2015-01-23 18:05:36
阅读次数:
240
1、首先,用拥有ROOT权限的用户登入到系统,进行创建swap分区dd if=/dev/zero of=/swap/swap bs=1024 count=1024000if //输入of //输出bs //块儿大小count //总大小2、创建Linux交换文件mkswap /swap/swap3、...
分类:
系统相关 时间:
2015-01-23 10:47:13
阅读次数:
255
1. 建立一个大型档案
# dd if=/dev/zero of=/home/loopdev
bs=1M count=512
if : input file
/dev/zero是会一直输出0的装置
of : output file
bs是每个block大小
count是总共有多少个bs
屏幕输出:
512+0 records in
//读入512笔资料
512...
分类:
系统相关 时间:
2015-01-22 23:25:49
阅读次数:
470
Implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the entire input...
分类:
其他好文 时间:
2015-01-22 18:08:59
阅读次数:
145
在ie中window.clipboardData(剪切板对象)是可以被获取,所以利用这个方法我们可以实现在IE当中复制粘贴的功能,demo如下! clipboard 上述代码在IE中访问是可以实现复制粘贴的!但是其他浏览器并不被支持!于是找了下资料...
分类:
Web程序 时间:
2015-01-22 15:00:12
阅读次数:
208