关于本题是否有SPJ

P1241 括号序列

liyx19 @ 2022-07-19 15:27:13

话说这题是不是会有多种答案?所以这题有SPJ吗?


by qfpjm @ 2022-07-19 15:30:22

对每一个右括号,找到在它左边最靠近它的左括号匹配


by liyx19 @ 2022-07-21 14:33:47

@Ted_hjl 现在理解了,也就是说像([]())这样的序列就不对了是吗?


by qfpjm @ 2022-07-21 14:37:31

@liyx19 嗯


|