不建议使用
string l=s.substr(0,s.size()/2),r=s.substr(s.size()/2,s.size()/2); reverse(r.begin(),r.end());
因为容易 TLE 而获得 80pts。 建议使用循环,不至于TLE。
有没有大佬讲解一下为什么?