码迷,mamicode.com
首页 >  
搜索关键字:recurring decimal    ( 1394个结果
D - F(x)
For a decimal number x with n digits (A nA n 1A n 2 ... A 2A 1), we define its weight as F(x) = A n 2 n 1 + A n 1 2 n 2 + ... + A 2 2 + A 1 1. Now you ...
分类:其他好文   时间:2018-08-14 22:51:28    阅读次数:231
PAT 甲级 1010 Radix (25)(25 分)(听说要用二分,我没AC,之后再改)
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 ...
分类:其他好文   时间:2018-08-13 20:43:49    阅读次数:391
sql的数据类型
SQLServer 提供了 25 种数据类型: ·Binary [(n)] ·Varbinary [(n)] ·Char [(n)] ·Varchar[(n)] ·Nchar[(n)] ·Nvarchar[(n)] ·Datetime ·Smalldatetime ·Decimal[(p[,s])] ...
分类:数据库   时间:2018-08-13 19:42:59    阅读次数:176
Light oj 1140 How Many Zeroes?
Jimmy writes down the decimal representations of all natural numbers between and including m and n, (m ≤ n). How many zeroes will he write down? Input ...
分类:其他好文   时间:2018-08-10 11:01:02    阅读次数:187
计算两个经纬度之间的距离
//计算两个经纬度之间的距离function getDistance($longitude1, $latitude1, $longitude2, $latitude2, $unit=2, $decimal=2){ $EARTH_RADIUS = 6370.996; // 地球半径系数 $PI = 3 ...
分类:其他好文   时间:2018-08-08 15:01:38    阅读次数:132
sql 保留2位小数
2.176544保留两位小数 1.select Convert(decimal(18,2),2.176544) 结果:2.18 2.select Round(2.176544,2) 结果:2.180000 2.176544保留两位小数 1.select Convert(decimal(18,2),2 ...
分类:数据库   时间:2018-08-06 18:30:05    阅读次数:192
Small Multiple
题目描述 Find the smallest possible sum of the digits in the decimal notation of a positive multiple of K.Constraints2≤K≤105K is an integer. 输入 Input is g ...
分类:其他好文   时间:2018-08-04 20:38:42    阅读次数:184
HDU 2106 decimal system
http://acm.hdu.edu.cn/showproblem.php?pid=2106 Problem Description As we know , we always use the decimal system in our common life, even using the co ...
分类:其他好文   时间:2018-08-03 01:05:38    阅读次数:173
MYSQL中,CAST函数的使用规则
CAST函数语法规则是:Cast(字段名 as 转换的类型 ),其中类型可以为: CHAR[(N)] 字符型 DATE 日期型DATETIME 日期和时间型DECIMAL float型SIGNED intTIME 时间型 实例1: 这里date对应日期,time对应时间 ...
分类:数据库   时间:2018-07-30 20:24:41    阅读次数:516
MySQL基础
数据完整性 字段类型 数字:int,decimal 字符串:char,varchar,text 日期:datetime 布尔: bit 约束(物理上存储数据按照主键,不是按照唯一) 主键:primary key 非空:not null 唯一:unique 默认:default 外键:foreign ...
分类:数据库   时间:2018-07-28 20:33:38    阅读次数:147
1394条   上一页 1 ... 34 35 36 37 38 ... 140 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!