摘要: 【括号匹配】 题目整理 Ghost in the Parentheses https://ac.nowcoder.com/acm/contest/108301/G 题目大意 思路 【本题关键】 (1)将'('看成+1 ')'看成-1:做前缀和找规律 ->可发现合法的括号序列所有的前缀和一定是非负的 阅读全文
posted @ 2025-07-25 00:53 White_ink 阅读(24) 评论(0) 推荐(0)