码迷,mamicode.com
首页 >  
搜索关键字:round    ( 15566个结果
Codeforces Round #280 (Div. 2) D
Codeforces Round #280 (Div. 2) D...
分类:其他好文   时间:2014-12-02 09:01:05    阅读次数:197
Codeforces Round #280 (Div. 2) C
Codeforces Round #280 (Div. 2) C...
分类:其他好文   时间:2014-12-02 08:59:47    阅读次数:201
CodeForces Round #280 (Div.2)
A. Vanya and Cubes题意:给你n个小方块,现在要搭一个金字塔,金字塔的第i层需要 个小方块,问这n个方块最多搭几层金字塔。分析:根据求和公式,有,按照规律直接加就行,直到超过n。 1 #include 2 3 int main() 4 { 5 int n; 6 ...
分类:其他好文   时间:2014-12-02 06:43:56    阅读次数:205
math 一些方法
1、向上进位取整。Math.Ceiling例如: Math.Ceiling(32.2)=33; Math.Ceiling(32.0)=32;2、向下舍位取整。Math.Floor例如: Math.Floor(32.6)=32;3、取指定位数的小数。Math.Round例如:Math.Round(36...
分类:其他好文   时间:2014-12-01 22:13:37    阅读次数:356
BestCoder Round #20 解题报告 A.B.C.
A题:who is the best? 题目地址:HDU 5123 水题。 哈希,然后枚举找最大的,从小的开始找。 代码如下: #include #include #include #include #include #include #include #include #include #include #include using namespace std;...
分类:其他好文   时间:2014-12-01 20:55:53    阅读次数:295
BestCoder Round #20 lines (模拟线段树的思想)
linesTime Limit: 5000/2500 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 787Accepted Submission(s): 194Problem Descrip...
分类:其他好文   时间:2014-12-01 12:48:41    阅读次数:216
Codeforces Round #278 (Div. 1) 解题报告
A题:Fight the Monster 枚举+二分 因为每个元素的数据范围只有100,所以可以用枚举,对于血量用二分,然后判断结果是否可行。 代码如下: #include #include #include #include #include #include #include #include #include #include #include using...
分类:其他好文   时间:2014-11-30 18:47:33    阅读次数:202
js中小数的操作及数字类型的验证
1.丢弃小数部分,保留整数部分js:parseInt(7/2)2.向上取整,有小数就整数部分加1js: Math.ceil(7/2)3,四舍五入. js: Math.round(7/2)4,向下取整js: Math.floor(7/2)附:如何判断输入的数值类型(使用时不带引号!)"^\\d+$" ...
分类:Web程序   时间:2014-11-30 16:45:19    阅读次数:165
hdu 5124 lines(Bestcoder Round #20)
lines                                                                Time Limit: 5000/2500 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)                                            ...
分类:其他好文   时间:2014-11-30 09:18:36    阅读次数:233
hdu 5123 who is the best?(Bestcoder Round #20)
who is the best?                                                                 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)                                ...
分类:其他好文   时间:2014-11-30 09:17:29    阅读次数:147
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!