From 7954e4c49f9c1aa861447d050491c26b40255217 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=B5=B7?= <10402852@qq.com> Date: Tue, 19 Dec 2023 13:34:37 +0800 Subject: [PATCH] 'commit' --- TangDou/Topic/PrefixAndSuffix/P1719_2.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/TangDou/Topic/PrefixAndSuffix/P1719_2.cpp b/TangDou/Topic/PrefixAndSuffix/P1719_2.cpp index ca81ab8..befc4b0 100644 --- a/TangDou/Topic/PrefixAndSuffix/P1719_2.cpp +++ b/TangDou/Topic/PrefixAndSuffix/P1719_2.cpp @@ -8,12 +8,10 @@ int n, ans; int main() { cin >> n; for (int i = 1; i <= n; i++) - for (int j = 1; j <= n; j++) + for (int j = 1; j <= n; j++) { cin >> a[i][j]; - - for (int j = 1; j <= n; j++) - for (int i = 1; i <= n; i++) s[i][j] = s[i - 1][j] + a[i][j]; + } for (int i = 1; i <= n; i++) { for (int k = 1; k <= i; k++) {