查看程式碼 #3541652a022. 迴文
#include<iostream> #include<string> #include<algorithm> using namespace std; int main(){ string a; while(cin>>a){ string b; b=a; reverse(b.begin(),b.end()); if(b==a){ cout<<"yes"<<endl; }else{ cout<<"no"<<endl; } } } Close
CPP
|