摘要: 题目链接 A Prepend and Append 使用双指针一前一后向中间走,将合法的变为特定字符,直到遇见不合法的情况就停止,最后统计特定字符的数量,用n减去就是最后字符串的长度。 #include<iostream> #include<cstring> #include<algorithm> 阅读全文
posted @ 2023-03-24 09:00 north_h 阅读(9) 评论(0) 推荐(0)