版本比较
题解:P16573 [USACO26Open] Haybale Stacks
正文
增加 5 行删除 5 行
141 行未改动全部展开14214314414514614614714814915015115115215315315415515515615715815914 行未改动17417517617717817817918018118241 行未改动141 行未改动全部展开
## 参考代码
```cpp
#include <bits/stdc++.h>using namespace std;using ll = long long;const ll INF = 1e18;
const int S = 100;
void upd(ll& a, ll b) { a = min(a, b); }
int main() { ios::sync_with_stdio(false), cin.tie(nullptr); int t; cin >> t; while(t--) {14 行未改动 sort(o.begin(), o.end(), [&] (ll x, ll y) { return l[x] < l[y]; }); int pl = 0; vector<ll> dp(S * S, INF); dp[0] = 0; vector<ll> best(S + 1, 1e15);
// computes expdp which is used to query vector<ll> expdp; int bsi = 1; auto compute = [&] (int nsi) {41 行未改动