I'm not there,I'm not die.


Passing the Message(HDU-3410)

Problem Description What a sunny day! Let’s go picnic and have barbecue! Today, all kids in “Sun Flower” kindergarten are prepared to have an excur...

2019-02-11 20:03:03

阅读数 78

评论数 0

Second My Problem First(HDU-3706)

Problem Description Give you three integers n, A and B.  Then we define S i = A i mod B and T i = Min{ S k | i-A <= k <= i, k...

2019-02-10 19:19:52

阅读数 89

评论数 0

Non-negative Partial Sums(HDU-4193)

Problem Description You are given a sequence of n numbers a 0,..., a n-1. A cyclic shift by k positions (0<=k<=n-1) results i...

2019-02-10 19:19:07

阅读数 58

评论数 0

Largest Rectangle in a Histogram(HDU-1506)

Problem Description A histogram is a polygon composed of a sequence of rectangles aligned at a common base line. The rectangles have equal widths b...

2019-02-10 18:23:22

阅读数 86

评论数 0

线性结构 —— 单调栈与单调队列

【单调栈】 1.原理 单调栈,就是栈内元素保持一定单调性(单调递增或单调递减)的栈,即从栈底到栈顶单调递增或递减。 对于单调递增的栈,如果栈为空或入栈元素值大于等于栈顶元素值,则入栈;否则,若入栈会破坏栈的单调性,因此需要将比入栈元素大的元素全部出栈。 对于单调递减的栈,如果栈为空或入栈元...

2019-02-10 12:17:31

阅读数 169

评论数 0

City Skyline(POJ-3044)

Problem Description The best part of the day for Farmer John's cows is when the sun sets. They can see the skyline of the distant city. Bessie wonde...

2018-07-26 01:58:40

阅读数 76

评论数 0

Bad Hair Day(POJ-3250)

Problem Description Some of Farmer John's N cows (1 ≤ N ≤ 80,000) are having a bad hair day! Since each cow is self-conscious about her messy hairs...

2018-06-29 16:53:40

阅读数 76

评论数 0

取消 删除