An integer literal may be expressed in decimal (base 10), hexadecimal (base 16), octal (base 8), or binary (base 2). 十六进制以 0x开头 八进制以0开头 无二进制数字 值以10进制表 ...
分类:
编程语言 时间:
2016-08-05 19:27:41
阅读次数:
181
Description A number is called quasibinary if its decimal representation contains only digits 0 or 1. For example, numbers 0, 1, 101, 110011 — are qua ...
分类:
其他好文 时间:
2016-08-04 23:14:17
阅读次数:
223
K-wolf Number Problem Description Alice thinks an integer x is a K-wolf number, if every K adjacent digits in decimal representation of x is pairwised ...
分类:
其他好文 时间:
2016-08-04 19:22:41
阅读次数:
215
值类型 :顾名思义就是在内存中储存其值的类型,是存放于堆栈中的类型,13个{sbyte,byte,short,ushort,int,uint,long,ulong,float,double,decimal,bool,char} 引用类型 :在内存中存放的是对其的引用地址,是存放于托管堆中的类型,2个 ...
分类:
其他好文 时间:
2016-08-04 01:27:23
阅读次数:
176
一.数值类型 Mysql支持所有标准SQL中的数值类型,其中包括严格数据类型(INTEGER,SMALLINT,DECIMAL,NUMBERIC),以及近似数值数据类型(FLOAT,REAL,DOUBLE PRESISION),并在此基础上进行扩展。 扩展后增加了TINYINT,MEDIUMINT, ...
分类:
数据库 时间:
2016-08-03 15:16:54
阅读次数:
199
sql,str(),len(), ROW_NUMBER()OVER(), ROUND ,union ,DateDiff(),datepart(), cast(),dateadd(),charindex(), substring(),decimal(),right(),取整函数,convert(), ... ...
分类:
数据库 时间:
2016-07-31 13:05:54
阅读次数:
272
DescriptionGiven a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You may assume that n is not greater than 200...
分类:
其他好文 时间:
2016-07-30 10:39:26
阅读次数:
106
decimal 128bit大小 有效数字:28~29,虽然decimal类型有比浮点类型更高的精度,但它的范围更小。故double转decimal有可能发生溢出错误,此外,decimal的计算速度稍微慢一些。 Console.WriteLine(1.618031234567895); 输出结果:1 ...
题意:给出分子和分母,用字符串表示结果,循环的部分用“()”括起来。 思路: 模拟笔算, 最初根据1/99的情况,设想用path记录余数相同时的间隔步长,但只能用于处理(00..0n)的情况,其中n为[1,9]; 后来采取网上看到用map记录<余数,出现位置>的想法。 通过判断map中key是否重复 ...
分类:
其他好文 时间:
2016-07-24 20:56:10
阅读次数:
190
最近做项目时将decimal定义成了decimal(5,2),然后等到最大的结果都是999.99,找了很多地方找不出bug在哪里插入很更新的数据都是正确的而结果却都是999.99,最后才知道decimal括号内参数的意义 decimal(5,2)5是定点精度,2是小数位数。decimal(a,b)a ...
分类:
数据库 时间:
2016-07-24 10:27:27
阅读次数:
234