码迷,mamicode.com
首页 >  
搜索关键字:time    ( 52982个结果
hdu4691---Front compression(后缀数组+RMQ)
Front compression Time Limit: 5000/5000 MS (Java/Others) Memory Limit: 102400/102400 K (Java/Others) Total Submission(s): 1490 Accepted Submission(s): 553Problem Description Front compression...
分类:编程语言   时间:2015-04-18 14:37:41    阅读次数:182
天题系列:Best Time to Buy and Sell Stock III
public class Solution { public int maxProfit(List prices) { // http://blog.csdn.net/linhuanmars/article/details/23236995 if(prices==n...
分类:其他好文   时间:2015-04-18 14:22:49    阅读次数:141
[编程之美]资格赛 B Palindrome
既然这个是资格赛,  时间也比较充裕, 我就讲解一下我做题的过程 Time Limit:2000ms Case Time Limit:1000ms Memory Limit:256MB Description Given a string, calculate the number of subsequences that are palindrome. ...
分类:其他好文   时间:2015-04-18 13:10:38    阅读次数:162
(KMP 1.3)hdu 2087 剪花布条(求文本串中有几个模式串)
题目:剪花布条Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 10380    Accepted Submission(s): 6684Problem Description一块花布条,里面有些图案,另有一块直接可用的小饰条,里面也有一些图...
分类:其他好文   时间:2015-04-18 13:07:45    阅读次数:141
Pow(x, n)
Implement pow(x,n).Analyse: To avoid exceeding time, first consider the basic situation, see line5~11; then set some precision s.t. when the differenc...
分类:其他好文   时间:2015-04-18 12:55:36    阅读次数:137
hdu546饭卡(01背包)
饭卡Time Limit: 5000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 14476Accepted Submission(s): 5032Problem Descrip...
分类:其他好文   时间:2015-04-18 12:49:56    阅读次数:142
Best Time to Buy and Sell Stock
这几道题最好连着做public class Solution { public int maxProfit(List prices) { if(prices==null||prices.size()==0) return 0; int len =prices.siz...
分类:其他好文   时间:2015-04-18 12:47:41    阅读次数:94
hdoj 1004 Let the Balloon Rise(模拟 || 字典树)
Let the Balloon Rise http://acm.hdu.edu.cn/showproblem.php?pid=1004 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 84401    Accepted Subm...
分类:其他好文   时间:2015-04-18 11:37:16    阅读次数:125
hdoj 1251 统计难题(经典字典树)
Let the Balloon Rise Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 84414    Accepted Submission(s): 31834 Problem Descriptio...
分类:其他好文   时间:2015-04-18 11:34:20    阅读次数:127
golang 原子计数,互斥锁,耗时
import "sync"import "sync/atomic"import "time"import "runtime"1.runtime.Gosched()表示让CPU把时间片让给别人,下次某个时候继续恢复执行该goroutine,自己一般是阻塞了,这是一个很高级的sleep,我们经常会遇到要...
分类:其他好文   时间:2015-04-18 11:25:50    阅读次数:266
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!