#include<iostream>
using namespace std;
bool f(const char* str,int strlen)
{
if(strlen<=1)
return true;
if(str[0]==str[strlen-1]){
return f(str+1,strlen-2);}
return false;
}
int main(){
char str[]="acba";
int strlen=4;
if(f(str,strlen))
{
cout<<"是回文";
}
else
{
cout<<"不是回文"; }
}