码迷,mamicode.com
首页 >  
搜索关键字:floor    ( 1864个结果
sql产生随机数
使用RAND(),结果是类似于这样的随机小数:0.615942003695649SELECTFLOOR(RAND()*N)---生成的数是这样的:12.0SELECTCAST(FLOOR(RAND()*N)ASINT)---生成的数是这样的:12SELECTCEILING(RAND()*N)---生...
分类:数据库   时间:2014-07-31 12:17:06    阅读次数:227
HDU 1015 Safecracker
Problem Description === Op tech briefing, 2002/11/02 06:42 CST ===  "The item is locked in a Klein safe behind a painting in the second-floor library. Klein safes are extremely rare; most of them,...
分类:其他好文   时间:2014-07-27 23:55:39    阅读次数:391
UVA - 10673 Play with Floor and Ceil
题目来源:http://vjudge.net/problem/viewProblem.action?id=19592扩展欧几里得方程: ax+by=gcd(a,b)一定有解 把a=floor(x/k);b=ceil(x/k);floor,ceil分别为向下取余和向上取余。 ...
分类:其他好文   时间:2014-07-27 09:49:22    阅读次数:297
贪心 没什么可以说的,还是要注意细节
Moving TablesThe famous ACM (Advanced Computer Maker) Company has rented a floor of a building who...
分类:其他好文   时间:2014-07-26 14:22:30    阅读次数:263
JS比较好用的一些方法搜集
JS比较好用的一些方法搜集Math.ceil(x)-- 返回大于等于数字参数的最小整数(取整函数),对数字进行上舍入Math.floor(x)--返回小于等于数字参数的最大整数,对数字进行下舍入 join() 例:var a = ["a","b","c"]; 若要输出"a,b,c" 需要...
分类:Web程序   时间:2014-07-23 14:46:16    阅读次数:325
(39)JS运动之缓冲运动
基本思路:使用定时器让物体向右运动,在运动的过程中再不是匀速运动,而是先快后慢,但是到达终点的时候,必须注意要使用向上取整函数Math.ceil()和向下取整函数Math.floor();这样才能够正确无误地到达终点,而不是有出入。 #div1{ width:100px; height:100px; background:red; position:ab...
分类:Web程序   时间:2014-07-23 13:36:26    阅读次数:224
HDU1548——A strange lift(最短路径:dijskstra算法)
A strange liftDescriptionThere is a strange lift.The lift can stop can at every floor as you want, and there is a number Ki(0 2 #include 3 #include 4....
分类:Web程序   时间:2014-07-22 22:36:54    阅读次数:329
FZU 2156 Climb Stairs
Problem 2156 Climb Stairs  Problem Description Jason lives on the seventh floor. He can climb several stairs at a time, and he must reach one or more specific stairs before he arrives home becau...
分类:其他好文   时间:2014-07-22 14:36:28    阅读次数:211
Python学习笔记
Python学习笔记 1.基础知识 · 用于实现整除的操作符:// · 幂运算符:** · Python中变量没有类型。类型的强制转换使用函数int(32.9);而C中强制转换使用(int)32.9 · round():将浮点数四舍五入;floor():向下取整;ceil():向上取整 · 跨多行的...
分类:编程语言   时间:2014-07-22 00:13:37    阅读次数:393
向上向下取整、舍入
向下取整 floor (地板) import?math math.floor(-2.2) #?-3.0 math.floor(2.2) #?2.0 向上取整 ceil (天花板) import?math? math.ceil(-2.2) #?-2.0 math.ceil(2.2) #?3.0 舍入 round round(2.24,?1) ...
分类:其他好文   时间:2014-07-21 10:24:47    阅读次数:209
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!