摘要: Problem - A - Codeforces 类似合并石子,但是合并的代价是\(\max(x,y)\) 对复杂度要求高。 因为每个元素只可能比之前更大,我们最小的数两边的数提前被取一定更优。 int n,pre[N],nxt[N]; struct node{ int key,pos; }a[N] 阅读全文
posted @ 2025-11-21 12:07 LiQXing 阅读(3) 评论(0) 推荐(0)