Rank of Tetris
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 5428 Accepted Submission(s): 1520
Problem Description
自从Lele开发了Ra...
分类:
其他好文 时间:
2014-11-19 01:00:10
阅读次数:
232
原文:http://www.itzhai.com/jquery-plug-in-the-preparation-of-related-technical-design-summary-and-best-practices.html1、声明插件名称:添加一个函数到jQuery.fn(jQuery.pr...
分类:
Web程序 时间:
2014-11-15 18:29:36
阅读次数:
224
Rank of TetrisTime Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5415Accepted Submission(s): 1514Prob...
分类:
编程语言 时间:
2014-11-13 10:50:15
阅读次数:
272
Put your desired settings in the~/.vimrcfile -- See below for some guidelines and best practices.There are four main ways to use tabs in Vim:Always ke...
分类:
编程语言 时间:
2014-11-12 22:56:12
阅读次数:
318
题目链接:poj 1699 Best Sequence
题目大意;给定N个DNA序列,问说最少多长的字符串包含所有序列。
解题思路:AC自动机+状压DP,先对字符串构造AC自动机,然后在dp[s][i]表示匹配了s,移动到节点i时候的最短步数。
#include
#include
#include
#include
#include
#include
using nam...
分类:
其他好文 时间:
2014-11-11 22:52:22
阅读次数:
288
http://www.nowamagic.net/librarys/eight/posts/2444聪明人会做什么傻事?那可有不少。我来列举几个我觉得聪明人最爱做的傻事:忽略设计和风格的重要性—— 当 iPod 刚刚面世时,技术派们鄙视它功能少、价钱高 (“谁在乎个 MP3 啊,我去 Best Bu...
分类:
其他好文 时间:
2014-11-11 17:57:39
阅读次数:
324
本题是Best Time to Buy and Sell Stock/的改进版。
本题中,可以买最多买进卖出两次股票。
买两次股票可以看成是第0~i天买进卖出以及第i+1~n-1天买进卖出两部分。这要枚举i并求出0th~ith的最大利益与(i+1)th~(n-1)th的最大利益之和的最大值就是买进卖出两次可以得到的最大利益。即状态转移方程:
dp[0,n-1]=max{dp[0,k]+dp[...
分类:
其他好文 时间:
2014-11-10 23:22:55
阅读次数:
282
转贴:https://10up.github.io/Engineering-Best-Practices/javascript/#performancePerformanceWriting performant code is absolutely critical. Poorly written ...
分类:
Web程序 时间:
2014-11-10 17:35:57
阅读次数:
295
Web 站点提速的最佳实践(Best Practices for Speeding Up Your Web Site)...
分类:
Web程序 时间:
2014-11-10 15:38:09
阅读次数:
350
height[i] 表示排名第i的后缀和排名第i-1的后缀的最长公共前缀,也即sa[i]与sa[i-1]的最长公共前缀。1、给定一个字符串,询问任意两个后缀的最长公共前缀,假设询问suffix(i)和suffix(j)的最长公共前缀,且rank[i] =k的分为一组,这样组内,任意两个后缀重复长度才...
分类:
编程语言 时间:
2014-11-09 11:07:20
阅读次数:
269