码迷,mamicode.com
首页 >  
搜索关键字:round floor ceil    ( 17505个结果
Math类,System.Math
public static double Round( double value,//要舍入的双精度浮点数。 int digits//返回值中的小数数字。)将双精度浮点值按指定的小数位数舍入。说明:由于用十进制数表示浮点数或对浮点数进行算术运算可能导致的误差,在某些情况下,Round(Double,...
分类:其他好文   时间:2014-06-29 14:30:54    阅读次数:222
Codeforces Round 239 Div 1
都怪自己太懒了 这段时间比赛参加了大部分,但是一直都没写题解,趁这几天没事,计划把这段时间的题解都补上。上一次比赛(248)终于升到了div1,所以从这次开始就开始写div1了。A. TriangleThere is a right triangle with legs of lengthaandb...
分类:其他好文   时间:2014-05-30 11:15:42    阅读次数:296
JS运动基础(二) 摩擦运动、缓冲运动
摩擦运动:逐渐变慢,最后停止缓冲运动:与摩擦力的区别:可以精确的停到指定目标点距离越远速度越大速度由距离决定速度=(目标值-当前值)/缩放系数Bug:速度取整值取整:iSpeed = iSpeed > 0 ? Math.ceil(iSpeed) : Math.floor(iSpeed); 1 2.....
分类:Web程序   时间:2014-05-29 23:36:27    阅读次数:414
杭电1050(贪心)
题目:The famous ACM (Advanced Computer Maker) Company has rented a floor of a building whose shape is in the following figure. The floor has 200 rooms e...
分类:其他好文   时间:2014-05-28 18:57:31    阅读次数:311
Aizu 2164 CSUOJ 1436 Revenge of the Round Table
dp套一个burnside的壳子核心还是dpdp[i]表示有i个循环节时的染色方案数注意在dp的时候,不需要考虑重构的问题因为burnside会解决重构的问题dpA[i][j]表示以A开头,长度为i,结尾为j个A的合法方案数dpB[i][j]表示以B开头,长度为i,结尾为j个A的合法方案数接下来我们...
分类:其他好文   时间:2014-05-26 17:02:49    阅读次数:314
杭电1313
Round and Round We GoTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 623Accepted Submission(s): 3...
分类:其他好文   时间:2014-05-26 14:45:27    阅读次数:243
uva 10673 Play with Floor and Ceil
Problem APlay with Floor and CeilInput:standard inputOutput:standard outputTime Limit:1 secondTheoremFor any two integersxandkthere exists two more in...
分类:其他好文   时间:2014-05-26 14:21:44    阅读次数:270
Codeforces Round #247 (Div. 2) C. k-Tree (dp)
题目链接题意:思路: 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 const int mo = 1000000000 + 7; 8 int dp[110][110][110]...
分类:其他好文   时间:2014-05-26 14:02:48    阅读次数:264
mysql 查询随机条记录的sql语句和php计算概率
最近在网上找了下mysql查询随机的几个sql,我把最终的记录下来。 SELECT * FROM uchome_mtag AS a JOIN (SELECT MAX(tagid) AS id FROM uchome_mtag) AS b ON (a.tagid>=FLOOR(b.id*RAND())...
分类:数据库   时间:2014-05-26 08:51:19    阅读次数:317
Codeforces Round #247 (Div. 2) ABC
Codeforces Round #247 (Div. 2)...
分类:其他好文   时间:2014-05-24 14:21:30    阅读次数:195
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!