题解 | #回文字符串#
回文字符串
https://www.nowcoder.com/practice/df00c27320b24278b9c25f6bb1e2f3b8
#include <bits/stdc++.h> using namespace std; int main() { string s; while (getline(cin,s)) { // 注意 while 处理多个 case string s2 =s; reverse(s.begin(),s.end()); if(s == s2)cout<<"Yes!"<<endl; else cout<<"No!"<<endl; } } // 64 位输出请用 printf("%lld")
qd