返回列表 發帖
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <string>
  4. using namespace std;
  5. int main(){

  6.     int HowManyTimes;
  7.     cin>>HowManyTimes;
  8.    
  9.     string s="";
  10.     bool IsElse = false;
  11.    
  12.     for(int a=0; a<HowManyTimes;a++){
  13.             cin>> s;
  14.             for(int b=0; b<s.length();b++){
  15.                     if(s[b] == s[s.length()-b-1]){
  16.                            
  17.                             }else{
  18.                                   IsElse = true;
  19.                                   break;
  20.                                   }
  21.                                   }
  22.                                   if (IsElse == true){
  23.                                              cout<<"no"<<endl;
  24.                                              }else{
  25.                                                    cout<<"yes"<<endl;
  26.                                                    }
  27.                                                    }
  28. system("pause");
  29. return 0;
  30. }
複製代碼
分數掛蛋的心情像空白的紙,再次期望著奇蹟的到來。

TOP

返回列表