标签:
4 level abcde noon haha
yes no yes no
#include<iostream> #include<algorithm> #include<string> using namespace std; int main() { string a,b; int n; cin>>n; while(n--) { cin>>a; b=a; reverse(a.begin(),a.end()); if(a==b) cout<<"yes"<<endl; else cout<<"no"<<endl; } return 0; }
标签:
原文地址:http://blog.csdn.net/zuguodexiaoguoabc/article/details/43898641