第一题 括号匹配,用了两种方法,第三个样例一直不对,提交了之后也只过了10%的case,求解哪里出错了呢? 附上我的辣鸡代码,思路没变,用了两种写法 s=")([]]([(](])))([]()()]([][[)[()[)]([[(])][][[[([)]" left_round=0 left_square=0 ans=0 for x in s: if x=='(': left_round+=1 elif x==')': if left_round<1: ans+=1 e...