Advertisement

POJ 2726 Holiday Hotel(排序与单调栈)

阅读量:

Holiday Hotel

Time Limit: 2000MS Memory Limit: 65536K
Total Submissions: 8098 Accepted: 3176

Description

Mr. and Mrs. Smith have decided to spend their holiday at the seaside. In preparation, they obtained a list of hotels from the Internet and began narrowing down their choices based on two key criteria: affordability and proximity to the beach. They identified candidate hotel M as one that fulfills both requirements: it is both economically priced and situated near the shoreline.

Any hotel located closer in proximity to the seashore compared to M will

全部评论 (0)

还没有任何评论哟~