摘要: 莫队模板题 相当于优化的暴力,每一次调整左右节点的位置 #include <bits/stdc++.h> using namespace std; int n,m,k; const int N=5e4+5; int a[N]; int cnt[N];//用于计算当前区间i出现了几次 int ans[ 阅读全文
posted @ 2025-11-22 16:54 wtnbl 阅读(0) 评论(0) 推荐(0)