The task is simple: given any positive integer N, you are supposed to count the total number of 1's in the decimal form of the integers from 1 to N. F...
分类:
其他好文 时间:
2015-02-20 11:53:35
阅读次数:
249
(1)数据类型类型备注tinyint/smallint/mediumint/int/bigint1B/2B/3B/4B/8Bfloat/double单精度/双精度浮点型decimal不会产生精度丢失的单精度/双精度浮点型date日期类型time时间类型datetime/TimeStamp日期时间类型...
分类:
数据库 时间:
2015-02-18 22:06:29
阅读次数:
358
Drazil is playing a math game with Varda.Let’s define for positive integer x as a product of factorials of its digits. For example, .First, they choose a decimal number a consisting of n digits that co...
分类:
其他好文 时间:
2015-02-18 13:02:15
阅读次数:
103
The difference of 0 & '0' & '\0'
------------------------------------------------------------
0 is a number(decimal).
------------------------------------------------------------
'0' is a char. It...
分类:
其他好文 时间:
2015-02-18 11:52:47
阅读次数:
104
Drazil is playing a math game with Varda.
Let’s define for positive integer x as a product of factorials of its digits. For example, .
First, they choose a decimal number a consisting of n digits that contain...
分类:
其他好文 时间:
2015-02-18 06:13:14
阅读次数:
172
Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is "yes", if 6 is a decimal number and 110 is...
分类:
其他好文 时间:
2015-02-17 12:53:45
阅读次数:
155
http://acm.hdu.edu.cn/showproblem.php?pid=4734
Problem Description
For a decimal number x with n digits (AnAn-1An-2 ... A2A1), we define its weight as F(x) = An * 2n-1 + An-1 * 2n-2 + ... + A2...
分类:
其他好文 时间:
2015-02-16 23:30:52
阅读次数:
352
原题地址:https://oj.leetcode.com/problems/repeated-dna-sequences/题目内容:All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for ex...
分类:
其他好文 时间:
2015-02-15 11:53:05
阅读次数:
232
定义变量 LET a输入变量值 INPUT a INPUT a,b运算结果绝对值小于1前面的0省略,科学计数PRINT语句 数值直接写,字符串用“” 通过 分号; 和 逗号,来分隔显示两个项目 PRINT语句后自动换行,如不需要换行加; 插入独立的PRINT自动换行FOR…NEXT循环FOR ...
分类:
其他好文 时间:
2015-02-12 09:14:33
阅读次数:
149
1.SQL SERVER中的FLOAT转换为VARCHARSELECT CAST(CAST(字段 AS DECIMAL(20,7)) AS VARCHAR(20)) FROM 要查的表或者 SELECT CONVERT(VARCHAR(20),CONVERT(DECIMAL(20,7),字段)) F...
分类:
数据库 时间:
2015-02-12 09:11:40
阅读次数:
162