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
相關文章
相關標籤/搜索