版本比较
20251115总结
正文
增加 5 行删除 5 行
19 行未改动2021222324242526272867 行未改动969798991001001011021031044 行未改动10911011111211311311411511611735 行未改动1531541551561571571581591601611611621631641652 行未改动19 行未改动#include<bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10; const int N = 1e5 + 10;
struct node{ int x; long long y;67 行未改动 return 0;}```
## B - 猜数游戏 guess ## B - 猜数游戏 guess
666考场没看懂题,只有 $4$ 分。
我们先用完全背包求出走各个长度所需的最小的代价,然后设 $f_i$ 为长度为 $i$ 的段所需的最小代价,那么就有 $dp_i = min_{j = 1}^{i - 1} (\max(dp_j, dp_{i - j}) + dist_j)$4 行未改动#define int long long
using namespace std;
const int N = 1e4 + 10; 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 - 树上求值 tree ## C - 树上求值 tree
666链的特殊性质想了1h没想出来,只写了 $30$ 分。
## D - 夜里亦始终想念着你 miss ## D - 夜里亦始终想念着你 miss
666只写了特殊性质24分
# 后记2 行未改动