码迷,mamicode.com
首页 >  
搜索关键字:shell time expr wait    ( 86807个结果)
【leetcode】Climbing Stairs
问题: You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top? 分析: 该问题是符合斐波那契数列的,具体...
分类:其他好文   时间:2014-06-10 08:19:31    阅读次数:194
HDU 1073 Online Judge
Online Judge Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 4977    Accepted Submission(s): 1889 Problem Description Ignatius is b...
分类:其他好文   时间:2014-06-10 08:15:02    阅读次数:214
hdu 2086 A1 = ?
A1 = ? Time Limit: 5000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 4682    Accepted Submission(s): 2990 Problem Description 有如下方程:Ai = (Ai-1 + Ai...
分类:其他好文   时间:2014-06-10 08:07:18    阅读次数:145
设计模式 - 命令模式(command pattern) 详解
命令模式(command pattern) 详解本文地址: http://blog.csdn.net/caroline_wendy命令模式(command pattern) : 将请求封装成对象, 以便使用不同的请求\队列\日志来参数化其他对象.命令模式也可以支持撤销操作.简单的命令模式的实现:1. 具体的类, 每一个类都有特定的方法:/** * @time 2014年6月9日 */ pack...
分类:其他好文   时间:2014-06-10 08:01:53    阅读次数:203
Linux 获取登录者IP
在linux中有时需要获得登录者的IP,这里有两种方法,先使用who am i 获取登录IP,然后截取字符串: 1、awk截取,sed替换 who am i | awk '{print $5}' | sed 's/(//g' | sed 's/)//g' 2、cut 截取 who am i|cut -d\( -f2|cut -d\) -f1 使用方法,若在脚本中如.bashrc中,可...
分类:系统相关   时间:2014-06-10 07:49:49    阅读次数:320
【leetcode】First Missing Positive
Given an unsorted integer array, find the first missing positive integer. For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2. Your algorithm should run in O(n) time and uses constant...
分类:其他好文   时间:2014-06-10 07:42:16    阅读次数:244
Climbing Stairs
题目 You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top? 方法 从后往前求解...
分类:其他好文   时间:2014-06-10 07:38:21    阅读次数:171
bzoj 1076: [SCOI2008] 奖励关 题解
【原题】 1076: [SCOI2008]奖励关 Time Limit: 10 Sec  Memory Limit: 162 MB Submit: 684  Solved: 403 [Submit][Status] Description 你正在玩你最喜欢的电子游戏,并且刚刚进入一个奖励关。在这个奖励关里,系统将依次随机抛出k次宝物,每次你都可以选择吃或者不吃(必须在抛出下...
分类:其他好文   时间:2014-06-10 07:21:58    阅读次数:381
hdu 1978 How many ways
How many ways Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2594    Accepted Submission(s): 1528 Problem Description 这是一个简单的生存游戏,你控...
分类:其他好文   时间:2014-06-10 07:05:49    阅读次数:188
hdu2993之斜率dp+二分查找
MAX Average Problem Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 5825    Accepted Submission(s): 1446 Problem Description Consid...
分类:其他好文   时间:2014-06-10 06:09:25    阅读次数:293
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!