数据类型整型:int(*) short long byte(0--255)小数:double(*) float decimal(精度高,小数位数多)布尔:bool(是/非)字符:char定义变量:数据类型 变量名 [= 值]; //[]内的值可写可不写例:int a =1;变量名的命名规则:1......
分类:
其他好文 时间:
2015-04-29 18:52:15
阅读次数:
90
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 a...
分类:
其他好文 时间:
2015-04-29 14:51:45
阅读次数:
99
INSERT INTO CC11 SELECT convert(nvarchar(30),convert(decimal(11,0),PCTID)),convert(nvarchar(30),convert(decimal(11,0),PCODE)) ,0 FROM CC1--convert(nva...
分类:
数据库 时间:
2015-04-28 20:44:17
阅读次数:
180
Repeating DecimalsThe decimal expansion of the fraction 1/33 is , where the is used to indicate that the cycle 03 repeats indefinitely with no interve...
分类:
其他好文 时间:
2015-04-28 15:52:54
阅读次数:
114
create database fruitgouse fruitgocreate table Fruit( Ids varchar(50) primary key, [Name] varchar(50) not null, Price decimal(8,2), Source varchar(50)...
分类:
其他好文 时间:
2015-04-27 21:20:43
阅读次数:
147
create database Fruitcreate table fruit(Ids varchar(50),Name varchar(50),Price decimal(18,2),Source varchar(50),Stack int,Numbers int,Image varchar(50...
分类:
其他好文 时间:
2015-04-27 12:53:00
阅读次数:
166
数值类型MySQL支持所有标准SQL数值数据类型,包括严格数值数据类型(INTEGER、SMALLINT、DECIMAL和NUMERIC),以及近似数值数据类型(FLOAT、REAL和DOUBLE PRECISION),除了这些还支持TINYINT、MEDIUMINT和BIGINT。这些类型的占用字...
分类:
数据库 时间:
2015-04-25 10:36:38
阅读次数:
159
F(x)
Time Limit: 1000/500 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2188 Accepted Submission(s): 827
Problem Description
For a decimal number x with...
分类:
其他好文 时间:
2015-04-24 22:44:29
阅读次数:
126
CREATE TEMPORARY TABLE test_info ( test_name VARCHAR(50) NOT NULL, test_totail DECIMAL(12,2) NOT NULL DEFAULT 0.00, test_avg DECIMAL(7,2) NOT...
分类:
数据库 时间:
2015-04-24 16:16:58
阅读次数:
149
注意有很多地方关于long 和int的处理比如赋值n, d判断是否应该是负数的时候如果写成long n = (long) numerator>0? numerator: -numerator;long d = (long) denominator>0? denominator:-denominato...
分类:
其他好文 时间:
2015-04-24 13:53:22
阅读次数:
125