版本比较
+1 −1增加 1 行删除 1 行
22 行未改动232425262727282930319 行未改动22 行未改动 else if(c[i]=='B'){ if(i+1<c.size()&&c[i+1]=='C'){ ans+=tot;i++; } else else tot=0; } else tot=0;9 行未改动