#20848: 請問哪裡有BUG 我自己測試都OK 第六項就WA了


bbubble0906 (bbubble0906)


#include<iostream>

using namespace std;

void Check(string , int);
int main()
{
string Input;

while(cin >> Input){
int IptLen = Input.length();
Check(Input , IptLen);
}


return 0;
}

void Check(string Input , int IptLen){
for(int i = 0 ; i < (IptLen / 2) ;i++ ){
if(Input[i] != Input[IptLen - i - 1]){
cout << "no\n";
break;
}

if(i == ((IptLen / 2) - 1))
cout << "yes\n";
}
}