①判断是否是整数!function isInteger(obj) {return typeof obj === 'number' && obj%1 === 0}
分类:
Web程序 时间:
2014-07-16 18:54:20
阅读次数:
226
IEEE二进制浮点数算术标准(IEEE 754)是20世纪80年代以来最广泛使用的浮点数运算标准,为许多CPU与浮点运算器所采用。这个标准定义了表示浮点数的格式(包括负零-0)与反常值(denormal number)),一些特殊数值(无穷(Inf)与非数值(NaN)),以及这些数值的“浮点数运算符...
分类:
其他好文 时间:
2014-07-16 18:45:57
阅读次数:
264
Letter Combinations of a Phone NumberGiven a digit string, return all possible letter combinations that the number could represent.A mapping of digit ...
分类:
其他好文 时间:
2014-07-16 17:54:24
阅读次数:
222
题目询问第K大的数//这是我最初的想法,用multiset,AC了——好吧,也许是数据弱也有可能//multiset运用——不去重,边插入边排序//iterator的运用,插入的时候,如果是相同的数没直接放在相同的现有的数据后面的#include#include#include#includeusi...
分类:
其他好文 时间:
2014-07-16 17:52:06
阅读次数:
262
1:libref必须小于等于8个字符,以字母或下划线开始,只能包括字母,下划线和数字。2:sas数据集的列名默认用变量的label,如果没有label就用变量名替代。3:sas假定外部文件的record lenght只有256The record length is the number of ch...
分类:
其他好文 时间:
2014-07-16 17:50:29
阅读次数:
506
题目如下:
Don't Get Rooked
In chess, the rook is a piece that can move any number of squaresvertically or horizontally. In this problem we will consider smallchess boards (at most ...
分类:
其他好文 时间:
2014-07-16 10:16:07
阅读次数:
254
Matrix
Time Limit: 3000MS
Memory Limit: 65536K
Total Submissions: 17766
Accepted: 6674
Description
Given an N*N matrix A, whose elements are either 0 or 1. A[i, j] ...
分类:
其他好文 时间:
2014-07-15 12:24:44
阅读次数:
319
strip删除-g生成的程序调试连接表的信息对于可执行文件,使用命令strip之后,体积只有原来的九分之一strip命令ThestripcommandremovesthesymboltableSHT_SYMTABanditsassociatedstringtable,debugginginformation,andlinenumberinformationfromELFobjectfiles.Thatis,besidesth..
分类:
其他好文 时间:
2014-07-15 10:54:43
阅读次数:
477
int isPrime( int number ) { int ret=1; //先标记为“是1”素数,如果下面发现不是,再标记为“不是0” if( number<2 ){ //小于2的整数都不是素数 ret = 0; } else if( number == 2 ){ // 2是素数 ret .....
分类:
其他好文 时间:
2014-07-15 10:07:55
阅读次数:
185
安装准备
(1)确认系统版本、内核版本
# oslevel –r //查看操作系统版本
//-08可以安装10g,-09可以安装11g
# prtconf |more //打印硬件配置信息
System Model: IBM,7028-6C4
Machine Serial Number: 10681AA
Processor Type: PowerPC_PO...
分类:
数据库 时间:
2014-07-14 18:21:51
阅读次数:
454