码迷,mamicode.com
首页 >  
搜索关键字:min    ( 21007个结果
关于两个时间(00:00:00)相加的实现方法
timeList={"00:20:00","00:23:43"}; public static String getTotal(String[] timeList) { String timeString = null; int hour = 0; int min = 0; int sec = 0; for (int i = 0; i timeString = timeList...
分类:其他好文   时间:2014-11-17 17:52:59    阅读次数:151
three.js 源码注释(十二)Math/Box3.js
Box3对象的构造函数.用来在三维空间内创建一个立方体边界对象.Box3对象的功能函数采用 定义构造的函数原型对象来实现. NOTE:如果没有参数min,max将立方体边界初始化为Infinity,无穷大 用法: var min = new Vector3(0,0,0),max = new Vector3(1,1,1); var box = new Box3(min,max); 通过两个Vector3(三维向量)min,max创建一个立方体边界对象. Box3...
分类:Web程序   时间:2014-11-16 17:25:47    阅读次数:281
leetcode Min Stack
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top() -- Get ...
分类:其他好文   时间:2014-11-16 13:30:08    阅读次数:174
Min Stack
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack. pop() -- Remov...
分类:其他好文   时间:2014-11-15 23:12:56    阅读次数:193
BZOJ2100 [Usaco2010 Dec]Apple Delivery
水水更健康。。。话说回来,这真的是水题?T T首先,容易想到:令ans1 = t1为源,到s和t2的距离之和;ans2 = t2为源,到s和t1的距离之和ans = min(ans1, ans2)然后,开始写单元最短路。。。spfa。。。 1 /***************************...
分类:移动开发   时间:2014-11-15 22:57:44    阅读次数:364
BZOJ2101 [Usaco2010 Dec]Treasure Chest 藏宝箱
水水更健康。。。话说蒟蒻的noip爆炸了怎么办?←_←这道题裸的区间dp:f[i, j]表示当前取全了i到j之间的金币,最大值为多少于是f[i, j] = sum[i, j] - min(f[i + 1, j], f[i, j - 1])但是卡空间。。于是改一下方程:令len = j - i+ 1,...
分类:其他好文   时间:2014-11-15 20:02:38    阅读次数:296
three.js 源码注释(十一)Math/Box2.js
Box2对象的构造函数.用来在二维空间内创建一个二维矩形边界边界对象.Box2对象的功能函数采用 定义构造的函数原型对象来实现. NOTE:如果没有参数min,max将二维矩形边界初始化为Infinity,无穷大 three.js 源码注释(十一)Math/Box2.js 用法: var min = new Vector2(0,0),max = new Vector2(1,1); var box = new Box2(min,max); 通过两个Vector2(二维向量)min,max创建一个二维矩...
分类:Web程序   时间:2014-11-15 15:33:44    阅读次数:317
交换输出
描述输入n(n 2 3 int main(){ 4 int n; 5 int number[101]; 6 int i; 7 int min; 8 int flag; 9 int temp;10 11 while(1){12 ...
分类:其他好文   时间:2014-11-14 22:25:56    阅读次数:200
简单dp --- HDU1248寒冰王座
这道题也是简单dp里面的一种经典类型,递推式就是dp[i] = min(dp[i-150], dp[i-200], dp[i-350])代码如下: 1 #include 2 #include 3 using namespace std; 4 int dp[10010]; 5 int main() ....
分类:其他好文   时间:2014-11-14 15:29:02    阅读次数:296
LeetCode——Min Stack
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top() -- Get ...
分类:其他好文   时间:2014-11-13 20:50:45    阅读次数:197
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!