这题 一定要好好读题啊 不能走马观花...Mirko overheard in the car that one of the roads is under repairs, and that it is blocked, but didn't konw exactly which road---有...
分类:
其他好文 时间:
2014-09-09 11:58:18
阅读次数:
256
Ahypervisorcalculates the total number of processor cycles (the number of processor cycles of one or more physical processors) in a first length of ti...
分类:
其他好文 时间:
2014-09-09 11:47:48
阅读次数:
320
A system and method for providing dynamic device virtualization is herein disclosed. According to one embodiment, the computer-implemented method incl...
分类:
其他好文 时间:
2014-09-09 11:31:58
阅读次数:
265
Best Time to Buy and Sell Stock
Say you have an array for which the ith element is the price of a given stock on day i.
If you were only permitted to complete at most one transaction (ie,...
分类:
其他好文 时间:
2014-09-08 09:39:06
阅读次数:
312
A -
KIDx's Pagination
Time Limit: 2000/1000MS (Java/Others)
Memory Limit: 128000/64000KB (Java/Others)
SubmitStatus
Problem Description
One Day, KIDx developed a beautiful pagination for A...
分类:
其他好文 时间:
2014-09-07 13:35:45
阅读次数:
291
Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie...
分类:
其他好文 时间:
2014-09-07 13:24:55
阅读次数:
229
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=3754
开始看错题意了,以为没翻到a,b,c时要在原来的基础上加a+b+c,按我的意思推出来一个公式,没想到样例还过了,简直无法debug。
公式很好推,设dp[i]表示当前为i分时到达目标状态需要投掷的期望,可转移到两个状态dp[0]和dp[i+k]。设转移...
分类:
其他好文 时间:
2014-09-07 11:06:05
阅读次数:
220
Given an undirected weighted graph G , you should find one of spanning trees specified as follows.
The graph G is an ordered pair (V, E) , where V is a set of vertices {v1, v2,..., vn} and E is
a...
分类:
其他好文 时间:
2014-09-06 22:36:34
阅读次数:
358
All 6 sides of a cube are to becoated with paint. Each side is is coated uniformly with one color. When a selectionof n different colors of paint is available, how many different cubes can youmake?
...
分类:
其他好文 时间:
2014-09-06 20:03:53
阅读次数:
254
Word Break
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.
For example, given
s = "leetcode",...
分类:
其他好文 时间:
2014-09-06 18:46:33
阅读次数:
206