POJ 3250 Bad Hair Day 单调栈

维护一个单调递减的栈 每次家进栈首的牛一定能够被其余栈里面的牛看到html #include <cstdio> #include <cstring> using namespace std; const int maxn = 80010; typedef unsigned long long LL; int a[maxn], s[maxn]; int main() { int n; scanf
相关文章
相关标签/搜索