codeforces 547B. Mike and Feet 单调栈
摘要:
题目链接用单调栈计算出一个数字, 左边第一个比他小的数字的位置, 右边比第一个他小的数字的位置, 然后len = r[i] - l[i] +1. ans[len] = max(ans[len], a[i]) 1 #include 2 using namespace std; 3 const int ... 阅读全文
posted @ 2015-12-05 23:36 yohaha 阅读(177) 评论(0) 推荐(0)
浙公网安备 33010602011771号