吾洛谷
灰名而志于学,
蓝名而立,
绿名而不惑,
橙名而知天命,
红名而耳顺,
紫名而从心所欲,不逾矩。
https://oi-wiki.org/tools/cmd/
https://codeforces.com/submissions/SunShine2012 曾做过的题目
单调栈模板
#define mono(_a, _e, _st, _op, _ans)\
for (ll i = 1; i <= _e; i++){\
while (!_st.empty() && _a[i] _op _a[_st.top()]) _ans[_st.top()] = i, _st.pop();\
_st.push(i);\
}for (ll i = 1; i <= _e; i++) if (!_ans[i]) _ans[i] = _e + 1;