摘要:
简要题意 \(n\le 10^3 , \sum K_i\le3\times10^5\) 思路 首先容易想到一个暴力DP,\(f_{l,r,x}\) 表示区间中最大值为 \(x\) 的最大值 稍微想亿下可以发现如果这个位置选的不是区间最大值的话,答案一定不优 所以我们可以直接 \(f_{l,r}\) 阅读全文
posted @ 2024-01-11 16:13
hubingshan
阅读(22)
评论(0)
推荐(0)
摘要:
简要题意 每个点有一定概率向前面的点连边,求两点之间距离的期望 思路 推柿子 code #include<bits/stdc++.h> using namespace std; #define int long long #define N 1000005 int n,m,u,v; const in 阅读全文
posted @ 2024-01-11 14:23
hubingshan
阅读(21)
评论(0)
推荐(0)

浙公网安备 33010602011771号