摘要: 题目链接: 直接暴力的话时间复杂度为 \(O(n^2)\),显然会 \(\sf TLE\)。 #include <bits/stdc++.h> using namespace std; const int N = 5e4 + 10; int a[N], S[N]; int main() { ios: 阅读全文
posted @ 2024-04-17 19:47 胖柚の工作室 阅读(21) 评论(0) 推荐(0)