正文
增加 5 行删除 5 行
19 行未改动20212223242526272867 行未改动969798991001011021031044 行未改动10911011111211311411511611735 行未改动1531541551561571581591601611621631641652 行未改动19 行未改动#include<bits/stdc++.h>using namespace std;const int N = 1e5 + 10;struct node{int x;long long y;67 行未改动return 0;}```## B - 猜数游戏 guess666考场没看懂题,只有 $4$ 分。我们先用完全背包求出走各个长度所需的最小的代价,然后设 $f_i$ 为长度为 $i$ 的段所需的最小代价,那么就有 $dp_i = min_{j = 1}^{i - 1} (\max(dp_j, dp_{i - j}) + dist_j)$4 行未改动#define int long longusing namespace std;const int N = 1e4 + 10;int c, T, n, m, a[N * 2], b[N * 2], d[N * 2], dp[N * 2];void solve(){35 行未改动return 0;}```## C - 树上求值 tree666链的特殊性质想了1h没想出来,只写了 $30$ 分。## D - 夜里亦始终想念着你 miss666只写了特殊性质24分# 后记2 行未改动19 行未改动20212223242526272867 行未改动969798991001011021031044 行未改动10911011111211311411511611735 行未改动1531541551561571581591601611621631641652 行未改动19 行未改动#include<bits/stdc++.h>using namespace std;const int N = 1e5 + 10;struct node{int x;long long y;67 行未改动return 0;}```## B - 猜数游戏 guess666考场没看懂题,只有 $4$ 分。我们先用完全背包求出走各个长度所需的最小的代价,然后设 $f_i$ 为长度为 $i$ 的段所需的最小代价,那么就有 $dp_i = min_{j = 1}^{i - 1} (\max(dp_j, dp_{i - j}) + dist_j)$4 行未改动#define int long longusing namespace std;const int N = 1e4 + 10;int c, T, n, m, a[N * 2], b[N * 2], d[N * 2], dp[N * 2];void solve(){35 行未改动return 0;}```## C - 树上求值 tree666链的特殊性质想了1h没想出来,只写了 $30$ 分。## D - 夜里亦始终想念着你 miss666只写了特殊性质24分# 后记2 行未改动