码迷,mamicode.com
首页 >  
搜索关键字:round    ( 15566个结果
Codeforces Round #282 (Div. 2)
也是几百年没做CF咯,这场还是赛后做的,退化很多啦A.Digital Counter找规律 可能有火柴棍丢失,问你可能组成的数字有多少种,只需要肉眼看看每个数字填上火柴棍可能形成的数字,打个表就行了#include #include using namespace std;const int pos...
分类:其他好文   时间:2014-12-18 01:31:49    阅读次数:234
postgresql中to_char和round的混合使用
在postgresql中大家都用过round吧,当遇到小数的时候该如何显示呢?看例子 SELECT?to_char(round(127?*?0.1?/?67543,6)*10000,‘90.99‘) 1.88 SELECT?to_char(round(127?*?0.1?/?67543,6)*10000,‘90.00...
分类:数据库   时间:2014-12-18 00:26:31    阅读次数:236
Oracle的取整和四舍五入函数——floor,round,ceil,trunc使用说明
Oracle的取整和四舍五入函数——floor,round,ceil,trunc使用说明FLOOR——对给定的数字取整数位SQL> select floor(2345.67) from dual;FLOOR(2345.67)--------------2345CEIL-- 返回大于或等于给出数字的最...
分类:数据库   时间:2014-12-17 12:31:18    阅读次数:247
Codeforces Round #282 (Div. 2) c
/** ?*?@brief?Codeforces?Round?#282?(Div.?2)?c ?*?@file?c.cpp ?*?@author?mianma ?*?@created?2014/12/16?16:09 ?*?@edited??2014/12/16?16:09 ?*?@type?math ?*?@note ?*/ #i...
分类:其他好文   时间:2014-12-16 17:18:31    阅读次数:183
oracle中的一些函数笔记
replace函数replace(最长的字符串,被替换的字符串,替换字符串)数学函数round(n,[m]) 保留m位总共n位长度的数,采用四舍五入的方式。trunc(n,[m])截取数字,不写是直接截取到整数位。mod(m,n)取模函数floor(n)小于等于n的最大函数ceil(n)大于等于n的...
分类:数据库   时间:2014-12-16 16:37:55    阅读次数:197
Codeforces Round #275 (Div. 2) c
/** ?*?@brief?Codeforces?Round?#275?(Div.?2)?c ?*?@file?c.cpp ?*?@author?面码 ?*?@created?2014/12/10?16:54 ?*?@edited??2014/12/10?16:54 ?*?@type??math ?* ?*/ #include?...
分类:其他好文   时间:2014-12-15 17:30:26    阅读次数:156
Codeforces Round #282 (Div. 2) b
/** ?*?@brief?Codeforces?Round?#282?(Div.?2)?b ?*?@file?b.cpp ?*?@author?mianma ?*?@created?2014/12/15?9:55 ?*?@edited??2014/12/15?9:55 ?*?@type?math ?*?@note ?*/ #inc...
分类:其他好文   时间:2014-12-15 15:36:40    阅读次数:163
Codeforces Round #282 (Div. 2) a
/** ?*?@brief?Codeforces?Round?#282?(Div.?2)?a ?*?@file?a.cpp ?*?@author?mianma ?*?@created?2014/12/15?9:55 ?*?@edited??2014/12/15?9:55 ?*?@type?math ?*?@note ?*/ #inc...
分类:其他好文   时间:2014-12-15 12:20:23    阅读次数:184
Obsessive String
Codeforces Round #282 (Div. 1) B. Obsessive String题目:链接解题思路:先用kmp找到所有的匹配点,时间复杂度O(n)用dp[i]表示i是bk(题中的)时,字符串前i个字符的子串中的满足条件的总数定义dp2[i]是前i个dp[i]的和,dp3[i]是前...
分类:其他好文   时间:2014-12-15 11:59:12    阅读次数:174
web学习日记9
终于结束了oracle考试,能缓两天。赶快拿起书,上网再学习。Math对象属性:E、LN2、LN10、LOG2E、LOG10E、PI、SORT_2、SORT2方法:向上取整ceil(); 向下取整floor();四舍五入round();随机数random();Array对象数组连接:concat(a...
分类:Web程序   时间:2014-12-12 23:34:23    阅读次数:192
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!