From 53c3f91cc4e5855a6780b6aa18b1ebdee74ea4d2 Mon Sep 17 00:00:00 2001 From: xingyou wu <3050128610@qq.com> Date: Fri, 11 Apr 2025 13:59:04 +0800 Subject: [PATCH] =?UTF-8?q?lanqiao=2019713=20=E6=8B=94=E6=B2=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 15lanqiao/test8.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/15lanqiao/test8.cpp b/15lanqiao/test8.cpp index 9bc54ca..f1e94ac 100644 --- a/15lanqiao/test8.cpp +++ b/15lanqiao/test8.cpp @@ -14,7 +14,7 @@ signed main(){ } // 使用set数组去维护所有的区间和 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]); } }