From dea0cdcef06482035984a7836cfd09a0db544416 Mon Sep 17 00:00:00 2001 From: xingyou wu <3050128610@qq.com> Date: Thu, 10 Apr 2025 14:47:43 +0800 Subject: [PATCH] =?UTF-8?q?lanqiao=201456=20=E6=8B=AC=E5=8F=B7=E5=BA=8F?= =?UTF-8?q?=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 12lanqiao/test10.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/12lanqiao/test10.cpp b/12lanqiao/test10.cpp index 933661e..7caadfb 100644 --- a/12lanqiao/test10.cpp +++ b/12lanqiao/test10.cpp @@ -22,7 +22,7 @@ int calc(){ dp[i][0] = (dp[i-1][0] + dp[i-1][1]) % mod; // 遍历所有可能的未匹配的左括号的数量 for(int j = 1; j <= n; j++){ - // 因为遇到了右括号,需要匹配的左括号的数量增加1,或者添加一个有括号来消除一个未匹配的左括号 + // 因为遇到了右括号,需要匹配的左括号的数量增加1,或者添加一个右括号来消除一个未匹配的左括号 dp[i][j] = (dp[i-1][j+1] + dp[i][j-1]) % mod; }