摘要: 题目链接: 一开始的想法:排序后枚举,但这样显然是 \(O(n^2)\) 的复杂度,会超时 #include <cstdio> #include <algorithm> const int N = 2e5 + 5; int a[N]; int main() { int n, c, res = 0; 阅读全文
posted @ 2024-02-14 11:49 胖柚の工作室 阅读(31) 评论(0) 推荐(0)