Problem2768--数据结构单调栈 - 奶牛玩飞盘

2768: 数据结构单调栈 - 奶牛玩飞盘

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

Sample Input Copy

7
4 3 1 2 5 6 7

Sample Output Copy

24

Source/Category