摘要: A. [CF522D] Closest Equals 显然只有 \(O(n)\) 个数对(相邻的相同点)有可能对答案产生贡献,拉出来二维数点即可 \(O(n\log n)\)。 #include<bits/stdc++.h> using namespace std; const int N=5e5+ 阅读全文
posted @ 2025-12-30 16:30 white_tiger 阅读(7) 评论(0) 推荐(0)