Home > Back-end >  For help, the following a [I]==a [l - 1 - I] and a [I] below!=a/l - 1 - I said what do you mean
For help, the following a [I]==a [l - 1 - I] and a [I] below!=a/l - 1 - I said what do you mean

Time:11-09

#include
#include
using namespace std;
Int main () {
String a;
int i;
int n;
Cin> n;
Int f=1;
While (n -) {
Cin> a;
Int l=a. ength ();
For (I=0; i{if (a==[I] a [l - 1 - I])
continue;
Else if (a [I]!=a -i] [l - 1)
{f=0;
break;
}
}
If (f==1)
Cout<& lt;" True "& lt; The else cout<& lt;" False "& lt; }
}

CodePudding user response:

Is to see if they are symmetrical, is also a palindrome
  • Related