lanqiao 19713 拔河

This commit is contained in:
2025-04-11 13:59:04 +08:00
parent 5bb88b50e6
commit 53c3f91cc4

View File

@@ -14,7 +14,7 @@ signed main(){
} }
// 使用set数组去维护所有的区间和 // 使用set数组去维护所有的区间和
for(int i = 1; i<=n; i++){ for(int i = 1; i<=n; i++){
for(int j = 1; j<=n; j++){ for(int j = i; j<=n; j++){
ms.insert(s[j] - s[i-1]); ms.insert(s[j] - s[i-1]);
} }
} }