Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo...
分类:
编程语言 时间:
2015-04-28 22:28:27
阅读次数:
202
Problem Description
In the mysterious forest, there is a group of Magi. Most of them like to eat human beings, so they are called “The Ogre Magi”, but there is an special one whose favorite food is ha...
分类:
其他好文 时间:
2015-04-28 14:08:31
阅读次数:
129
Wednesday, 9 February 201102:03 AMIf you look at the ASP.NET Web Pages (aka Razor) tutorials on the ASP.NET web site, there's achapterdevoted to addin...
分类:
Web程序 时间:
2015-04-27 21:22:47
阅读次数:
197
Time Limit: 5000MS
Memory Limit: 131072K
Total Submissions: 11303
Accepted: 3520
Case Time Limit: 2000MS
Description
N children are sitting in a circle to play a game.
T...
分类:
其他好文 时间:
2015-04-27 15:23:10
阅读次数:
123
problem:
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, buy one and sell one ...
分类:
其他好文 时间:
2015-04-27 11:25:03
阅读次数:
120
problem:
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete at most two transactions...
分类:
其他好文 时间:
2015-04-27 11:18:37
阅读次数:
134
How to change the SRP data is a very imperative for most bluetooth low energy use case. But in official Texas Instruments(TI) example code, there is no demonstration for this purpose. In here, I note...
分类:
其他好文 时间:
2015-04-27 00:29:29
阅读次数:
489
题目:Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is...
分类:
其他好文 时间:
2015-04-26 17:59:43
阅读次数:
116
这道题综合性挺强的,又牵扯到数论,又有线段树。线段树维护的信息就是区间中有多少个人没跳出去,然后计算出下一个人是剩下的人中第几个。我在这调程序调了好久,就是那个模来模去的弄得我头晕。不过题确实是好题,给赞。 1 #include 2 #include 3 #include 4 #include...
分类:
其他好文 时间:
2015-04-26 15:02:37
阅读次数:
120
Aharmonicsoundis said to have amissing fundamental,suppressed fundamental, orphantom fundamentalwhen itsovertonessuggest afundamental frequencybut the...
分类:
其他好文 时间:
2015-04-26 09:10:20
阅读次数:
105