摘要: 做法 : 预处理前后缀 + 贪心 点击查看代码 #include <bits/stdc++.h> using namespace std; void solve(){ int n; cin >> n; vector<int> a(n + 10); for(int i = 1; i <= n; i + 阅读全文
posted @ 2025-10-23 14:49 ha000star 阅读(8) 评论(0) 推荐(1)