摘要:
Problem B. Harvest of Apples #include <bits/stdc++.h> using namespace std; const int maxn = 1e5 + 50; typedef long long ll; const ll mod = 1e9 + 7; ll 阅读全文
摘要:
Problem A. Ascending Rating 先学习一下单调队列与单调栈,其实和STL的也没啥区别,就是手动维护数组。 POJ 2823 #include <cstdio> #include <algorithm> using namespace std; const int maxn = 阅读全文